diff --git a/CODEOWNERS b/CODEOWNERS index b72c72a8ae022c5afcc7f3553ce039ef6c13547d..b9dc401e4f05c544e1d852ee80637dc4c9ae38f7 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -275,6 +275,8 @@ zh-cn/application-dev/reference/apis/js-apis-application-StartOptions.md @RayShi zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md @RayShih zh-cn/application-dev/reference/apis/js-apis-application-Want.md @RayShih zh-cn/application-dev/reference/apis/js-apis-application-WindowExtensionAbility.md @ge-yafang +zh-cn/application-dev/reference/apis/js-apis-inner-application-windowExtensionContext.md @ge-yafang +zh-cn/application-dev/application-models/windowextensionability.md @ge-yafang zh-cn/application-dev/reference/apis/js-apis-appmanager.md @RayShih zh-cn/application-dev/reference/apis/js-apis-arraylist.md @ge-yafang zh-cn/application-dev/reference/apis/js-apis-audio.md @zengyawen @@ -476,6 +478,7 @@ zh-cn/application-dev/reference/apis/js-apis-wifiext.md @RayShih zh-cn/application-dev/reference/apis/js-apis-window.md @ge-yafang zh-cn/application-dev/reference/apis/js-apis-windowAnimationManager.md @ge-yafang zh-cn/application-dev/reference/apis/js-apis-worker.md @ge-yafang +zh-cn/application-dev/reference/apis/js-apis-taskpool.md @ge-yafang zh-cn/application-dev/reference/apis/js-apis-workScheduler.md @ningningW zh-cn/application-dev/reference/apis/js-apis-WorkSchedulerExtensionAbility.md @ningningW zh-cn/application-dev/reference/apis/js-apis-xml.md @ge-yafang 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/application-models/ability-startup-with-implicit-want.md b/en/application-dev/application-models/ability-startup-with-implicit-want.md index f163b035c7b759fab03ee3fcd455e3dcb77b5515..6550e5c628c642cf227cfde5f74eef7b61c8a52b 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 @@ -73,4 +73,5 @@ The **module.json5** of a browser application is as follows: 4. If **type** in the passed **want** parameter is specified and is included in **type** under **skills**, the matching is successful. 2. When there are multiple matching applications, a dialog box is displayed for you to select one of them. -stage-want1 + + ![stage-want1](figures/stage-want1.png) diff --git a/en/application-dev/application-models/application-context-stage.md b/en/application-dev/application-models/application-context-stage.md index 8d49b7369bb93e26f4407313f2d9352acd7380e1..0bd91dbd92d4621dbd59fe4bbb77d40a8fbaa77f 100644 --- a/en/application-dev/application-models/application-context-stage.md +++ b/en/application-dev/application-models/application-context-stage.md @@ -6,10 +6,12 @@ [Context](../reference/apis/js-apis-inner-application-context.md) is the context of an object in an application. It provides basic information about the application, for example, **resourceManager**, **applicationInfo**, **dir** (application development path), and **area** (encrypted area). It also provides basic methods such as **createBundleContext()** and **getApplicationContext()**. The UIAbility component and ExtensionAbility derived class components have their own **Context** classes, for example, the base class **Context**, **ApplicationContext**, **AbilityStageContext**, **UIAbilityContext**, **ExtensionContext**, and **ServiceExtensionContext**. - The figure below illustrates the inheritance relationship of contexts. - context-inheritance + + ![context-inheritance](figures/context-inheritance.png) - The figure below illustrates the holding relationship of contexts. - context-holding + + ![context-holding](figures/context-holding.png) - The following describes the information provided by different contexts. - [UIAbilityContext](../reference/apis/js-apis-inner-application-uiAbilityContext.md): Each UIAbility has the **Context** attribute, which provides APIs to operate the ability, obtain the ability configuration, and more. @@ -89,7 +91,8 @@ The following table describes the application development paths obtained from co The capability of obtaining the application development path is provided by the base class **Context**. This capability is also provided by **ApplicationContext**, **AbilityStageContext**, **UIAbilityContext**, and **ExtensionContext**. However, the paths obtained from different contexts may differ, as shown below. **Figure 1** Application development paths obtained from context -context-dir + +![context-dir](figures/context-dir.png) - Obtain the application-level path through **ApplicationContext**. It is recommended that global application information be stored in this path. Files stored in this path will be deleted only when the application is uninstalled. | Name| Path| @@ -174,7 +177,7 @@ The base class **Context** provides the [createBundleContext(bundleName:string)] > > - Request the **ohos.permission.GET_BUNDLE_INFO_PRIVILEGED** permission. For details, see [Permission Application Guide](../security/accesstoken-guidelines.md#declaring-permissions-in-the-configuration-file). > -> - This is a system API and cannot be called by third-party applications. + > - This is a system API and cannot be called by third-party applications. For example, application information displayed on the home screen includes the application name and icon. The home screen application calls the foregoing method to obtain the context information, so as to obtain the resource information including the application name and icon. @@ -189,7 +192,7 @@ The base class **Context** provides the [createBundleContext(bundleName:string)] // ... } } -``` + ``` - Call **createModuleContext(bundleName:string, moduleName:string)** to obtain the context of a specified module of another application. After obtaining the context, you can obtain the resource information of that module. > **NOTE** @@ -198,7 +201,7 @@ The base class **Context** provides the [createBundleContext(bundleName:string)] > > - Request the **ohos.permission.GET_BUNDLE_INFO_PRIVILEGED** permission. For details, see [Permission Application Guide](../security/accesstoken-guidelines.md#declaring-permissions-in-the-configuration-file). > -> - This is a system API and cannot be called by third-party applications. + > - This is a system API and cannot be called by third-party applications. ```ts import UIAbility from '@ohos.app.ability.UIAbility'; diff --git a/en/application-dev/application-models/data-share-via-want.md b/en/application-dev/application-models/data-share-via-want.md index 4ecdf35ead5482d4b4b2e0d0a2a4544e75686612..c04bea2916647804b51022cee1853f3b5d0a7d90 100644 --- a/en/application-dev/application-models/data-share-via-want.md +++ b/en/application-dev/application-models/data-share-via-want.md @@ -67,7 +67,7 @@ Users often need to share data (such as a text or an image) from one application For example, when **"ability.picker.type"** is **"application/pdf"**, **"ability.picker.fileNames"** is **"["APIs.pdf"]"**, and **"ability.picker.fileSizes"** is **"[350 \* 1024]"**, the application selector is displayed as follows: - stage-want2 + ![stage-want2](figures/stage-want2.png) In the preceding code, the **ability.want.params.INTENT** field is nested Want. In this field, **action** and **type** are used for implicit matching by the application selector. For details about implicit matching, see [Matching Rules of Implicit Want](explicit-implicit-want-mappings.md#matching-rules-of-implicit-want). After the user selects an application, the nested Want of the **ability.want.params.INTENT** field is passed to that application. diff --git a/en/application-dev/application-models/explicit-implicit-want-mappings.md b/en/application-dev/application-models/explicit-implicit-want-mappings.md index ccf33e07d1b389eb1246a89a377febb1e7d24a78..d2c44bb4b47eff6347d6b4a6c098feadb7a9eead 100644 --- a/en/application-dev/application-models/explicit-implicit-want-mappings.md +++ b/en/application-dev/application-models/explicit-implicit-want-mappings.md @@ -61,7 +61,8 @@ The system matches the [action](../reference/apis/js-apis-ability-wantConstant.m - If **action** in the passed **want** parameter is specified, and **actions** under **skills** of an ability is specified but does not contain **action** in the passed **want** parameter, the matching fails. **Figure 1** Matching rules of action in the want parameter - want-action + + ![want-action](figures/want-action.png) ### Matching Rules of entities in the want Parameter @@ -78,8 +79,9 @@ The system matches the [entities](../reference/apis/js-apis-ability-wantConstant - If **entities** in the passed **want** parameter is specified, and **entities** under **skills** of an ability is specified but does not contain **entities** in the passed **want** parameter, the matching fails. - Figure 2 Matching rule of entities in the want parameter -want-entities + Figure 2 Matching rule of entities in the want parameter + + ![want-entities](figures/want-entities.png) ### Matching Rules of uri and type in the want Parameter @@ -87,7 +89,8 @@ The system matches the [entities](../reference/apis/js-apis-ability-wantConstant When the **uri** and **type** parameters are specified in the **want** parameter to initiate a component startup request, the system traverses the list of installed components and matches the **uris** array under **skills** of the abilities one by one. If one of the **uris** arrays under **skills** matches the **uri** and **type** in the passed **want**, the matching is successful. Figure 3 Matching rules when uri and type are specified in the want parameter -want-uri-type1 + +![want-uri-type1](figures/want-uri-type1.png) There are four combinations of **uri** and **type** settings. The matching rules are as follows: @@ -113,7 +116,8 @@ To simplify the description, **uri** and **type** passed in the **want** paramet Figure 4 Matching rules of uri and type in the want parameter -want-uri-type2 + +![want-uri-type2](figures/want-uri-type2.png) ### Matching Rules of uri diff --git a/en/application-dev/application-models/inter-device-interaction-hop-overview.md b/en/application-dev/application-models/inter-device-interaction-hop-overview.md index 6b1fd28b489f0d6d891abd9dffa0bcaf0f1b9ead..8a6cb49f86ff60655037955aaba1b00a5ff40a17 100644 --- a/en/application-dev/application-models/inter-device-interaction-hop-overview.md +++ b/en/application-dev/application-models/inter-device-interaction-hop-overview.md @@ -35,8 +35,9 @@ OpenHarmony provides a set of APIs for you to implement continuation in your app The following figure shows the continuation architecture. - **Figure 1** Continuation architecture -hop-structure + **Figure 1** Continuation architecture + + ![hop-structure](figures/hop-structure.png) - Cross-device migration task management: The initiator accepts a migration request from the user, provides a migration entry, and displays the migration result. (This capability is unavailable yet.) diff --git a/en/application-dev/application-models/uiability-data-sync-with-ui.md b/en/application-dev/application-models/uiability-data-sync-with-ui.md index 981a9212892a8bc1a920ac929608685c3eafeb00..f53627e974a0f9b4b1323d7694f94e07ebf51753 100644 --- a/en/application-dev/application-models/uiability-data-sync-with-ui.md +++ b/en/application-dev/application-models/uiability-data-sync-with-ui.md @@ -92,7 +92,8 @@ Before using EventHub, you must obtain an EventHub object, which is provided by **globalThis** is a global object inside the [ArkTS engine instance](thread-model-stage.md) and can be used by UIAbility, ExtensionAbility, and Page inside the engine. Therefore, you can use **globalThis** for data synchronization. **Figure 1** Using globalThis for data synchronization -globalThis1 + + ![globalThis1](figures/globalThis1.png) The following describes how to use **globalThis** in three scenarios. Precautions are provided as well. @@ -209,6 +210,7 @@ To implement data synchronization between the UIAbility and ExtensionAbility com ### Precautions for Using globalThis **Figure 2** Precautions for globalThis + ![globalThis2](figures/globalThis2.png) - In the stage model, all the UIAbility components in a process share one ArkTS engine instance. When using **globalThis**, do not store objects with the same name. For example, if AbilityA and AbilityB use **globalThis** to store two objects with the same name, the object stored earlier will be overwritten. diff --git a/en/application-dev/application-models/uiability-intra-device-interaction.md b/en/application-dev/application-models/uiability-intra-device-interaction.md index ea6b8bbecfa4a9a4f5434fb0aa5aad6184f38c9f..78363a3a2b65bee17a2ea7524b2fe7180de38909 100644 --- a/en/application-dev/application-models/uiability-intra-device-interaction.md +++ b/en/application-dev/application-models/uiability-intra-device-interaction.md @@ -197,7 +197,7 @@ This section describes how to start the UIAbility of another application through The following figure shows the effect. When you click **Open PDF**, a dialog box is displayed for you to select. - uiability-intra-device-interaction + ![uiability-intra-device-interaction](figures/uiability-intra-device-interaction.png) 3. To stop the **UIAbility** instance after the document application is used, call **terminateSelf()**. @@ -445,7 +445,7 @@ The following figure shows the ability call process. **Figure 1** Ability call process -call +![call](figures/call.png) - The caller ability uses **startAbilityByCall** to obtain a caller object and uses **call()** of the caller object to send data to the callee ability. diff --git a/en/application-dev/application-models/uiability-launch-type.md b/en/application-dev/application-models/uiability-launch-type.md index cda8307ddd3dae6f7cceac3fad134ef510d7383c..70c212ed46e769dbdf4e0c1fd347403c463f6004 100644 --- a/en/application-dev/application-models/uiability-launch-type.md +++ b/en/application-dev/application-models/uiability-launch-type.md @@ -19,7 +19,7 @@ Each time [startAbility()](../reference/apis/js-apis-inner-application-uiAbility **Figure 1** Demonstration effect in singleton mode -uiability-launch-type1 +![uiability-launch-type1](figures/uiability-launch-type1.png) > **NOTE** > @@ -49,7 +49,7 @@ In standard mode, each time [startAbility()](../reference/apis/js-apis-inner-app **Figure 2** Demonstration effect in standard mode -standard-mode +![standard-mode](figures/standard-mode.png) To use the standard mode, set **launchType** in the [module.json5 configuration file](../quick-start/module-configuration-file.md) to **standard**. @@ -75,7 +75,7 @@ The **specified** mode is used in some special scenarios. For example, in a docu **Figure 3** Demonstration effect in specified mode -uiability-launch-type2 +![uiability-launch-type2](figures/uiability-launch-type2.png) For example, there are EntryAbility and SpecifiedAbility, and the launch type of SpecifiedAbility is set to **specified**. You are required to start SpecifiedAbility from EntryAbility. diff --git a/en/application-dev/application-models/uiability-lifecycle.md b/en/application-dev/application-models/uiability-lifecycle.md index 9ec701cbffd4da51098d5dc448addd88f26ee47e..57200abb8fbfb625e2e6c8999da5ad817e2e85b4 100644 --- a/en/application-dev/application-models/uiability-lifecycle.md +++ b/en/application-dev/application-models/uiability-lifecycle.md @@ -7,8 +7,9 @@ When a user opens, switches, and returns to an application, the UIAbility instan The lifecycle of UIAbility has four states: **Create**, **Foreground**, **Background**, and **Destroy**, as shown in the figure below. -**Figure 1** UIAbility lifecycle states -Ability-Life-Cycle +**Figure 1** UIAbility lifecycle states + +![Ability-Life-Cycle](figures/Ability-Life-Cycle.png) ## Description of Lifecycle States @@ -36,8 +37,9 @@ export default class EntryAbility extends UIAbility { After the UIAbility instance is created but before it enters the **Foreground** state, the system creates a WindowStage instance and triggers the **onWindowStageCreate()** callback. You can set UI loading and WindowStage event subscription in the callback. -**Figure 2** WindowStageCreate and WindowStageDestory -Ability-Life-Cycle-WindowStage +**Figure 2** WindowStageCreate and WindowStageDestory + +![Ability-Life-Cycle-WindowStage](figures/Ability-Life-Cycle-WindowStage.png) In the **onWindowStageCreate()** callback, use [loadContent()](../reference/apis/js-apis-window.md#loadcontent9-2) to set the page to be loaded, and call [on('windowStageEvent')](../reference/apis/js-apis-window.md#onwindowstageevent9) to subscribe to [WindowStage events](../reference/apis/js-apis-window.md#windowstageeventtype9), for example, having or losing focus, or becoming visible or invisible. diff --git a/en/application-dev/application-models/want-overview.md b/en/application-dev/application-models/want-overview.md index f8239c64cf43a0df0acca0bc1ec0e3be914eecfe..21c79d517fc237cae9b9bab7d5347ffc82766d5a 100644 --- a/en/application-dev/application-models/want-overview.md +++ b/en/application-dev/application-models/want-overview.md @@ -5,8 +5,9 @@ [Want](../reference/apis/js-apis-app-ability-want.md) is used as the carrier to transfer information between application components. It is used as a parameter of **startAbility()** to specify the startup target and information that needs to be carried during startup, for example, **bundleName** and **abilityName**, which respectively indicate the bundle name of the target ability and the ability name in the bundle. For example, when UIAbilityA starts UIAbilityB and needs to transfer some data to UIAbilityB, it can use Want to transfer the data. -**Figure 1** Want usage -usage-of-want +**Figure 1** Want usage + +![usage-of-want](figures/usage-of-want.png) ## Types of Want diff --git a/en/application-dev/database/database-datashare-guidelines.md b/en/application-dev/database/database-datashare-guidelines.md index 95001df839e0d5ef56bc12126f0fdcd59c72db30..f0011c591effd0b65df7d1d7911c63907d6e73f8 100644 --- a/en/application-dev/database/database-datashare-guidelines.md +++ b/en/application-dev/database/database-datashare-guidelines.md @@ -13,7 +13,7 @@ The **DataShare** module allows an application to manage its own data and share |query?(uri: string, predicates: DataSharePredicates, columns: Array<string>, callback: AsyncCallback<Object>): void|Queries data from the database.| |delete?(uri: string, predicates: DataSharePredicates, callback: AsyncCallback<number>): void|Deletes data from the database.| -For more information, see [DataShareExtensionAbility](../reference/apis/js-apis-application-dataShareExtensionAbility.md). +For details about the data provider APIs, see [DataShareExtensionAbility](../reference/apis/js-apis-application-DataShareExtensionAbility.md). **Table 2** APIs of the data consumer @@ -29,7 +29,7 @@ For more information, see [DataShareHelper](../reference/apis/js-apis-data-dataS ## When to Use -There are two roles in **DataShare**: +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**. @@ -38,16 +38,16 @@ Examples are given below. ### Data Provider Application Development (Only for System Applications) -1. Import the dependencies. +1. Import dependencies. ```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'; ``` -2. Override **DataShareExtensionAbility** APIs based on actual requirements. For example, if the data provider provides only data query, override only the **query()** API. +2. Override **DataShareExtensionAbility** APIs based on actual requirements. For example, if the data provider provides only data query, override only **query()**. 3. 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. @@ -64,13 +64,14 @@ Examples are given below. export default class DataShareExtAbility extends Extension { private rdbStore_; - // Override the onCreate() API. + // Override onCreate(). onCreate(want, callback) { result = this.context.cacheDir + '/datashare.txt' - // Create an RDB. + // Create an RDB store. rdb.getRdbStore(this.context, { - name: DB_NAME - }, 1, function (err, data) { + 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)); @@ -79,7 +80,7 @@ Examples are given below. }); } - // Override the query() API. + // Override query(). query(uri, predicates, columns, callback) { if (predicates == null || predicates == undefined) { console.info('invalid predicates'); @@ -108,8 +109,8 @@ Examples are given below. | ------------ | ------------------------------------------------------------ | | "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**. | + | "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** @@ -132,7 +133,7 @@ Examples are given below. 1. Import dependencies. ```ts - import UIAbility from '@ohos.app.ability.UIAbility'; + import Ability from '@ohos.application.Ability'; import dataShare from '@ohos.data.dataShare'; import dataSharePredicates from '@ohos.data.dataSharePredicates'; ``` @@ -150,7 +151,7 @@ Examples are given below. let dsHelper; let abilityContext; - export default class EntryAbility extends UIAbility { + export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { abilityContext = this.context; dataShare.createDataShareHelper(abilityContext, dseUri, (err, data)=>{ @@ -180,7 +181,7 @@ Examples are given below. dsHelper.query(dseUri, predicates, valArray, (err, data) => { console.log("dsHelper query result: " + data); }); - // Delete specified data. + // Delete data. dsHelper.delete(dseUri, predicates, (err, data) => { console.log("dsHelper delete result: " + data); }); diff --git a/en/application-dev/database/database-mdds-guidelines.md b/en/application-dev/database/database-mdds-guidelines.md index 73f785de4ddccaa1e10c6049066a5f3908d85fc6..0fc524a18d5228c5f243f751d32e191856f3d257 100644 --- a/en/application-dev/database/database-mdds-guidelines.md +++ b/en/application-dev/database/database-mdds-guidelines.md @@ -14,12 +14,12 @@ For details about the APIs, see [Distributed KV Store](../reference/apis/js-apis | API | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | | createKVManager(config: KVManagerConfig, callback: AsyncCallback<KVManager>): void
createKVManager(config: KVManagerConfig): Promise<KVManager> | Creates a **KvManager** object for database management. | -| getKVStore<TextendsKVStore>(storeId: string, options: Options, callback: AsyncCallback<T>): void
getKVStore<TextendsKVStore>(storeId: string, options: Options): Promise<T> | Creates and obtains a KV store.| +| getKVStore<T extends KVStore>(storeId: string, options: Options, callback: AsyncCallback<T>): void
getKVStore<T extends KVStore>(storeId: string, options: Options): Promise<T> | Creates and obtains a KV store.| | put(key: string, value: Uint8Array\|string\|number\|boolean, callback: AsyncCallback<void>): void
put(key: string, value: Uint8Array\|string\|number\|boolean): Promise<void> | Inserts and updates data. | | delete(key: string, callback: AsyncCallback<void>): void
delete(key: string): Promise<void> | Deletes data. | -| get(key: string, callback: AsyncCallback<Uint8Array\|string\|boolean\|number>): void
get(key: string): Promise<Uint8Array\|string\|boolean\|number> | Queries data. | +| get(key: string, callback: AsyncCallback<Uint8Array\|string\|boolean\|number>): void
get(key: string): Promise<Uint8Array\|string\|boolean\|number> | Obtains data. | | on(event: 'dataChange', type: SubscribeType, observer: Callback<ChangeNotification>): void
on(event: 'syncComplete', syncCallback: Callback<Array<[string,number]>>): void | Subscribes to data changes in the KV store. | -| sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void | Triggers database synchronization in manual mode. | +| sync(deviceIdList: string[], mode: SyncMode, delayMs?: number): void | Triggers database synchronization in manual mode. | ## How to Develop @@ -61,32 +61,32 @@ The following uses a single KV store as an example to describe the development p context.requestPermissionsFromUser(['ohos.permission.DISTRIBUTED_DATASYNC'], 666).then((data) => { console.info('success: ${data}'); }).catch((error) => { - console.info('failed: ${error}'); + console.error('failed: ${error}'); }) } grantPermission(); // Stage model - import Ability from '@ohos.application.Ability'; + import AbilityStage from '@ohos.application.Ability'; let context = null; - - function grantPermission() { - class MainAbility extends Ability { - onWindowStageCreate(windowStage) { + + class MainAbility extends AbilityStage { + onWindowStageCreate(windowStage) { let context = this.context; - } + } } - - let permissions = ['ohos.permission.DISTRIBUTED_DATASYNC']; - context.requestPermissionsFromUser(permissions).then((data) => { + + function grantPermission() { + let permissions = ['ohos.permission.DISTRIBUTED_DATASYNC']; + context.requestPermissionsFromUser(permissions).then((data) => { console.log('success: ${data}'); - }).catch((error) => { - console.log('failed: ${error}'); - }); + }).catch((error) => { + console.error('failed: ${error}'); + }); } - + grantPermission(); ``` @@ -119,7 +119,7 @@ The following uses a single KV store as an example to describe the development p } distributedKVStore.createKVManager(kvManagerConfig, function (err, manager) { if (err) { - console.error(`Failed to create KVManager.code is ${err.code},message is ${err.message}`); + console.error(`Failed to create KVManager. code is ${err.code},message is ${err.message}`); return; } console.log('Created KVManager successfully'); diff --git a/en/application-dev/dfx/hitracemeter-guidelines.md b/en/application-dev/dfx/hitracemeter-guidelines.md index 2b8b7a562a7e896db40faba9de194777c4d1c170..3adf91286aaf410d7862c60320878e57acb359e8 100644 --- a/en/application-dev/dfx/hitracemeter-guidelines.md +++ b/en/application-dev/dfx/hitracemeter-guidelines.md @@ -20,16 +20,16 @@ hiTraceMeter provides APIs for system performance tracing. You can call the APIs Due to the asynchronous I/O feature of JS, the hiTraceMeter module provides only asynchronous APIs. ## Available APIs - -The performance tracing APIs are provided by the **hiTraceMeter** module. For details, see [API Reference](../reference/apis/js-apis-hitracemeter.md). -**Table 1** APIs for performance tracing +The performance tracing APIs are provided by the **hiTraceMeter** module. For details, see [API Reference]( ../reference/apis/js-apis-hitracemeter.md). + +**APIs for performance tracing** -| API| Return Value| Description| +| API | Return Value | Description | | ---------------------------------------------------------------------------- | --------- | ------------ | -| hiTraceMeter.startTrace(name: string, taskId: number) | void | Starts a trace task. If multiple trace tasks with the same name need to be performed at the same time or a trace task needs to be performed multiple times concurrently, different task IDs must be specified in **startTrace**. If the trace tasks with the same name are not performed at the same time, the same task ID can be used.| -| hiTraceMeter.finishTrace(name: string, taskId: number) | void | Stops a trace task. The values of **name** and **taskId** must be the same as those of **hiTraceMeter.startTrace**.| -| hiTraceMeter.traceByValue(name: string, value: number) | void | Traces the value changes of a variable.| +| hiTraceMeter.startTrace(name: string, taskId: number) | void | Marks the start of a trace task. If multiple trace tasks with the same name need to be performed at the same time or a trace task needs to be performed multiple times concurrently, different task IDs must be specified in **startTrace**. If the trace tasks with the same name are not performed at the same time, the same task ID can be used.| +| hiTraceMeter.finishTrace(name: string, taskId: number) | void | Marks the end of a trace task. The values of **name** and **taskId** must be the same as those of **hiTraceMeter.startTrace**.| +| hiTraceMeter.traceByValue(name: string, value: number) | void | Marks the value changes of a numeric variable in a trace task.| ## How to Develop @@ -46,12 +46,12 @@ In this example, distributed call chain tracing begins when the application star }, onInit() { this.title = this.$t('strings.world'); - - // Start track tasks with the same name concurrently. + + // Start trace tasks with the same name concurrently. hiTraceMeter.startTrace("business", 1); // Keep the service process running. console.log(`business running`); - hiTraceMeter.startTrace("business", 2); // Start the second trace task while the first task is still running. The first and second tasks have the same name but different task IDs. + hiTraceMeter.startTrace("business", 2); // Start the second trace task with the same name while the first task is still running. The tasks are running concurrently and therefore their taskId must be different. // Keep the service process running. console.log(`business running`); hiTraceMeter.finishTrace("business", 1); @@ -59,14 +59,14 @@ In this example, distributed call chain tracing begins when the application star console.log(`business running`); hiTraceMeter.finishTrace("business", 2); - // Start track tasks with the same name at different times. + // Start trace tasks with the same name in serial mode. hiTraceMeter.startTrace("business", 1); // Keep the service process running. console.log(`business running`); hiTraceMeter.finishTrace("business", 1); // End the first trace task. // Keep the service process running. console.log(`business running`); - hiTraceMeter.startTrace("business", 1); // Start the second trace task after the first trace task ends. The two tasks have the same name and task ID. + hiTraceMeter.startTrace("business", 1); // Start the second trace task with the same name in serial mode. // Keep the service process running. console.log(`business running`); @@ -79,4 +79,95 @@ In this example, distributed call chain tracing begins when the application star } ``` -2. Click the run button on the application page. Then, you'll obtain the log information for service analysis. +2. Create an ArkTs application project. In the displayed **Project** window, choose **entry** > **src** > **main** > **ets** > **pages** > **index**, and double-click **index.js**. Add the code to implement performance tracing upon page loading. For example, if the name of the trace task is **HITRACE\_TAG\_APP**, the sample code is as follows: + + ```ts + import hitrace from '@ohos.hiTraceMeter'; + + @Entry + @Component + struct Index { + @State message: string = 'Hello World'; + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + .onClick(() => { + this.message = 'Hello ArkUI'; + + // Start trace tasks with the same name concurrently. + hitrace.startTrace("HITRACE_TAG_APP", 1001); + // Keep the service process running. + console.log(`HITRACE_TAG_APP running`); + + // Start the second trace task with the same name while the first task is still running. The tasks are running concurrently and therefore their taskId must be different. + hitrace.startTrace("HITRACE_TAG_APP", 1002); + // Keep the service process running. + console.log(`HITRACE_TAG_APP running`); + + hitrace.finishTrace("HITRACE_TAG_APP", 1001); + hitrace.finishTrace("HITRACE_TAG_APP", 1002); + + // If trace tasks with the same name are not run concurrently, the same taskId can be used. + hitrace.startTrace("HITRACE_TAG_APP", 1003); + // Keep the service process running. + console.log(`HITRACE_TAG_APP running`); + // End the first trace task. + hitrace.finishTrace("HITRACE_TAG_APP", 1003); + + // Start the second trace task with the same name in serial mode. It uses a taskId different from the first trace task. + hitrace.startTrace("HITRACE_TAG_APP", 1004); + // Keep the service process running. + console.log(`HITRACE_TAG_APP running`); + let traceCount = 3; + hitrace.traceByValue("myTestCount", traceCount); + hitrace.finishTrace("HITRACE_TAG_APP", 1004); + + // Start the third trace task with the same name in serial mode. It uses a taskId same as the second trace task. + hitrace.startTrace("HITRACE_TAG_APP", 1004); + // Keep the service process running. + console.log(`HITRACE_TAG_APP running`); + // End the third trace task. + hitrace.finishTrace("HITRACE_TAG_APP", 1004); + + }) + } + .width('100%') + } + .height('100%') + } + } + ``` + +3. Click the run button on the application page. Then, run the following commands in sequence in shell: + + ```shell + hdc shell + hitrace --trace_begin app + ``` + + After the trace command is executed, call the hiTraceMeter APIs in your own service logic on the device. Then, run the following commands in sequence: + + ```shell + hitrace --trace_dump | grep tracing_mark_write + hitrace --trace_finish + ``` + + The following is an example of the captured trace data: + + ``` + <...>-3310 (-------) [005] .... 351382.921936: tracing_mark_write: S|3310|H:HITRACE_TAG_APP 1001 + <...>-3310 (-------) [005] .... 351382.922138: tracing_mark_write: S|3310|H:HITRACE_TAG_APP 1002 + <...>-3310 (-------) [005] .... 351382.922165: tracing_mark_write: F|3310|H:HITRACE_TAG_APP 1001 + <...>-3310 (-------) [005] .... 351382.922175: tracing_mark_write: F|3310|H:HITRACE_TAG_APP 1002 + <...>-3310 (-------) [005] .... 351382.922182: tracing_mark_write: S|3310|H:HITRACE_TAG_APP 1003 + <...>-3310 (-------) [005] .... 351382.922203: tracing_mark_write: F|3310|H:HITRACE_TAG_APP 1003 + <...>-3310 (-------) [005] .... 351382.922210: tracing_mark_write: S|3310|H:HITRACE_TAG_APP 1004 + <...>-3310 (-------) [005] .... 351382.922233: tracing_mark_write: C|3310|H:myTestCount 3 + <...>-3310 (-------) [005] .... 351382.922240: tracing_mark_write: F|3310|H:HITRACE_TAG_APP 1004 + <...>-3310 (-------) [005] .... 351382.922247: tracing_mark_write: S|3310|H:HITRACE_TAG_APP 1004 + <...>-3310 (-------) [005] .... 351382.922266: tracing_mark_write: F|3310|H:HITRACE_TAG_APP 1004 + ``` 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..6378b7515e675fcc0b924fc47a4af9db60707a47 --- /dev/null +++ b/en/application-dev/media/avrecorder.md @@ -0,0 +1,486 @@ +# 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 the permissions **ohos.permission.MICROPHONE** and **ohos.permission.CAMERA** for your application. For details, see [Permission Application Guide](../security/accesstoken-guidelines.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/camera.md b/en/application-dev/media/camera.md index 8032348105eb70a3b5dbfd431de3632d6d04cb8a..0622db9c3ce6d962001b47ca6d2e6d1bc2aaff7c 100644 --- a/en/application-dev/media/camera.md +++ b/en/application-dev/media/camera.md @@ -2,13 +2,13 @@ ## When to Use -With the APIs provided by the **Camera** module, you can access and operate camera devices and develop new functions. Common operations include preview, photographing, and video recording. You can also implement flash control, exposure time control, focus mode control, zooming control, and many others. +With the APIs provided by the **Camera** module, you can access and operate camera devices and develop new functions. Common operations include preview, photographing, and video recording. You can also implement flash control, exposure time control, focus mode control, zoom control, and much more. Before calling camera APIs, be familiar with the following concepts: - **Static camera capabilities**: A series of parameters used to describe inherent capabilities of a camera, such as orientation and supported resolution. - **Physical camera**: An independent camera device. The physical camera ID is a string that uniquely identifies a physical camera. -- **Asynchronous operation**: To prevent the UI thread from being blocked, most **Camera** calls are asynchronous. Each API provides the callback and promise functions. +- **Asynchronous operation**: A non-blocking operation that allows other operations to execute before it completes. To prevent the UI thread from being blocked, some **Camera** calls are asynchronous. Each asynchronous API provides the callback and promise functions. ## How to Develop @@ -22,7 +22,7 @@ The full process includes applying for permissions, creating an instance, settin #### Applying for Permissions -You must apply for the permission for your application to access the camera device and other functions. The following table lists camera-related permissions. +You must apply for the permissions for your application to access the camera device and other functions. The following table lists camera-related permissions. | Permission| Attribute Value | | -------- | ------------------------------ | @@ -51,82 +51,108 @@ function applyPermission() { #### Creating an Instance -You must create an independent **CameraManager** instance before performing camera operations. If this operation fails, the camera may be occupied or unusable. If the camera is occupied, wait until it is released. You can call **getSupportedCameras()** to obtain the list of cameras supported by the current device. The list stores all camera IDs of the current device. If the list is not empty, each ID in the list can be used to create an independent camera instance. If the list is empty, no camera is available for the current device and subsequent operations cannot be performed. The camera has preview, shooting, video recording, and metadata streams. You can use **getSupportedOutputCapability()** to obtain the output stream capabilities of the camera and configure them in the **profile** field in **CameraOutputCapability**. The procedure for creating a **CameraManager** instance is as follows: +You must create an independent **CameraManager** instance before performing camera operations. If this operation fails, the camera may be occupied or unusable. If the camera is occupied, wait until it is released. You can call **getSupportedCameras()** to obtain the list of cameras supported by the current device. The list stores all camera IDs of the current device. Each of these IDs can be used to create an independent **CameraManager** instance. If the list is empty, no camera is available for the current device and subsequent operations cannot be performed. The camera has preview, shooting, video recording, and metadata output streams. You can use **getSupportedOutputCapability()** to obtain the output stream capabilities of the camera and configure them in the **profile** field in **CameraOutputCapability**. The procedure for creating a **CameraManager** instance is as follows: ```typescript import camera from '@ohos.multimedia.camera' import image from '@ohos.multimedia.image' import media from '@ohos.multimedia.media' -// Create a CameraManager object. +// Create a CameraManager instance. context: any = getContext(this) -let cameraManager = await camera.getCameraManager(this.context) +let cameraManager = camera.getCameraManager(this.context) if (!cameraManager) { - console.error('Failed to get the CameraManager instance'); -} + console.error("camera.getCameraManager error") + return; +} +// Listen for camera state changes. +cameraManager.on('cameraStatus', (cameraStatusInfo) => { + console.log(`camera : ${cameraStatusInfo.camera.cameraId}`); + console.log(`status: ${cameraStatusInfo.status}`); +}) // Obtain the camera list. -let cameraArray = await cameraManager.getSupportedCameras() -if (!cameraArray) { - console.error('Failed to get the cameras'); -} +let cameraArray = cameraManager.getSupportedCameras(); +if (cameraArray.length <= 0) { + console.error("cameraManager.getSupportedCameras error") + return; +} for (let index = 0; index < cameraArray.length; index++) { - console.log('cameraId : ' + cameraArray[index].cameraId) // Obtain the camera ID. - console.log('cameraPosition : ' + cameraArray[index].cameraPosition) // Obtain the camera position. - console.log('cameraType : ' + cameraArray[index].cameraType) // Obtain the camera type. - console.log('connectionType : ' + cameraArray[index].connectionType) // Obtain the camera connection type. + console.log('cameraId : ' + cameraArray[index].cameraId); // Obtain the camera ID. + console.log('cameraPosition : ' + cameraArray[index].cameraPosition); // Obtain the camera position. + console.log('cameraType : ' + cameraArray[index].cameraType); // Obtain the camera type. + console.log('connectionType : ' + cameraArray[index].connectionType); // Obtain the camera connection type. } // Create a camera input stream. -let cameraInput = await cameraManager.createCameraInput(cameraArray[0]) +let cameraInput +try { + cameraInput = cameraManager.createCameraInput(cameraArray[0]); +} catch () { + console.error('Failed to createCameraInput errorCode = ' + error.code); +} + +// Listen for CameraInput errors. +let cameraDevice = cameraArray[0]; +cameraInput.on('error', cameraDevice, (error) => { + console.log(`Camera input error code: ${error.code}`); +}) -// Open camera +// Open the camera. await cameraInput.open(); // Obtain the output stream capabilities supported by the camera. -let cameraOutputCap = await cameraManager.getSupportedOutputCapability(cameraArray[0]); +let cameraOutputCap = cameraManager.getSupportedOutputCapability(cameraArray[0]); if (!cameraOutputCap) { - console.error("outputCapability outputCapability == null || undefined") -} else { - console.info("outputCapability: " + JSON.stringify(cameraOutputCap)); + console.error("cameraManager.getSupportedOutputCapability error") + return; } +console.info("outputCapability: " + JSON.stringify(cameraOutputCap)); -let previewProfilesArray = cameraOutputCap.GetPreviewProfiles(); +let previewProfilesArray = cameraOutputCap.previewProfiles; if (!previewProfilesArray) { console.error("createOutput previewProfilesArray == null || undefined") } -let photoProfilesArray = cameraOutputCap.GetPhotoProfiles(); +let photoProfilesArray = cameraOutputCap.photoProfiles; if (!photoProfilesArray) { console.error("createOutput photoProfilesArray == null || undefined") } -let videoProfilesArray = cameraOutputCap.GetVideoProfiles(); +let videoProfilesArray = cameraOutputCap.videoProfiles; if (!videoProfilesArray) { console.error("createOutput videoProfilesArray == null || undefined") } -let metadataObjectTypesArray = cameraOutputCap.GetSupportedMetadataObjectType(); +let metadataObjectTypesArray = cameraOutputCap.supportedMetadataObjectTypes; if (!metadataObjectTypesArray) { console.error("createOutput metadataObjectTypesArray == null || undefined") } // Create a preview stream. For details about the surfaceId parameter, see the XComponent section. The preview stream is the surface provided by the XComponent. -let previewOutput = await cameraManager.createPreviewOutput(previewProfilesArray[0], surfaceId) -if (!previewOutput) { +let previewOutput +try { + previewOutput = cameraManager.createPreviewOutput(previewProfilesArray[0], surfaceId) +} catch (error) { console.error("Failed to create the PreviewOutput instance.") } -// Create an ImageReceiver object and set photo parameters. The resolution is set based on the photographing resolutions supported by the current device, which are obtained by photoProfilesArray. +// Listen for PreviewOutput errors. +previewOutput.on('error', (error) => { + console.log(`Preview output error code: ${error.code}`); +}) + +// Create an ImageReceiver instance and set photo parameters. Wherein, the resolution must be one of the photographing resolutions supported by the current device, which are obtained by photoProfilesArray. let imageReceiver = await image.createImageReceiver(1920, 1080, 4, 8) // Obtain the surface ID for displaying the photos. let photoSurfaceId = await imageReceiver.getReceivingSurfaceId() // Create a photographing output stream. -let photoOutput = await cameraManager.createPhotoOutput(photoProfilesArray[0], photoSurfaceId) -if (!photoOutput) { - console.error('Failed to create the PhotoOutput instance.'); - return; +let photoOutput +try { + photoOutput = cameraManager.createPhotoOutput(photoProfilesArray[0], photoSurfaceId) +} catch (error) { + console.error('Failed to createPhotoOutput errorCode = ' + error.code); } // Define video recording parameters. @@ -168,12 +194,18 @@ videoRecorder.getInputSurface().then((id) => { videoSurfaceId = id }) -// Create a VideoOutput object. -let videoOutput = await cameraManager.createVideoOutput(videoProfilesArray[0], videoSurfaceId) -if (!videoOutput) { - console.error('Failed to create the videoOutput instance.'); - return; +// Create a VideoOutput instance. +let videoOutput +try { + videoOutput = cameraManager.createVideoOutput(videoProfilesArray[0], videoSurfaceId) +} catch (error) { + console.error('Failed to create the videoOutput instance. errorCode = ' + error.code); } + +// Listen for VideoOutput errors. +videoOutput.on('error', (error) => { + console.log(`Preview output error code: ${error.code}`); +}) ``` Surfaces must be created in advance for the preview, shooting, and video recording stream. The preview stream is the surface provided by the **XComponent**, the shooting stream is the surface provided by **ImageReceiver**, and the video recording stream is the surface provided by **VideoRecorder**. @@ -247,24 +279,45 @@ function getVideoRecorderSurface() { ```typescript // Create a session. -let captureSession = await camera.createCaptureSession() -if (!captureSession) { - console.error('Failed to create the CaptureSession instance.'); - return; +let captureSession +try { + captureSession = cameraManager.createCaptureSession() +} catch (error) { + console.error('Failed to create the CaptureSession instance. errorCode = ' + error.code); } -console.log('Callback returned with the CaptureSession instance.' + session); + +// Listen for session errors. +captureSession.on('error', (error) => { + console.log(`Capture session error code: ${error.code}`); +}) // Start configuration for the session. -await captureSession.beginConfig() +try { + captureSession.beginConfig() +} catch (error) { + console.error('Failed to beginConfig. errorCode = ' + error.code); +} // Add the camera input stream to the session. -await captureSession.addInput(cameraInput) +try { + captureSession.addInput(cameraInput) +} catch (error) { + console.error('Failed to addInput. errorCode = ' + error.code); +} // Add the preview input stream to the session. -await captureSession.addOutput(previewOutput) +try { + captureSession.addOutput(previewOutput) +} catch (error) { + console.error('Failed to addOutput(previewOutput). errorCode = ' + error.code); +} // Add the photographing output stream to the session. -await captureSession.addOutput(photoOutput) +try { + captureSession.addOutput(photoOutput) +} catch (error) { + console.error('Failed to addOutput(photoOutput). errorCode = ' + error.code); +} // Commit the session configuration. await captureSession.commitConfig() @@ -282,13 +335,25 @@ await captureSession.start().then(() => { await captureSession.stop() // Start configuration for the session. -await captureSession.beginConfig() +try { + captureSession.beginConfig() +} catch (error) { + console.error('Failed to beginConfig. errorCode = ' + error.code); +} // Remove the photographing output stream from the session. -await captureSession.removeOutput(photoOutput) +try { + captureSession.removeOutput(photoOutput) +} catch (error) { + console.error('Failed to removeOutput(photoOutput). errorCode = ' + error.code); +} // Add a video recording output stream to the session. -await captureSession.addOutput(videoOutput) +try { + captureSession.addOutput(videoOutput) +} catch (error) { + console.error('Failed to addOutput(videoOutput). errorCode = ' + error.code); +} // Commit the session configuration. await captureSession.commitConfig() @@ -303,71 +368,65 @@ await captureSession.start().then(() => { ```typescript // Check whether the camera has flash. -let flashStatus = await captureSession.hasFlash() -if (!flashStatus) { - console.error('Failed to check whether the device has the flash mode.'); +let flashStatus +try { + flashStatus = captureSession.hasFlash() +} catch (error) { + console.error('Failed to hasFlash. errorCode = ' + error.code); } console.log('Promise returned with the flash light support status:' + flashStatus); if (flashStatus) { // Check whether the auto flash mode is supported. let flashModeStatus - captureSession.isFlashModeSupported(camera.FlashMode.FLASH_MODE_AUTO, async (err, status) => { - if (err) { - console.error('Failed to check whether the flash mode is supported. ${err.message}'); - return; - } - console.log('Callback returned with the flash mode support status: ' + status); + try { + let status = captureSession.isFlashModeSupported(camera.FlashMode.FLASH_MODE_AUTO) flashModeStatus = status - }) + } catch (error) { + console.error('Failed to check whether the flash mode is supported. errorCode = ' + error.code); + } if(flashModeStatus) { // Set the flash mode to auto. - captureSession.setFlashMode(camera.FlashMode.FLASH_MODE_AUTO, async (err) => { - if (err) { - console.error('Failed to set the flash mode ${err.message}'); - return; - } - console.log('Callback returned with the successful execution of setFlashMode.'); - }) + try { + captureSession.setFlashMode(camera.FlashMode.FLASH_MODE_AUTO) + } catch (error) { + console.error('Failed to set the flash mode. errorCode = ' + error.code); + } } } // Check whether the continuous auto focus is supported. let focusModeStatus -captureSession.isFocusModeSupported(camera.FocusMode.FOCUS_MODE_CONTINUOUS_AUTO, async (err, status) => { - if (err) { - console.error('Failed to check whether the focus mode is supported. ${err.message}'); - return; - } - console.log('Callback returned with the focus mode support status: ' + status); +try { + let status = captureSession.isFocusModeSupported(camera.FocusMode.FOCUS_MODE_CONTINUOUS_AUTO) focusModeStatus = status -}) +} catch (error) { + console.error('Failed to check whether the focus mode is supported. errorCode = ' + error.code); +} + if (focusModeStatus) { // Set the focus mode to continuous auto focus. - captureSession.setFocusMode(camera.FocusMode.FOCUS_MODE_CONTINUOUS_AUTO, async (err) => { - if (err) { - console.error('Failed to set the focus mode ${err.message}'); - return; - } - console.log('Callback returned with the successful execution of setFocusMode.'); - }) + try { + captureSession.setFocusMode(camera.FocusMode.FOCUS_MODE_CONTINUOUS_AUTO) + } catch (error) { + console.error('Failed to set the focus mode. errorCode = ' + error.code); + } } // Obtain the zoom ratio range supported by the camera. -let zoomRatioRange = await captureSession.getZoomRatioRange() -if (!zoomRatioRange) { - console.error('Failed to get the zoom ratio range.'); - return; +let zoomRatioRange +try { + zoomRatioRange = captureSession.getZoomRatioRange() +} catch (error) { + console.error('Failed to get the zoom ratio range. errorCode = ' + error.code); } // Set a zoom ratio. -captureSession.setZoomRatio(zoomRatioRange[0], async (err) => { - if (err) { - console.error('Failed to set the zoom ratio value ${err.message}'); - return; - } - console.log('Callback returned with the successful execution of setZoomRatio.'); -}) +try { + captureSession.setZoomRatio(zoomRatioRange[0]) +} catch (error) { + console.error('Failed to set the zoom ratio value. errorCode = ' + error.code); +} ``` #### Taking Photos @@ -428,7 +487,7 @@ For details about the APIs used for saving photos, see [Image Processing](image. captureSession.stop() // Release the camera input stream. -cameraInput.release() +cameraInput.close() // Release the preview output stream. previewOutput.release() @@ -449,4 +508,4 @@ captureSession = null ## Process Flowchart The following figure shows the process of using the camera. -![camera_framework process](figures/camera_framework_process.jpg) +![camera_framework process](figures/camera_framework_process.png) diff --git a/en/application-dev/media/figures/camera_framework_process.jpg b/en/application-dev/media/figures/camera_framework_process.jpg deleted file mode 100644 index 1207a9a4adb5d5886f9427b07f0ec7d717fc5bf8..0000000000000000000000000000000000000000 Binary files a/en/application-dev/media/figures/camera_framework_process.jpg and /dev/null differ diff --git a/en/application-dev/media/figures/camera_framework_process.png b/en/application-dev/media/figures/camera_framework_process.png new file mode 100644 index 0000000000000000000000000000000000000000..bf4b6806fb19e087318306dbc7f9a4b0576273cd Binary files /dev/null and b/en/application-dev/media/figures/camera_framework_process.png differ 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/mindspore-lite-guidelines.md b/en/application-dev/napi/mindspore-lite-guidelines.md index 3dde56c84f321a6200c45b1839eccdabcba942aa..f91d4145a856b925d3172fb990ba90ccca2a5b20 100644 --- a/en/application-dev/napi/mindspore-lite-guidelines.md +++ b/en/application-dev/napi/mindspore-lite-guidelines.md @@ -61,7 +61,7 @@ The development process consists of the following main steps: The required model can be downloaded directly or obtained using the model conversion tool. - If the downloaded model is in the `.ms` format, you can use it directly for inference. The following uses the **mobilenetv2.ms** model as an example. - - If the downloaded model uses a third-party framework, such as TensorFlow, TensorFlow Lite, Caffe, or ONNX, you can use the [model conversion tool](https://www.mindspore.cn/lite/docs/zh-CN/r1.5/use/downloads.html#id1) to convert it to the `.ms` format. + - If the downloaded model uses a third-party framework, such as TensorFlow, TensorFlow Lite, Caffe, or ONNX, you can use the [model conversion tool](https://www.mindspore.cn/lite/docs/en/r1.5/use/downloads.html#id1) to convert it to the `.ms` format. 2. Create a context, and set parameters such as the number of runtime threads and device type. 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..fa62ed392100f7ff0b60dcc6e8ee66ef465fbb3a 100644 --- a/en/application-dev/quick-start/arkts-restrictions-and-extensions.md +++ b/en/application-dev/quick-start/arkts-restrictions-and-extensions.md @@ -46,35 +46,79 @@ 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 +## Initialization Rules and Restrictions of Custom Components' Member Variables The member variables of a component can be initialized in either of the following ways: @@ -89,7 +133,7 @@ The member variables of a component can be initialized in either of the followin MyComponent({counter: $myCounter}) ``` -The allowed method depends on the decorator of the state variable, as shown in the following table. +The allowed method depends on the decorator of the state variable, as described in the following table. | Decorator | Local Initialization| Initialization Using Constructor Parameters| | ------------ | ----- | ----------- | @@ -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/reference/apis/Readme-EN.md b/en/application-dev/reference/apis/Readme-EN.md index b1b7419a32599978dfb561452d56a139df835919..bb3eca101141cf2fcc13c880bc7edd69173d02d7 100644 --- a/en/application-dev/reference/apis/Readme-EN.md +++ b/en/application-dev/reference/apis/Readme-EN.md @@ -113,6 +113,7 @@ - [ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md) - [UIAbilityContext](js-apis-inner-application-uiAbilityContext.md) - [shellCmdResult](js-apis-inner-application-shellCmdResult.md) + - [WindowExtensionContext](js-apis-inner-application-windowExtensionContext.md) - wantAgent - [triggerInfo](js-apis-inner-wantAgent-triggerInfo.md) - [wantAgentInfo](js-apis-inner-wantAgent-wantAgentInfo.md) @@ -215,9 +216,13 @@ - data/rdb - [resultSet](js-apis-data-resultset.md) - File Management - - [@ohos.environment (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.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.storageStatistics (Application Storage Statistics)](js-apis-storage-statistics.md) diff --git a/en/application-dev/reference/apis/js-apis-animator.md b/en/application-dev/reference/apis/js-apis-animator.md index da7ec7d145779eb5044427fdee758a34f6b33fdc..9ff98751e425eaca0d814a166f08bdb55cb2083a 100644 --- a/en/application-dev/reference/apis/js-apis-animator.md +++ b/en/application-dev/reference/apis/js-apis-animator.md @@ -1,6 +1,6 @@ -# @ohos.animator +# @ohos.animator (Animator) -The **animator** module provides APIs for applying animation effects, including defining animations, starting animations, and playing animations in reverse order. +The **Animator** module provides APIs for applying animation effects, including defining animations, starting animations, and playing animations in reverse order. > **NOTE** > @@ -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** @@ -283,7 +283,7 @@ export default { easing: 'friction', delay: 0, fill: 'forwards', - direction: 'normal', + direction: "normal", iterations: 2, begin: 200.0, end: 400.0 @@ -296,10 +296,10 @@ export default { easing: 'friction', delay: 0, fill: 'forwards', - direction: "normal", + direction: 'normal', iterations: 2, begin: 0, - end: 400.0, + end: 400.0 }; try { this.animator.reset(options1); @@ -519,7 +519,7 @@ let options = { direction: 'normal', iterations: 3, begin: 200.0, - end: 400.0, + end: 400.0 }; this.animator = animator.createAnimator(options); ``` diff --git a/en/application-dev/reference/apis/js-apis-appAccount.md b/en/application-dev/reference/apis/js-apis-appAccount.md index 0d2aef3e25aa21eb724c8f74f977d901ea12b290..7c2974d0c8fc4eef7a911523fdeb96c596304c94 100644 --- a/en/application-dev/reference/apis/js-apis-appAccount.md +++ b/en/application-dev/reference/apis/js-apis-appAccount.md @@ -1,4 +1,4 @@ -# @ohos.account.appAccount +# @ohos.account.appAccount (App Account Management) The **appAccount** module provides APIs for adding, deleting, modifying, and querying app account information, and supports inter-app authentication and distributed data synchronization. @@ -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,7 @@ 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 - +**Required Permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS **System capability**: SystemCapability.Account.AppAccount **Parameters** @@ -1133,7 +1108,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 +1127,7 @@ 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 - +**Required Permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS **System capability**: SystemCapability.Account.AppAccount **Return value** @@ -1172,7 +1145,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 +1162,7 @@ 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 - +**Required Permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS **System capability**: SystemCapability.Account.AppAccount **Parameters** @@ -1212,7 +1183,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 +1202,7 @@ 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 - +**Required Permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS **System capability**: SystemCapability.Account.AppAccount **Parameters** @@ -1259,7 +1228,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 +1267,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)); } @@ -1336,8 +1303,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 +1364,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 +1423,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 +1462,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 +1509,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 +1549,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 +1596,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 +1637,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 +1685,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 +1728,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 +1778,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 +1819,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 +1867,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 +1905,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 +1950,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 +1989,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 +2035,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 +2073,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 +2132,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 +2184,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 +2228,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 +2270,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 +2320,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 +2360,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 +2406,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 +2444,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 +2493,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 +2537,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 +2583,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 +2630,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 +2674,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 +2716,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)); }); @@ -2809,7 +2744,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 +2777,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 +2822,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 +2850,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 +2882,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 +2911,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 +2944,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 +2974,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 +3007,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 +3038,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 +3073,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 +3104,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 +3138,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 +3169,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 +3203,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 +3235,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 +3270,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 +3302,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 +3337,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 +3367,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 +3396,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 +3427,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 +3463,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 +3494,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 +3528,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 +3557,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 +3590,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 +3620,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 +3654,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 +3684,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)); } @@ -3812,7 +3717,6 @@ Unsubscribes from account information changes. **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); function changeOnCallback(data){ console.debug("receive change data:" + JSON.stringify(data)); appAccountManager.off('change', function(){ @@ -3866,7 +3770,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 +3800,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 +3835,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 +3866,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 +3900,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 +3932,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 +3967,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 +3999,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 +4034,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 +4065,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 +4100,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 +4130,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 +4164,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 +4194,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 +4228,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 +4258,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 +4303,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 +4341,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 +4374,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) => { @@ -4883,7 +4768,7 @@ Creates an app account implicitly based on the specified account owner. This API | options | [CreateAccountImplicitlyOptions](#createaccountimplicitlyoptions9) | Yes | Options for implicitly creating the account. | | callback | [AuthCallback](#authcallback9) | Yes | Authenticator callback invoked to return the result.| -### addAccountImplicitlydeprecated +### addAccountImplicitly(deprecated) addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void @@ -4922,7 +4807,7 @@ Authenticates an app account to obtain the authorization token. This API uses an | options | {[key: string]: Object} | Yes | Options for the authentication. | | callback | [AuthCallback](#authcallback9) | Yes | Callback invoked to return the result.| -### authenticatedeprecated +### authenticate(deprecated) authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void diff --git a/en/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md b/en/application-dev/reference/apis/js-apis-application-dataShareExtensionAbility.md similarity index 96% rename from en/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md rename to en/application-dev/reference/apis/js-apis-application-dataShareExtensionAbility.md index 9ecffc326e125b6e7dbe0ecd3cf03bfc3d2fa7dd..2b868190b0b901638830d8051a2d973188c43d41 100644 --- a/en/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md +++ b/en/application-dev/reference/apis/js-apis-application-dataShareExtensionAbility.md @@ -1,6 +1,6 @@ -# @ohos.application.DataShareExtensionAbility +# @ohos.application.DataShareExtensionAbility (DataShare Extension Ability) -The **DataShareExtensionAbility** module provides data share services based on the Extension ability. +The **DataShareExtensionAbility** module provides data share services based on the ExtensionAbility. >**NOTE** > @@ -22,12 +22,11 @@ import DataShareExtensionAbility from '@ohos.application.DataShareExtensionAbili The URIs are in the following format: **Scheme://authority/path** - - *Scheme*: scheme name, which has a fixed value of **datashare** for the **DataShare** module. - *authority*: [userinfo@]host[:port] - - *userinfo*: login information, which can be left unspecified. - - *host*: server address. It is the target device ID for cross-device access and empty for local device access. - - *port*: port number of the server, which can be left unspecified. + - *userinfo*: login information, which can be left unspecified. + - *host*: server address. It is the target device ID for cross-device access and empty for local device access. + - *port*: port number of the server, which can be left unspecified. - *path*: **DataShare** identifier and the resource path. The **DataShare** identifier is mandatory, and the resource path is optional. Example: @@ -76,7 +75,8 @@ let rdbStore; export default class DataShareExtAbility extends DataShareExtensionAbility { onCreate(want, callback) { rdb.getRdbStore(this.context, { - name: DB_NAME + name: DB_NAME, + securityLevel: rdb.SecurityLevel.S1 }, function (err, data) { console.log('getRdbStore done, data : ' + data); rdbStore = data; diff --git a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md index 6080d2c9bc52e30b6fa987f9cb65ea9b42a28024..c05f331ad7f1fa1a9db31080bd1cc06ad9767054 100644 --- a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md @@ -187,7 +187,7 @@ let wantAgentInfo = { wants: [ { bundleName: "com.example.myapplication", - abilityName: "EntryAbility" + abilityName: "com.example.myapplication.MainAbility" } ], operationType: wantAgent.OperationType.START_ABILITY, @@ -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) { @@ -276,7 +276,7 @@ let wantAgentInfo = { wants: [ { bundleName: "com.example.myapplication", - abilityName: "EntryAbility" + abilityName: "com.example.myapplication.MainAbility" } ], operationType: wantAgent.OperationType.START_ABILITY, @@ -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-batteryStatistics.md b/en/application-dev/reference/apis/js-apis-batteryStatistics.md index 2bb3159fc3912a6a1fe272451ce31aa812052432..89cd4ab39ee2d9a7c7e0a4f9b03a4755b55b864f 100644 --- a/en/application-dev/reference/apis/js-apis-batteryStatistics.md +++ b/en/application-dev/reference/apis/js-apis-batteryStatistics.md @@ -46,7 +46,7 @@ batteryStats.getBatteryStats() console.info('battery statistics info: ' + data); }) .catch(err => { - console.error('get battery statisitics failed, err: ' + err); + console.error('get battery statistics failed, err: ' + err); }); ``` @@ -81,7 +81,7 @@ batteryStats.getBatteryStats((err, data) => { if (typeof err === 'undefined') { console.info('battery statistics info: ' + data); } else { - console.error('get battery statisitics failed, err: ' + err); + console.error('get battery statistics failed, err: ' + err); } }); ``` @@ -123,7 +123,7 @@ try { var value = batteryStats.getAppPowerValue(10021); console.info('battery statistics value of app is: ' + value); } catch(err) { - console.error('get battery statisitics value of app failed, err: ' + err); + console.error('get battery statistics value of app failed, err: ' + err); } ``` @@ -164,7 +164,7 @@ try { var percent = batteryStats.getAppPowerPercent(10021); console.info('battery statistics percent of app is: ' + percent); } catch(err) { - console.error('get battery statisitics percent of app failed, err: ' + err); + console.error('get battery statistics percent of app failed, err: ' + err); } ``` @@ -205,7 +205,7 @@ try { var value = batteryStats.getHardwareUnitPowerValue(ConsumptionType.CONSUMPTION_TYPE_SCREEN); console.info('battery statistics percent of hardware is: ' + percent); } catch(err) { - console.error('get battery statisitics percent of hardware failed, err: ' + err); + console.error('get battery statistics percent of hardware failed, err: ' + err); } ``` @@ -246,7 +246,7 @@ try { var value = batteryStats.getHardwareUnitPowerPercent(ConsumptionType.CONSUMPTION_TYPE_SCREEN); console.info('battery statistics percent of hardware is: ' + percent); } catch(err) { - console.error('get battery statisitics percent of hardware failed, err: ' + err); + console.error('get battery statistics percent of hardware failed, err: ' + err); } ``` diff --git a/en/application-dev/reference/apis/js-apis-camera.md b/en/application-dev/reference/apis/js-apis-camera.md index cb1311397a52d39e41466c33135bdc93164a0807..b30722bd2fddd6ef83914ffe6b8a3421831935ce 100644 --- a/en/application-dev/reference/apis/js-apis-camera.md +++ b/en/application-dev/reference/apis/js-apis-camera.md @@ -12,9 +12,9 @@ import camera from '@ohos.multimedia.camera'; ## camera.getCameraManager -getCameraManager(context: Context, callback: AsyncCallback): void +getCameraManager(context: Context): CameraManager -Obtains a **CameraManager** instance. This API uses an asynchronous callback to return the result. +Obtains a **CameraManager** instance. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -23,46 +23,17 @@ Obtains a **CameraManager** instance. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------- | ----------------------------------------------- | ---- | ---------------------------- | | context | [Context](js-apis-inner-app-context.md) | Yes | Application context. | -| callback | AsyncCallback<[CameraManager](#cameramanager)\> | Yes | Callback used to return the **CameraManager** instance.| - -**Example** - -```js -camera.getCameraManager(context, (err, cameraManager) => { - if (err) { - console.error(`Failed to get the CameraManager instance ${err.message}`); - return; - } - console.log('Callback returned with the CameraManager instance'); -}); -``` - -## camera.getCameraManager - -getCameraManager(context: Context): Promise - -Obtains a **CameraManager** instance. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ------- | ------- | ---- | ------------ | -| context | [Context](js-apis-inner-app-context.md) | Yes | Application context.| **Return value** -| Type | Description | -| ----------------------------------------- | ----------------------------------- | -| Promise<[CameraManager](#cameramanager)\> | Promise used to return the **CameraManager** instance.| +| Type | Description | +| ----------------------------------------------- | ---------------------------- | +| [CameraManager](#cameramanager) | **CameraManager** instance obtained. | **Example** ```js -camera.getCameraManager(context).then((cameraManager) => { - console.log('Promise returned with the CameraManager instance.'); -}) +let cameraManager = camera.getCameraManager(context); ``` ## CameraStatus @@ -71,12 +42,12 @@ Enumerates the camera statuses. **System capability**: SystemCapability.Multimedia.Camera.Core -| Name | Value | Description | -| ------------------------- | ---- | ------------ | +| Name | Value | Description | +| ------------------------- | ---- | ------------ | | CAMERA_STATUS_APPEAR | 0 | A camera appears. | -| CAMERA_STATUS_DISAPPEAR | 1 | The camera disappears.| -| CAMERA_STATUS_AVAILABLE | 2 | The camera is available. | -| CAMERA_STATUS_UNAVAILABLE | 3 | The camera is unavailable.| +| CAMERA_STATUS_DISAPPEAR | 1 | The camera disappears. | +| CAMERA_STATUS_AVAILABLE | 2 | The camera is available. | +| CAMERA_STATUS_UNAVAILABLE | 3 | The camera is unavailable. | ## Profile @@ -123,64 +94,54 @@ Defines the camera output capability. | videoProfiles | Array<[VideoProfile](#videoprofile)\> | Yes | Supported video recording profiles. | | supportedMetadataObjectTypes | Array<[MetadataObjectType](#metadataobjecttype)\> | Yes | Supported metadata object types.| -## CameraManager - -Implements camera management. Before calling any API in **CameraManager**, you must use **getCameraManager** to obtain a **CameraManager** instance. - -### getSupportedCameras - -getSupportedCameras(callback: AsyncCallback\>): void +## CameraErrorCode -Obtains supported cameras. This API uses an asynchronous callback to return the result. +Enumerates the camera error codes, which are returned when an API call is incorrect or the **on()** API is used to listen for the error status. **System capability**: SystemCapability.Multimedia.Camera.Core -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------------------- | ---- | ------------------------------- | -| callback | AsyncCallback\> | Yes | Callback used to return the array of supported cameras.| +| Name | Value | Description | +| ------------------------- | ---- | ------------ | +| INVALID_ARGUMENT | 7400101 | A parameter is missing or the parameter type is incorrect. | +| OPERATION_NOT_ALLOWED | 7400102 | The operation is not allowed. | +| SESSION_NOT_CONFIG | 7400103 | The session is not configured. | +| SESSION_NOT_RUNNING | 7400104 | The session is not running. | +| SESSION_CONFIG_LOCKED | 7400105 | The session configuration is locked. | +| DEVICE_SETTING_LOCKED | 7400106 | The device setting is locked. | +| CONFILICT_CAMERA | 7400107 | The device is already started. | +| DEVICE_DISABLED | 7400108 | The camera is disabled for security reasons. | +| SERVICE_FATAL_ERROR | 7400201 | An error occurs in the camera service. | -**Example** +## CameraManager -```js -cameraManager.getSupportedCameras((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}`); -}) -``` +Implements camera management. Before calling any API in **CameraManager**, you must use **getCameraManager** to obtain a **CameraManager** instance. ### getSupportedCameras -getSupportedCameras(): Promise\> +getSupportedCameras(): Array -Obtains supported cameras. This API uses a promise to return the result. +Obtains supported cameras. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| ----------------------------------------------- | ------------------------- | -| Promise\> | Promise used to return the array of supported cameras.| - +| Type | Description | +| ----------------------------------------------- | ---------------------------- | +| Array<[CameraDevice](#cameradevice)> | An array of supported cameras. | **Example** ```js -cameraManager.getSupportedCameras().then((cameras) => { - console.log(`Promise returned with an array of supported cameras: ${cameras.length}`); -}) +let cameras = cameraManager.getSupportedCameras(); + ``` ### getSupportedOutputCapability -getSupportedOutputCapability(camera:CameraDevice, callback: AsyncCallback): void +getSupportedOutputCapability(cameraDevice:CameraDevice): CameraOutputCapability -Obtains the output capability supported by a camera. This API uses an asynchronous callback to return the result. +Obtains the output capability supported by a camera. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -189,52 +150,19 @@ Obtains the output capability supported by a camera. This API uses an asynchrono | Name | Type | Mandatory| Description | | ------------ |--------------------------------------------------------------- | -- | -------------------------- | | cameraDevice | [CameraDevice](#cameradevice) | Yes| Target camera, which is obtained through **getSupportedCameras**. | -| callback | AsyncCallback<[CameraOutputCapability](#cameraoutputcapability)\> | Yes| Callback used to return the output capability.| - -**Example** - -```js -cameraManager.getSupportedCameras().then((cameras) => { - let cameraDevice = cameras[0]; - cameraManager.getSupportedOutputCapability(cameraDevice, (err, CameraOutputCapability) => { - if (err) { - console.error(`Failed to get the outputCapability. ${err.message}`); - return; - } - console.log('Callback returned with an array of supported outputCapability'); - }) -}) -``` - -### getSupportedOutputCapability - -getSupportedOutputCapability(camera:CameraDevice): Promise - -Obtains the output capability supported by a camera. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | --------------------------------- | ---- | ---------- | -| cameradevice | [CameraDevice](#cameradevice) | Yes | Target camera, which is obtained through **getSupportedCameras**. | **Return value** -| Type | Description | -| -------------------------------------------------------------- | ----------------------------- | -| Promise<[CameraOutputCapability](#cameraoutputcapability)\> | Promise used to return the output capability.| +| Type | Description | +| ----------------------------------------------- | ---------------------------- | +| [CameraOutputCapability](#cameraoutputcapability) | Camera output capability obtained. | **Example** ```js -cameraManager.getSupportedCameras().then((cameras) => { - let cameraDevice = cameras[0]; - cameraManager.getSupportedOutputCapability(cameraDevice).then((cameraoutputcapability) => { - console.log('Promise returned with an array of supported outputCapability'); - }) -}) +let cameraDevice = cameras[0]; +let cameraOutputCapability = cameraManager.getSupportedOutputCapability(cameraDevice); + ``` ### isCameraMuted @@ -306,9 +234,9 @@ cameraManager.muteCamera(mute); ### createCameraInput -createCameraInput(camera: CameraDevice, callback: AsyncCallback): void +createCameraInput(camera: CameraDevice): CameraInput -Creates a **CameraInput** instance with the specified **CameraDevice** object. This API uses an asynchronous callback to return the result. +Creates a **CameraInput** instance with the specified **CameraDevice** object. This API returns the result synchronously. **Required permissions**: ohos.permission.CAMERA @@ -318,58 +246,32 @@ Creates a **CameraInput** instance with the specified **CameraDevice** object. T | Name | Type | Mandatory| Description | | -------- | ------------------------------------------- | ---- | --------------------------------- | -| cameraDevice | [CameraDevice](#cameradevice) | Yes | Target **CameraDevice** object, which is obtained through **getSupportedCameras**. | -| callback | AsyncCallback<[CameraInput](#camerainput)\> | Yes | Callback used to return the **CameraInput** instance. | - -**Example** - -```js -let cameraDevice = cameras[0]; -cameraManager.createCameraInput(cameraDevice, (err, cameraInput) => { - if (err) { - console.error(`Failed to create the CameraInput instance. ${err.message}`); - return; - } - console.log('Callback returned with the CameraInput instance.'); -}) -``` - -### createCameraInput - -createCameraInput(cameraDevice: CameraDevice): Promise - -Creates a **CameraInput** instance with the specified **CameraDevice** object. This API uses a promise to return the result. - -**Required permissions**: ohos.permission.CAMERA - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------- | ---- | ---------- | -| cameraDevice | [CameraDevice](#cameradevice) | Yes | Target **CameraDevice** object, which is obtained through **getSupportedCameras**.| +| cameraDevice | [CameraDevice](#cameradevice) | Yes | Target **CameraDevice** object, which is obtained through **getSupportedCameras**. | **Return value** -| Type | Description | -| ------------------------------------- | ------------------------------------ | -| Promise<[CameraInput](#camerainput)\> | Promise used to return the **CameraInput** instance.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraInput](#camerainput) | **CameraInput** instance created. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js let cameraDevice = cameras[0]; -cameraManager.createCameraInput(cameraDevice).then((cameraInput) => { - console.log('Promise returned with the CameraInput instance'); -}) +let cameraInput; +try { + cameraInput = cameraManager.createCameraInput(cameraDevice); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### createCameraInput -createCameraInput(position: CameraPosition, type: CameraType, callback: AsyncCallback): void +createCameraInput(position: CameraPosition, type: CameraType): CameraInput -Creates a **CameraInput** instance with the specified camera position and type. This API uses an asynchronous callback to return the result. +Creates a **CameraInput** instance with the specified camera position and type. This API returns the result synchronously. **Required permissions**: ohos.permission.CAMERA @@ -381,45 +283,12 @@ Creates a **CameraInput** instance with the specified camera position and type. | -------- | ------------------------------------------- | ---- | --------------------------------- | | position | [CameraPosition](#cameraposition) | Yes | Camera position, which is obtained through **getSupportedCameras**. This API obtains a **CameraDevice** object, which contains the camera position information. | | type | [CameraType](#cameratype) | Yes | Camera type, which is obtained through **getSupportedCameras**. This API obtains a **CameraDevice** object, which contains the camera type information. | -| callback | AsyncCallback<[CameraInput](#camerainput)\> | Yes | Callback used to return the **CameraInput** instance. | - -**Example** - -```js -let cameraDevice = cameras[0]; -let position = cameraDevice.cameraPosition; -let type = cameraDevice.cameraType; -cameraManager.createCameraInput(position, type, (err, cameraInput) => { - if (err) { - console.error(`Failed to create the CameraInput instance. ${err.message}`); - return; - } - console.log('Callback returned with the CameraInput instance'); -}) -``` - -### createCameraInput - -createCameraInput(position: CameraPosition, type:CameraType ): Promise - -Creates a **CameraInput** instance with the specified camera position and type. This API uses a promise to return the result. - -**Required permissions**: ohos.permission.CAMERA - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | --------------------------------- | ---- | ------------ | -| position | [CameraPosition](#cameraposition) | Yes | Camera position, which is obtained through **getSupportedCameras**. This API obtains a **CameraDevice** object, which contains the camera position information. | -| type | [CameraType](#cameratype) | Yes | Camera type, which is obtained through **getSupportedCameras**. This API obtains a **CameraDevice** object, which contains the camera type information. | **Return value** -| Type | Description | -| ------------------------------------- | ------------------------------------ | -| Promise<[CameraInput](#camerainput)\> | Promise used to return the **CameraInput** instance.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraInput](#camerainput) | **CameraInput** instance created. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** @@ -427,16 +296,20 @@ Creates a **CameraInput** instance with the specified camera position and type. let cameraDevice = cameras[0]; let position = cameraDevice.cameraPosition; let type = cameraDevice.cameraType; -cameraManager.createCameraInput(position, type).then((cameraInput) => { - console.log('Promise returned with the CameraInput instance'); -}) +let cameraInput; +try { + cameraInput = cameraManager.createCameraInput(position, type); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### createPreviewOutput -createPreviewOutput(profile: Profile, surfaceId: string, callback: AsyncCallback): void +createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput -Creates a **PreviewOutput** instance. This API uses an asynchronous callback to return the result. +Creates a **PreviewOutput** instance. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -446,56 +319,31 @@ Creates a **PreviewOutput** instance. This API uses an asynchronous callback to | -------- | ----------------------------------------------- | ---- | ------------------------------- | | profile | [Profile](#profile) | Yes | Supported preview profiles, which are obtained through **getSupportedOutputCapability**.| | surfaceId| string | Yes | Surface ID, which is obtained from [XComponent](../arkui-ts/ts-basic-components-xcomponent.md) or [ImageReceiver](js-apis-image.md#imagereceiver9).| -| callback | AsyncCallback<[PreviewOutput](#previewoutput)\> | Yes | Callback used to return the **PreviewOutput** instance.| - -**Example** - -```js -let profile = cameraoutputcapability.previewProfiles[0]; -cameraManager.createPreviewOutput(profile, surfaceId, (err, previewOutput) => { - if (err) { - console.error(`Failed to gcreate previewOutput. ${err.message}`); - return; - } - console.log('Callback returned with previewOutput created.'); -}) -``` - -### createPreviewOutput - -createPreviewOutput(profile: Profile, surfaceId: string): Promise - -Creates a **PreviewOutput** instance. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ---------------------------------| ---- | ----------------- | -| profile | [Profile](#profile) | Yes | Supported preview profiles, which are obtained through **getSupportedOutputCapability**.| -| surfaceId| string | Yes | Surface ID, which is obtained from [XComponent](../arkui-ts/ts-basic-components-xcomponent.md) or [ImageReceiver](js-apis-image.md#imagereceiver9).| **Return value** -| Type | Description | -| ---------------------------------------- | ---------------------------------------- | -| Promise<[PreviewOutput](#previewoutput)\> | Promise used to return the **PreviewOutput** instance. | +| Type | Description | +| ---------- | ----------------------------- | +| [PreviewOutput](#previewoutput) | **PreviewOutput** instance created. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -let profile = cameraoutputcapability.previewProfiles[0]; -cameraManager.createPreviewOutput(profile, surfaceId).then((previewOutput) => { - console.log('Promise returned with previewOutput created.'); -}) +let profile = cameraOutputCapability.previewProfiles[0]; +let previewOutput; +try { + previewOutput = cameraManager.createPreviewOutput(profile, surfaceId); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### createPhotoOutput -createPhotoOutput(profile: Profile, surfaceId: string, callback: AsyncCallback): void +createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput -Creates a **PhotoOutput** instance. This API uses an asynchronous callback to return the result. +Creates a **PhotoOutput** instance. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -505,56 +353,31 @@ Creates a **PhotoOutput** instance. This API uses an asynchronous callback to re | -------- | ------------------------------------------- | ---- | ----------------------------------- | | profile | [Profile](#profile) | Yes | Supported shooting profiles, which are obtained through **getSupportedOutputCapability**.| | surfaceId| string | Yes | Surface ID, which is obtained from [ImageReceiver](js-apis-image.md#imagereceiver9).| -| callback | AsyncCallback<[PhotoOutput](#photooutput)\> | Yes | Callback used to return the **PhotoOutput** instance. | - -**Example** - -```js -let profile = cameraoutputcapability.photoProfiles[0]; -cameraManager.createPhotoOutput(profile, surfaceId, (err, photoOutput) => { - if (err) { - console.error(`Failed to create photoOutput. ${err.message}`); - return; - } - console.log('Callback returned with photoOutput created.'); -}) -``` - -### createPhotoOutput - -createPhotoOutput(profile: Profile, surfaceId: string): Promise - -Creates a **PhotoOutput** instance. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ---------------------------------| ---- | ----------- | -| profile | [Profile](#profile) | Yes | Supported shooting profiles, which are obtained through **getSupportedOutputCapability**.| -| surfaceId| string | Yes | Surface ID, which is obtained from [ImageReceiver](js-apis-image.md#imagereceiver9).| **Return value** -| Type | Description | -| ------------------------------------- | -------------------------------------- | -| Promise<[PhotoOutput](#photooutput)\> | Promise used to return the **PhotoOutput** instance. | +| Type | Description | +| ---------- | ----------------------------- | +| [PhotoOutput](#photooutput) | **PhotoOutput** instance created. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -let profile = cameraoutputcapability.photoProfiles[0]; -cameraManager.createPhotoOutput(profile, surfaceId).then((photoOutput) => { - console.log('Promise returned with photoOutput created.'); -}) +let profile = cameraOutputCapability.photoProfiles[0]; +let photoOutput; +try { + photoOutput = cameraManager.createPhotoOutput(profile, surfaceId); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### createVideoOutput -createVideoOutput(profile: VideoProfile, surfaceId: string, callback: AsyncCallback): void +createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput -Creates a **VideoOutput** instance. This API uses an asynchronous callback to return the result. +Creates a **VideoOutput** instance. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -564,56 +387,31 @@ Creates a **VideoOutput** instance. This API uses an asynchronous callback to re | -------- | ------------------------------------------- | ---- | ------------------------------ | | profile | [VideoProfile](#videoprofile) | Yes | Supported video recording profiles, which are obtained through **getSupportedOutputCapability**.| | surfaceId| string | Yes | Surface ID, which is obtained from [VideoRecorder](js-apis-media.md#videorecorder9).| -| callback | AsyncCallback<[VideoOutput](#videooutput)\> | Yes | Callback used to return the **VideoOutput** instance.| - -**Example** - -```js -let profile = cameraoutputcapability.videoProfiles[0]; -cameraManager.createVideoOutput(profile, surfaceId, (err, videoOutput) => { - if (err) { - console.error(`Failed to create videoOutput. ${err.message}`); - return; - } - console.log('Callback returned with an array of supported outputCapability' ); -}) -``` - -### createVideoOutput - -createVideoOutput(profile: VideoProfile, surfaceId: string): Promise - -Creates a **VideoOutput** instance. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ---------------------------------| ---- | ---------- | -| profile | [VideoProfile](#videoprofile) | Yes | Supported video recording profiles, which are obtained through **getSupportedOutputCapability**.| -| surfaceId| string | Yes | Surface ID, which is obtained from [VideoRecorder](js-apis-media.md#videorecorder9).| **Return value** -| Type | Description | -| ------------------------------------- | -------------------------------------- | -| Promise<[VideoOutput](#videooutput)\> | Promise used to return the **VideoOutput** instance. | +| Type | Description | +| ---------- | ----------------------------- | +| [VideoOutput](#videooutput) | **VideoOutput** instance created. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -let profile = cameraoutputcapability.videoProfiles[0]; -cameraManager.createVideoOutput(profile, surfaceId).then((videoOutput) => { - console.log('Promise returned with videoOutput created.'); -}) +let profile = cameraOutputCapability.videoProfiles[0]; +let videoOutput; +try { + videoOutput = cameraManager.createVideoOutput(profile, surfaceId); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### createMetadataOutput -createMetadataOutput(metadataObjectTypes:Array, callback: AsyncCallback): void +createMetadataOutput(metadataObjectTypes:Array): MetadataOutput -Creates a **MetadataOutput** instance. This API uses an asynchronous callback to return the result. +Creates a **MetadataOutput** instance. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -622,96 +420,50 @@ Creates a **MetadataOutput** instance. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------------------- | -------------------------------------------------- | --- | ---------------------------- | | metadataObjectTypes | Array<[MetadataObjectType](#metadataobjecttype)\> | Yes | Metadata object types, which are obtained through **getSupportedOutputCapability**.| -| callback | AsyncCallback<[MetadataOutput](#metadataoutput)\> | Yes | Callback used to return the **MetadataOutput** instance. | - -**Example** - -```js -let metadataObjectTypes = cameraoutputcapability.supportedMetadataObjectTypes; -cameraManager.createMetadataOutput(metadataObjectTypes, (err, metadataOutput) => { - if (err) { - console.error(`Failed to create metadataOutput. ${err.message}`); - return; - } - console.log('Callback returned with metadataOutput created.'); -}) -``` - -### createMetadataOutput - -createMetadataOutput(metadataObjectTypes:Array): Promise - -Creates a **MetadataOutput** instance. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------------------- | -------------------------------------------------- | --- | -------------------- | -| metadataObjectTypes | Array<[MetadataObjectType](#metadataobjecttype)\> | Yes | Metadata object types, which are obtained through **getSupportedOutputCapability**. | **Return value** -| Type | Description | -| ------------------------------------------ | ----------------------------------------- | -| Promise<[MetadataOutput](#metadataoutput)\> | Promise used to return the **MetadataOutput** instance.| - -**Example** - -```js -let metadataObjectTypes = cameraoutputcapability.supportedMetadataObjectTypes; -cameraManager.createMetadataOutput(metadataObjectTypes).then((metadataOutput) => { - console.log('Promise returned with metadataOutput created.'); -}) -``` - -### createCaptureSession - -createCaptureSession(callback: AsyncCallback): void - -Creates a **CaptureSession** instance. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------------------- | ----------------------------------------- | ----------- | ---------------------------- | -| callback | AsyncCallback<[CaptureSession](#capturesession)\> | Yes | Callback used to return the **CaptureSession** instance.| +| Type | Description | +| ---------- | ----------------------------- | +| [MetadataOutput](#metadataoutput) | **MetadataOutput** instance created. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -cameraManager.createCaptureSession((err, captureSession) => { - if (err) { - console.error(`Failed to create captureSession. ${err.message}`); - return; - } - console.log('Callback returned with captureSession created.'); -}) +let metadataObjectTypes = cameraOutputCapability.supportedMetadataObjectTypes; +let metadataOutput; +try { + metadataOutput = cameraManager.createMetadataOutput(metadataObjectTypes); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### createCaptureSession -createCaptureSession(): Promise +createCaptureSession(): CaptureSession -Creates a **CaptureSession** instance. This API uses a promise to return the result. +Creates a **CaptureSession** instance. This API returns the result synchronously. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| ------------------------------------------- | ---------------------------------------- | -| Promise<[CaptureSession](#capturesession)\> | Promise used to return the **CaptureSession** instance.| +| Type | Description | +| ---------- | ----------------------------- | +| [CaptureSession](#capturesession) | **CaptureSession** instance created. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -cameraManager.createCaptureSession().then((captureSession) => { - console.log('Promise returned with captureSession created.'); -}) +let captureSession; +try { + captureSession = cameraManager.createCaptureSession(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### on('cameraStatus') @@ -726,17 +478,13 @@ Listens for camera status changes. This API uses an asynchronous callback to ret | Name | Type | Mandatory| Description | | -------- | ----------------------------------------------------- | ---- | --------- | -| type | string | Yes | Event type. The value is fixed at **'cameraStatus'**, indicating the camera status change event.| +| type | string | Yes | Event type. The value is fixed at **'cameraStatus'**. The callback function returns the camera information, including the device and device status (available or unavailable). The event can be listened for only when a **CameraManager** instance is obtained.| | callback | AsyncCallback<[CameraStatusInfo](#camerastatusinfo)\> | Yes | Callback used to return the camera status change. | **Example** ```js -cameraManager.on('cameraStatus', (err, cameraStatusInfo) => { - if (err) { - console.error(`Failed to get cameraStatus callback. ${err.message}`); - return; - } +cameraManager.on('cameraStatus', (cameraStatusInfo) => { console.log(`camera : ${cameraStatusInfo.camera.cameraId}`); console.log(`status: ${cameraStatusInfo.status}`); }) @@ -756,17 +504,14 @@ This is a system API. | Name | Type | Mandatory| Description | | -------- | --------------- | ---- | --------- | -| type | string | Yes | Event type. The value is fixed at **'cameraMute'**, indicating the camera mute status change event.| +| type | string | Yes | Event type. The value is fixed at **'cameraMute'**. The callback function returns the mute status changes. The event can be listened for only when a **CameraManager** instance is obtained.| | callback | AsyncCallback\ | Yes | Callback used to return the camera mute status. | **Example** ```js -cameraManager.on('cameraMute', (err, curMuetd) => { - if (err) { - console.error(`Failed to get cameraMute callback. ${err.message}`); - return; - } +cameraManager.on('cameraMute', (curMuetd) => { + let isMuted = curMuetd; }) ``` @@ -801,7 +546,7 @@ Enumerates the camera types. | Name | Value | Description | | ----------------------- | ---- | -------------- | -| CAMERA_TYPE_UNSPECIFIED | 0 | Unspecified camera type. | +| CAMERA_TYPE_DEFAULT | 0 | Unspecified camera type. | | CAMERA_TYPE_WIDE_ANGLE | 1 | Wide camera. | | CAMERA_TYPE_ULTRA_WIDE | 2 | Ultra wide camera. | | CAMERA_TYPE_TELEPHOTO | 3 | Telephoto camera. | @@ -882,14 +627,14 @@ Opens this camera. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js cameraInput.open((err) => { if (err) { - console.error(`Failed to open the camera. ${err.message}`); + console.error(`Failed to open the camera. ${err.code}`); return; } console.log('Callback returned with camera opened.'); @@ -908,14 +653,16 @@ Opens this camera. This API uses a promise to return the result. | Type | Description | | -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js cameraInput.open().then(() => { console.log('Promise returned with camera opened.'); -}) +}).catch((err) => { + console.error(`Failed to open the camera. ${err.code}`); +}); ``` ### close @@ -930,14 +677,14 @@ Closes this camera. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | -------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js cameraInput.close((err) => { if (err) { - console.error(`Failed to close the cameras. ${err.message}`); + console.error(`Failed to close the cameras. ${err.code}`); return; } console.log('Callback returned with camera closed.'); @@ -963,111 +710,39 @@ Closes this camera. This API uses a promise to return the result. ```js cameraInput.close().then(() => { console.log('Promise returned with camera closed.'); -}) +}).catch((err) => { + console.error(`Failed to close the cameras. ${err.code}`); +}); ``` -### release +### on('error') -release\(callback: AsyncCallback\): void +on(type: 'error', cameraDevice:CameraDevice, callback: ErrorCallback): void -Releases this camera. This API uses an asynchronous callback to return the result. +Listens for **CameraInput** errors. This API uses a callback to return the result. **System capability**: SystemCapability.Multimedia.Camera.Core **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | -------------------------------- | --- | ------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'error'**. The callback function returns an error code, for example, an error code indicating that the device is unavailable or a conflict occurs. The event can be listened for only when a **CameraInput** instance is obtained.| +| cameraDevice | [CameraDevice](#cameradevice) | Yes | **CameraDevice** object.| +| callback | ErrorCallback | Yes | Callback used to return an error code defined in [CameraErrorCode](#cameraerrorcode). | **Example** ```js -cameraInput.release((err) => { - if (err) { - console.error(`Failed to release the CameraInput instance ${err.message}`); - return; - } - console.log('Callback invoked to indicate that the CameraInput instance is released successfully.'); -}); +let cameraDevice = cameras[0]; +cameraInput.on('error', cameraDevice, (error) => { + console.log(`Camera input error code: ${error.code}`); +}) ``` -### release - -release(): Promise +## FlashMode -Releases this camera. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Return value** - -| Type | Description | -| -------------- | ----------------------- | -| Promise| Promise used to return the result.| - -**Example** - -```js -cameraInput.release().then(() => { - console.log('Promise returned to indicate that the CameraInput instance is released successfully.'); -}) -``` - -### on('error') - -on(type: 'error', cameraDevice:CameraDevice, callback: ErrorCallback): void - -Listens for **CameraInput** errors. This API uses a callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | -------------------------------- | --- | ------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'error'**, indicating the camera input error event.| -| cameraDevice | [CameraDevice](#cameradevice) | Yes | **CameraDevice** object.| -| callback | ErrorCallback<[CameraInputError](#camerainputerror)\> | Yes | Callback used to return the result. | - -**Example** - -```js -let cameraDevice = cameras[0]; -cameraInput.on('error', cameraDevice, (cameraInputError) => { - console.log(`Camera input error code: ${cameraInputError.code}`); -}) -``` - -## CameraInputErrorCode - -Enumerates the error codes used for camera input. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name | Value | Description | -| ------------------------- | ---- | ---------- | -| ERROR_UNKNOWN | -1 | Unknown error.| -| ERROR_NO_PERMISSION | 0 | You do not have the required permission.| -| ERROR_DEVICE_PREEMPTED | 1 | The camera is preempted.| -| ERROR_DEVICE_DISCONNECTED | 2 | The camera is disconnected.| -| ERROR_DEVICE_IN_USE | 3 | The camera is in use.| -| ERROR_DRIVER_ERROR | 4 | Driver error. | - -## CameraInputError - -Defines an error object used for **[CameraInput](#camerainput)**. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name| Type | Mandatory | Description | -| ---- | --------------------------------------------- | ------------ |--------------------- | -| code | [CameraInputErrorCode](#camerainputerrorcode) | Yes |**CameraInput** error code.| - - -## FlashMode - -Enumerates the flash modes. +Enumerates the flash modes. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1135,56 +810,32 @@ Implements a shooting session, which saves all **[CameraInput](#camerainput)** a ### beginConfig -beginConfig\(callback: AsyncCallback\): void - -Starts configuration for this **CaptureSession** instance. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| - -**Example** - -```js -captureSession.beginConfig((err) => { - if (err) { - console.error(`Failed to start the configuration. ${err.message}`); - return; - } - console.log('Callback invoked to indicate the begin config success.'); -}); -``` - -### beginConfig - -beginConfig\(\): Promise +beginConfig(): void -Starts configuration for this **CaptureSession** instance. This API uses a promise to return the result. +Starts configuration for the session. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| -------------- | ------------------------ | -| Promise| Promise used to return the result.| - +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.beginConfig().then(() => { - console.log('Promise returned to indicate the begin config success.'); -}) +try { + captureSession.beginConfig(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### commitConfig -commitConfig\(callback: AsyncCallback\): void +commitConfig(callback: AsyncCallback): void Commits the configuration for this **CaptureSession** instance. This API uses an asynchronous callback to return the result. @@ -1194,14 +845,14 @@ Commits the configuration for this **CaptureSession** instance. This API uses an | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | -------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js captureSession.commitConfig((err) => { if (err) { - console.error(`Failed to commit the configuration. ${err.message}`); + console.log('Failed to commitConfig '+ err.code); return; } console.log('Callback invoked to indicate the commit config success.'); @@ -1210,7 +861,7 @@ captureSession.commitConfig((err) => { ### commitConfig -commitConfig\(\): Promise +commitConfig(): Promise Commits the configuration for this **CaptureSession** instance. This API uses a promise to return the result. @@ -1220,48 +871,24 @@ Commits the configuration for this **CaptureSession** instance. This API uses a | Type | Description | | -------------- | ------------------------ | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js captureSession.commitConfig().then(() => { console.log('Promise returned to indicate the commit config success.'); -}) -``` - -### addInput - -addInput\(cameraInput: CameraInput, callback: AsyncCallback\): void - -Adds a **[CameraInput](#camerainput)** instance to this **CaptureSession**. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ----------- | --------------------------- | ---- | ------------------------ | -| cameraInput | [CameraInput](#camerainput) | Yes | **CameraInput** instance to add.| -| callback | AsyncCallback | Yes | Callback used to return the result. | - -**Example** - -```js -captureSession.addInput(cameraInput, (err) => { - if (err) { - console.error(`Failed to add the CameraInput instance. ${err.message}`); - return; - } - console.log('Callback invoked to indicate that the CameraInput instance is added.'); +}).catch((err) => { + // If the operation fails, error.code is returned and processed. + console.log('Failed to commitConfig '+ err.code); }); ``` ### addInput -addInput\(cameraInput: CameraInput\): Promise +addInput(cameraInput: CameraInput): void -Adds a **[CameraInput](#camerainput)** instance to this **CaptureSession**. This API uses a promise to return the result. +Adds a [CameraInput](#camerainput) instance to the session. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1273,50 +900,26 @@ Adds a **[CameraInput](#camerainput)** instance to this **CaptureSession**. This **Return value** -| Type | Description | -| -------------- | ------------------------ | -| Promise| Promise used to return the result.| - -**Example** - -```js -captureSession.addInput(cameraInput).then(() => { - console.log('Promise used to indicate that the CameraInput instance is added.'); -}) -``` - -### removeInput - -removeInput\(cameraInput: CameraInput, callback: AsyncCallback\): void - -Removes a **[CameraInput](#camerainput)** instance from this **CaptureSession**. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ----------- | --------------------------- | ---- | ------------------------ | -| cameraInput | [CameraInput](#camerainput) | Yes | **CameraInput** instance to remove.| -| callback | AsyncCallback | Yes | Callback used to return the result. | +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.removeInput(cameraInput, (err) => { - if (err) { - console.error(`Failed to remove the CameraInput instance. ${err.message}`); - return; - } - console.log('Callback invoked to indicate that the cameraInput instance is removed.'); -}); +try { + captureSession.addInput(cameraInput); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### removeInput -removeInput\(cameraInput: CameraInput\): Promise +removeInput(cameraInput: CameraInput): void -Removes a **[CameraInput](#camerainput)** instance from this **CaptureSession**. This API uses a promise to return the result. +Removes a [CameraInput](#camerainput) instance from the session. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1328,23 +931,26 @@ Removes a **[CameraInput](#camerainput)** instance from this **CaptureSession**. **Return value** -| Type | Description | -| -------------- | ------------------------- | -| Promise\ | Promise used to return the result.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.removeInput(cameraInput).then(() => { - console.log('Promise returned to indicate that the cameraInput instance is removed.'); -}) +try { + captureSession.removeInput(cameraInput); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### addOutput -addOutput\(previewOutput: CameraOutput, callback: AsyncCallback\): void +addOutput(previewOutput: CameraOutput): void -Adds a [CameraOutput](#cameraoutput) instance to this **CaptureSession**. This API uses an asynchronous callback to return the result. +Adds a [CameraOutput](#cameraoutput) instance to the session. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1353,53 +959,29 @@ Adds a [CameraOutput](#cameraoutput) instance to this **CaptureSession**. This A | Name | Type | Mandatory| Description | | ------------- | ------------------------------- | ---- | ------------------------ | | previewOutput | [PreviewOutput](#previewoutput) | Yes | **PreviewOutput** instance to add.| -| callback | AsyncCallback | Yes | Callback used to return the result. | - -**Example** - -```js -captureSession.addOutput(previewOutput, (err) => { - if (err) { - console.error(`Failed to add output. ${err.message}`); - return; - } - console.log('Callback returned with output added.'); -}) -``` - -### addOutput - -addOutput\(previewOutput: CameraOutput\): Promise - -Adds a [CameraOutput](#cameraoutput) instance to this **CaptureSession**. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ------------- | ------------------------------- | ---- | ------------------------- | -| previewOutput | [PreviewOutput](#previewoutput) | Yes | **PreviewOutput** instance to add.| **Return value** -| Type | Description | -| -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.addOutput(previewOutput).then(() => { - console.log('Promise returned with cameraOutput added.'); -}) +try { + captureSession.addOutput(previewOutput); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### removeOutput -removeOutput\(previewOutput: CameraOutput, callback: AsyncCallback\): void +removeOutput(previewOutput: CameraOutput): void -Removes a [CameraOutput](#cameraoutput) instance from this **CaptureSession**. This API uses an asynchronous callback to return the result. +Removes a [CameraOutput](#cameraoutput) instance from the session. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1408,48 +990,22 @@ Removes a [CameraOutput](#cameraoutput) instance from this **CaptureSession**. T | Name | Type | Mandatory| Description | | ------------- | ------------------------------- | ---- | ------------------------ | | previewOutput | [PreviewOutput](#previewoutput) | Yes | **PreviewOutput** instance to remove.| -| callback | AsyncCallback | Yes | Callback used to return the result. | - -**Example** - -```js -captureSession.removeOutput(previewOutput, (err) => { - if (err) { - console.error(`Failed to remove the CameraOutput instance. ${err.message}`); - return; - } - console.log('Callback invoked to indicate that the CameraOutput instance is removed.'); -}); -``` - -### removeOutput - -removeOutput(previewOutput: CameraOutput): Promise - -Removes a [CameraOutput](#cameraoutput) instance from this **CaptureSession**. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ------------- | ------------------------------- | ---- | ------------------------- | -| previewOutput | [PreviewOutput](#previewoutput) | Yes | **PreviewOutput** instance to remove.| - **Return value** -| Type | Description | -| -------------- | ------------------------ | -| Promise| Promise used to return the result.| - +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.removeOutput(previewOutput).then(() => { - console.log('Promise returned to indicate that the CameraOutput instance is removed.'); -}) +try { + captureSession.removeOutput(previewOutput); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### start @@ -1464,14 +1020,14 @@ Starts this **CaptureSession**. This API uses an asynchronous callback to return | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | -------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js captureSession.start((err) => { if (err) { - console.error(`Failed to start the session ${err.message}`); + console.error(`Failed to start the session ${err.code}`); return; } console.log('Callback invoked to indicate the session start success.'); @@ -1497,7 +1053,9 @@ Starts this **CaptureSession**. This API uses a promise to return the result. ```js captureSession.start().then(() => { console.log('Promise returned to indicate the session start success.'); -}) +}).catch((err) => { + console.error(`Failed to start the session ${err.code}`); +}); ``` ### stop @@ -1512,14 +1070,14 @@ Stops this **CaptureSession**. This API uses an asynchronous callback to return | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js captureSession.stop((err) => { if (err) { - console.error(`Failed to stop the session ${err.message}`); + console.error(`Failed to stop the session ${err.code}`); return; } console.log('Callback invoked to indicate the session stop success.'); @@ -1538,14 +1096,16 @@ Stops this **CaptureSession**. This API uses a promise to return the result. | Type | Description | | -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js captureSession.stop().then(() => { console.log('Promise returned to indicate the session stop success.'); -}) +}).catch((err) => { + console.error(`Failed to stop the session ${err.code}`); +}); ``` ### release @@ -1560,14 +1120,14 @@ Releases this **CaptureSession**. This API uses an asynchronous callback to retu | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | -------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js captureSession.release((err) => { if (err) { - console.error(`Failed to release the CaptureSession instance ${err.message}`); + console.error(`Failed to release the CaptureSession instance ${err.code}`); return; } console.log('Callback invoked to indicate that the CaptureSession instance is released successfully.'); @@ -1586,69 +1146,48 @@ Releases this **CaptureSession**. This API uses a promise to return the result. | Type | Description | | -------------- | ------------------------ | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js captureSession.release().then(() => { console.log('Promise returned to indicate that the CaptureSession instance is released successfully.'); -}) +}).catch((err) => { + console.error(`Failed to release the CaptureSession instance ${err.code}`); +}); ``` ### hasFlash -hasFlash(callback: AsyncCallback): void +hasFlash(): boolean Checks whether the device has flash. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Camera.Core -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------- | ---- | -------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the flash support status. The value **true** means that the device has flash.| - -**Example** - -```js -captureSession.hasFlash((err, status) => { - if (err) { - console.error(`Failed to check whether the device has flash light. ${err.message}`); - return; - } - console.log(`Callback returned with flash light support status: ${status}`); -}) -``` - -### hasFlash - -hasFlash(): Promise - -Checks whether the device has flash. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - **Return value** -| Type | Description | -| ----------------- | ----------------------------------------------- | -| Promise | Promise used to return the flash support status. The value **true** means that the device has flash.| +| Type | Description | +| ---------- | ----------------------------- | +| boolean | Returns **true** if the device has flash; returns **false** otherwise. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.hasFlash().then((status) => { - console.log(`Promise returned with the flash light support status: ${status}`); -}) +try { + let status = captureSession.hasFlash(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### isFlashModeSupported -isFlashModeSupported(flashMode: FlashMode, callback: AsyncCallback): void +isFlashModeSupported(flashMode: FlashMode): boolean -Checks whether a specified flash mode is supported. This API uses an asynchronous callback to return the result. +Checks whether a flash mode is supported. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1657,53 +1196,29 @@ Checks whether a specified flash mode is supported. This API uses an asynchronou | Name | Type | Mandatory| Description | | --------- | ----------------------- | ---- | --------------------------------- | | flashMode | [FlashMode](#flashmode) | Yes | Flash mode. | -| callback | AsyncCallback | Yes | Callback used to return the flash mode support status. The value **true** means that the flash mode is supported, and **false** means the opposite.| - -**Example** - -```js -captureSession.isFlashModeSupported(camera.FlashMode.FLASH_MODE_AUTO, (err, status) => { - if (err) { - console.error(`Failed to check whether the flash mode is supported. ${err.message}`); - return; - } - console.log(`Callback returned with the flash mode support status: ${status}`); -}) -``` - -### isFlashModeSupported - -isFlashModeSupported(flashMode: FlashMode): Promise - -Checks whether a specified flash mode is supported. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| --------- | ----------------------- | ---- | ------------- | -| flashMode | [FlashMode](#flashmode) | Yes | Flash mode.| **Return value** -| Type | Description | -| ----------------- | ---------------------------------------------------- | -| Promise | Promise used to return the flash mode support status. The value **true** means that the flash mode is supported, and **false** means the opposite.| +| Type | Description | +| ---------- | ----------------------------- | +| boolean | Returns **true** if the flash mode is supported; returns **false** otherwise. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.isFlashModeSupported(camera.FlashMode.FLASH_MODE_AUTO).then((status) => { - console.log(`Promise returned with flash mode support status.${status}`); -}) +try { + let status = captureSession.isFlashModeSupported(camera.FlashMode.FLASH_MODE_AUTO); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setFlashMode -setFlashMode(flashMode: FlashMode, callback: AsyncCallback): void +setFlashMode(flashMode: FlashMode): void -Sets the flash mode. This API uses an asynchronous callback to return the result. +Sets a flash mode for the device. Before the setting, do the following checks: @@ -1716,134 +1231,55 @@ Before the setting, do the following checks: | Name | Type | Mandatory| Description | | --------- | ----------------------- | ---- | --------------------- | -| flashMode | [FlashMode](#flashmode) | Yes | Flash mode. | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| flashMode | [FlashMode](#flashmode) | Yes | Flash mode. | + +**Return value** + +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.setFlashMode(camera.FlashMode.FLASH_MODE_AUTO, (err) => { - if (err) { - console.error(`Failed to set the flash mode ${err.message}`); - return; - } - console.log('Callback returned with the successful execution of setFlashMode.'); -}) +try { + captureSession.setFlashMode(camera.FlashMode.FLASH_MODE_AUTO); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` -### setFlashMode +### getFlashMode -setFlashMode(flashMode: FlashMode): Promise +getFlashMode(): FlashMode -Sets a flash mode. This API uses a promise to return the result. - -Before the setting, do the following checks: - -1. Use **[hasFlash](#hasflash)** to check whether the device has flash. -2. Use **[isFlashModeSupported](#isflashmodesupported)** to check whether the device supports the flash mode. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| --------- | ----------------------- | ---- | ------------- | -| flashMode | [FlashMode](#flashmode) | Yes | Flash mode.| - -**Return value** - -| Type | Description | -| -------------- | ------------------------ | -| Promise| Promise used to return the result.| - -**Example** - -```js -captureSession.setFlashMode(camera.FlashMode.FLASH_MODE_AUTO).then(() => { - console.log('Promise returned with the successful execution of setFlashMode.'); -}) -``` - -### getFlashMode - -getFlashMode(callback: AsyncCallback): void - -Obtains the flash mode in use. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | --------------------------------------- | ---- | --------------------------------- | -| callback | AsyncCallback<[FlashMode](#flashmode)\> | Yes | Callback used to return the flash mode.| - -**Example** - -```js -captureSession.getFlashMode((err, flashMode) => { - if (err) { - console.error(`Failed to get the flash mode ${err.message}`); - return; - } - console.log(`Callback returned with current flash mode: ${flashMode}`); -}) -``` - -### getFlashMode - -getFlashMode(): Promise - -Obtains the flash mode in use. This API uses a promise to return the result. +Obtains the flash mode in use. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| --------------------------------- | --------------------------------- | -| Promise<[FlashMode](#flashmode)\> | Promise used to return the flash mode.| - -**Example** - -```js -captureSession.getFlashMode().then((flashMode) => { - console.log(`Promise returned with current flash mode : ${flashMode}`); -}) -``` - -### isExposureModeSupported - -isExposureModeSupported(aeMode: ExposureMode, callback: AsyncCallback): void; - -Checks whether a specified exposure mode is supported. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | -------------------------------| ---- | ----------------------------- | -| aeMode | [ExposureMode](#exposuremode) | Yes | Exposure mode. | -| callback | AsyncCallback | Yes | Callback used to return the exposure mode support status. The value **true** means that the exposure mode is supported, and **false** means the opposite.| +| Type | Description | +| ---------- | ----------------------------- | +| [FlashMode](#flashmode) | Flash mode obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED,(err) => { - if (err) { - console.log(`Failed to check exposure mode supported ${err.message}`); - return ; - } - console.log('Callback returned with the successful execution of isExposureModeSupported'); -}) +try { + let flashMode = captureSession.getFlashMode(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### isExposureModeSupported -isExposureModeSupported(aeMode: ExposureMode): Promise +isExposureModeSupported(aeMode: ExposureMode): boolean; -Checks whether a specified exposure mode is supported. This API uses a promise to return the result. +Checks whether an exposure mode is supported. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1855,71 +1291,51 @@ Checks whether a specified exposure mode is supported. This API uses a promise t **Return value** -| Name | Description | -| ----------------- |--------------------------------- | -| Promise | Promise used to return the exposure mode support status. The value **true** means that the exposure mode is supported, and **false** means the opposite.| - -**Example** - -```js -captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED).then((isSupported) => { - console.log(`Promise returned with exposure mode supported : ${isSupported}`); -}) -``` - -### getExposureMode - -getExposureMode(callback: AsyncCallback): void - -Obtains the exposure mode in use. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | -------------------------------| ---- | ---------------------------------------- | -| callback | AsyncCallback<[ExposureMode](#exposuremode)\> | Yes | Callback used to return the exposure mode.| +| Type | Description | +| ---------- | ----------------------------- | +| boolean | Returns **true** if the exposure mode is supported; returns **false** otherwise. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getExposureMode((err, exposureMode) => { - if (err) { - console.log(`Failed to get the exposure mode ${err.message}`); - return ; - } - console.log(`Callback returned with current exposure mode: ${exposureMode}`); -}) +try { + let isSupported = captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getExposureMode -getExposureMode(): Promise +getExposureMode(): ExposureMode -Obtains the exposure mode in use. This API uses a promise to return the result. +Obtains the exposure mode in use. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Name | Description | -| --------------------------------------- |------------------------------- | -| Promise<[ExposureMode](#exposuremode)\> | Promise used to return the exposure mode.| +| Type | Description | +| ---------- | ----------------------------- | +| [ExposureMode](#exposuremode) | Exposure mode obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getExposureMode().then((exposureMode) => { - console.log(`Promise returned with current exposure mode : ${exposureMode}`); -}) +try { + let exposureMode = captureSession.getExposureMode(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setExposureMode -setExposureMode(aeMode: ExposureMode, callback: AsyncCallback): void +setExposureMode(aeMode: ExposureMode): void -Sets an exposure mode. This API uses an asynchronous callback to return the result. +Sets an exposure mode for the device. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -1928,124 +1344,54 @@ Sets an exposure mode. This API uses an asynchronous callback to return the resu | Name | Type | Mandatory| Description | | -------- | -------------------------------| ---- | ----------------------- | | aeMode | [ExposureMode](#exposuremode) | Yes | Exposure mode. | -| callback | AsyncCallback | Yes | Callback used to return the result.| - -**Example** - -```js -captureSession.setExposureMode(camera.ExposureMode.EXPOSURE_MODE_LOCKED,(err) => { - if (err) { - console.log(`Failed to set the exposure mode ${err.message}`); - return ; - } - console.log('Callback returned with the successful execution of setExposureMode'); -}) -``` - -### setExposureMode - -setExposureMode(aeMode: ExposureMode): Promise - -Sets an exposure mode. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Name | Description | -| ----------------- |---------------------------- | -| Promise | Promise used to return the result.| - -**Example** - -```js -captureSession.setExposureMode(camera.ExposureMode.EXPOSURE_MODE_LOCKED).then(() => { - console.log('Promise returned with the successful execution of setExposureMode.'); -}) -``` - -### getMeteringPoint - -getMeteringPoint(callback: AsyncCallback): void - -Obtains the center of the metering area. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | -------------------------------| ---- | ------------------------ | -| callback | AsyncCallback<[Point](#point)\>| Yes | Callback used to return the center of the metering area.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getMeteringPoint((err, exposurePoint) => { - if (err) { - console.log(`Failed to get the current exposure point ${err.message}`); - return ; - } - console.log(`Callback returned with current exposure point: ${exposurePoint}`); -}) +try { + captureSession.setExposureMode(camera.ExposureMode.EXPOSURE_MODE_LOCKED); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getMeteringPoint -getMeteringPoint(): Promise +getMeteringPoint(): Point -Obtains the center of the metering area. This API uses a promise to return the result. +Obtains the metering point of the device. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Name | Description | -| ------------------------- |----------------------------- | -| Promise<[Point](#point)\> | Promise used to return the center of the metering area.| - -**Example** - -```js -captureSession.getMeteringPoint().then((exposurePoint) => { - console.log(`Promise returned with current exposure point : ${exposurePoint}`); -}) -``` - -### setMeteringPoint - -setMeteringPoint(point: Point, callback: AsyncCallback): void - -Sets the center of the metering area. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ------------- | -------------------------------| ---- | ------------------- | -| exposurePoint | [Point](#point) | Yes | Exposure point. | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| Type | Description | +| ---------- | ----------------------------- | +| [Point](#point) | Metering point obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -const Point1 = {x: 1, y: 1}; - -captureSession.setMeteringPoint(Point1,(err) => { - if (err) { - console.log(`Failed to set the exposure point ${err.message}`); - return ; - } - console.log('Callback returned with the successful execution of setMeteringPoint'); -}) +try { + let exposurePoint = captureSession.getMeteringPoint(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setMeteringPoint -setMeteringPoint(point: Point): Promise +setMeteringPoint(point: Point): void -Sets the center of the metering area. This API uses a promise to return the result. +Sets the metering point for the device. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -2057,73 +1403,52 @@ Sets the center of the metering area. This API uses a promise to return the resu **Return value** -| Name | Description | -| ----------------- |------------------------ | -| Promise | Promise used to return the center of the metering area.| - -**Example** - -```js -const Point2 = {x: 2, y: 2}; - -captureSession.setMeteringPoint(Point2).then(() => { - console.log('Promise returned with the successful execution of setMeteringPoint'); -}) -``` - -### getExposureBiasRange - -getExposureBiasRange(callback: AsyncCallback\>): void - -Obtains the exposure compensation values. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | -------------------------------| ---- | ----------------------------- | -| callback | AsyncCallback\> | Yes | Callback used to return the array of compensation values.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getExposureBiasRange((err, biasRangeArray) => { - if (err) { - console.log(`Failed to get the array of compenstation range ${err.message}`); - return ; - } - console.log('Callback returned with the array of compenstation range: ' + JSON.stringify(biasRangeArray)); -}) +const exposurePoint = {x: 1, y: 1}; +try { + captureSession.setMeteringPoint(exposurePoint); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getExposureBiasRange -getExposureBiasRange(): Promise\> +getExposureBiasRange(): Array -Obtains the exposure compensation values. This API uses a promise to return the result. +Obtains the exposure compensation values of the device. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Name | Description | -| ----------------- |-------------------------------------- | -| Promise\> | Promise used to return the array of compensation values.| +| Type | Description | +| ---------- | ----------------------------- | +| Array | An array of compensation values. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getExposureBiasRange().then((biasRangeArray) => { - console.log('Promise returned with the array of compenstation range: ' + JSON.stringify(biasRangeArray)); -}) +try { + let biasRangeArray = captureSession.getExposureBiasRange(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setExposureBias -setExposureBias(exposureBias: number, callback: AsyncCallback): void +setExposureBias(exposureBias: number): void -Sets an exposure compensation value. This API uses an asynchronous callback to return the result. +Sets an exposure compensation value for the device. Before the setting, you are advised to use **[getExposureBiasRange](#getexposurebiasrange)** to obtain the supported values. @@ -2133,106 +1458,50 @@ Before the setting, you are advised to use **[getExposureBiasRange](#getexposure | Name | Type | Mandatory| Description | | -------- | -------------------------------| ---- | ------------------- | -| exposureBias | number | Yes | Compensation value. You can use **getExposureBiasRange** to obtain the supported values.| -| callback | AsyncCallback | Yes | Callback used to return the result.| - -**Example** - -```js -let exposureBias = biasRangeArray[0]; -captureSession.setExposureBias(exposureBias,(err) => { - if (err) { - console.log(`Failed to set the exposure bias ${err.message}`); - return ; - } - console.log('Callback returned with the successful execution of setExposureBias'); -}) -``` - -### setExposureBias - -setExposureBias(exposureBias: number): Promise - -Sets an exposure compensation value. This API uses a promise to return the result. - -Before the setting, you are advised to use **[getExposureBiasRange](#getexposurebiasrange)** to obtain the supported values. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------------- | --------- | ---- | --------- | -| exposureBias | number | Yes | Compensation value. You can use **getExposureBiasRange** to obtain the supported values. | - -**Return value** - -| Name | Description | -| ----------------- |------------------------- | -| Promise | Promise used to return the result.| +| exposureBias | number | Yes | Exposure bias to set, which must be within the range obtained by running **getExposureBiasRange** interface. If the API call fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js let exposureBias = biasRangeArray[0]; -captureSession.setExposureBias(exposureBias).then(() => { - console.log('Promise returned with the successful execution of setExposureBias.'); -}) -``` - -### getExposureValue - -getExposureValue(callback: AsyncCallback): void - -Obtains the exposure value in use. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ------------------------| ---- | --------------------- | -| callback | AsyncCallback | Yes | Callback used to the exposure value.| - -**Example** - -```js -captureSession.getExposureValue((err, exposureValue) => { - if (err) { - console.log(`Failed to get the exposure value ${err.message}`); - return ; - } - console.log(`Callback returned with the exposure value: ${exposureValue}`); -}) +try { + captureSession.setExposureBias(exposureBias); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getExposureValue -getExposureValue(): Promise +getExposureValue(): number -Obtains the exposure value in use. This API uses a promise to return the result. +Obtains the exposure value in use. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Name | Description | -| ----------------- |-------------------------- | -| Promise | Promise used to the exposure value.| +| Type | Description | +| ---------- | ----------------------------- | +| number | Exposure value obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getExposureValue().then((exposureValue) => { - console.log(`Promise returned with exposure value: ${exposureValude}`); -}) +try { + let exposureValue = captureSession.getExposureValue(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### isFocusModeSupported -isFocusModeSupported(afMode: FocusMode, callback: AsyncCallback): void +isFocusModeSupported(afMode: FocusMode): boolean -Checks whether a specified focus mode is supported. This API uses an asynchronous callback to return the result. +Checks whether a focus mode is supported. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -2241,53 +1510,29 @@ Checks whether a specified focus mode is supported. This API uses an asynchronou | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------- | | afMode | [FocusMode](#focusmode) | Yes | Focus mode. | -| callback | AsyncCallback | Yes | Callback used to return the focus mode support status. The value **true** means that the focus mode is supported, and **false** means the opposite.| - -**Example** - -```js -captureSession.isFocusModeSupported(camera.FocusMode.FOCUS_MODE_AUTO, (err, status) => { - if (err) { - console.error(`Failed to check whether the focus mode is supported. ${err.message}`); - return; - } - console.log(`Callback returned with the focus mode support status: ${status}`); -}) -``` - -### isFocusModeSupported - -isFocusModeSupported(afMode: FocusMode): Promise - -Checks whether a specified focus mode is supported. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ------ | ----------------------- | ---- | ------------- | -| afMode | [FocusMode](#focusmode) | Yes | Focus mode.| **Return value** -| Type | Description | -| ----------------- | --------------------------------------------------- | -| Promise | Promise used to return the focus mode support status. The value **true** means that the focus mode is supported, and **false** means the opposite.| +| Type | Description | +| ---------- | ----------------------------- | +| boolean | Returns **true** if the focus mode is supported; returns **false** otherwise. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.isFocusModeSupported(camera.FocusMode.FOCUS_MODE_AUTO).then((status) => { - console.log(`Promise returned with focus mode support status ${status}.`); -}) +try { + let status = captureSession.isFocusModeSupported(camera.FocusMode.FOCUS_MODE_AUTO); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setFocusMode -setFocusMode(afMode: FocusMode, callback: AsyncCallback): void +setFocusMode(afMode: FocusMode): void -Sets a focus mode. This API uses an asynchronous callback to return the result. +Sets a focus mode for the device. Before the setting, use **[isFocusModeSupported](#isfocusmodesupported)** to check whether the focus mode is supported. @@ -2298,132 +1543,54 @@ Before the setting, use **[isFocusModeSupported](#isfocusmodesupported)** to che | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | ------------------- | | afMode | [FocusMode](#focusmode) | Yes | Focus mode. | -| callback | AsyncCallback | Yes | Callback used to return the result.| - -**Example** - -```js -captureSession.setFocusMode(camera.FocusMode.FOCUS_MODE_AUTO, (err) => { - if (err) { - console.error(`Failed to set the focus mode ${err.message}`); - return; - } - console.log('Callback returned with the successful execution of setFocusMode.'); -}) -``` - -### setFocusMode - -setFocusMode(afMode: FocusMode): Promise - -Sets a focus mode. This API uses a promise to return the result. - -Before the setting, use **[isFocusModeSupported](#isfocusmodesupported)** to check whether the focus mode is supported. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| ------ | ----------------------- | ---- | ------------- | -| afMode | [FocusMode](#focusmode) | Yes | Focus mode.| **Return value** -| Type | Description | -| -------------- | ------------------------ | -| Promise| Promise used to return the result.| - -**Example** - -```js -captureSession.setFocusMode(camera.FocusMode.FOCUS_MODE_AUTO).then(() => { - console.log('Promise returned with the successful execution of setFocusMode.'); -}) -``` - -### getFocusMode - -getFocusMode(callback: AsyncCallback): void - -Obtains the focus mode in use. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | --------------------------------------- | ---- | ------------------------------- | -| callback | AsyncCallback<[FocusMode](#focusmode)\> | Yes | Callback used to return the focus mode.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getFocusMode((err, afMode) => { - if (err) { - console.error(`Failed to get the focus mode ${err.message}`); - return; - } - console.log(`Callback returned with current focus mode: ${afMode}`); -}) +try { + captureSession.setFocusMode(camera.FocusMode.FOCUS_MODE_AUTO); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getFocusMode -getFocusMode(): Promise +getFocusMode(): FocusMode -Obtains the focus mode in use. This API uses a promise to return the result. +Obtains the focus mode in use. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| ------------------- | -------------------------------- | -| Promise | Promise used to return the focus mode.| - -**Example** - -```js -captureSession.getFocusMode().then((afMode) => { - console.log(`Promise returned with current focus mode : ${afMode}`); -}) -``` - -### setFocusPoint - -setFocusPoint(point: Point, callback: AsyncCallback): void - -Sets a focus point. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------- | ---- | ------------------- | -| point | [Point](#point) | Yes | Focal point. | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| Type | Description | +| ---------- | ----------------------------- | +| [FocusMode](#focusmode) | Focus mode obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -const Point1 = {x: 1, y: 1}; - -captureSession.setFocusPoint(Point1, (err) => { - if (err) { - console.error(`Failed to set the focus point ${err.message}`); - return; - } - console.log('Callback returned with the successful execution of setFocusPoint.'); -}) +try { + let afMode = captureSession.getFocusMode(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setFocusPoint -setFocusPoint(point: Point): Promise +setFocusPoint(point: Point): void -Sets a focal point. This API uses a promise to return the result. +Sets a focal point for the device. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -2431,173 +1598,106 @@ Sets a focal point. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | ------------------- | -| point | [Point](#point) | Yes | Focal point. | +| Point1 | [Point](#point) | Yes | Focal point. | **Return value** -| Type | Description | -| -------------- | ----------------------- | -| Promise| Promise used to return the result.| - -**Example** - -```js -const Point2 = {x: 2, y: 2}; - -captureSession.setFocusPoint(Point2).then(() => { - console.log('Promise returned with the successful execution of setFocusPoint.'); -}) -``` - -### getFocusPoint - -getFocusPoint(callback: AsyncCallback): void - -Obtains the focal point. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ---------------------------------- | ---- | ----------------------- | -| callback | AsyncCallback<[Point](#point)\> | Yes | Callback used to return the focal point.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getFocusPoint((err, point) => { - if (err) { - console.error(`Failed to get the current focus point ${err.message}`); - return; - } - console.log('Callback returned with the current focus point: ' + JSON.stringify(point)); -}) +const Point1 = {x: 1, y: 1}; +try { + captureSession.setFocusPoint(Point1); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getFocusPoint -getFocusPoint(): Promise +getFocusPoint(): Point -Obtains the focal point. This API uses a promise to return the result. +Obtains the focal point of the device. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| --------------- | --------------------------- | -| Promise | Promise used to return the focal point.| - -**Example** - -```js -captureSession.getFocusPoint().then((point) => { - console.log('Promise returned with the current focus point: ' + JSON.stringify(point)); -}) -``` - -### getFocalLength - -getFocalLength(callback: AsyncCallback): void - -Obtains the focal length. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ------------------------- | ---- | ----------------------- | -| callback | AsyncCallback | Yes | Callback used to return the focal length.| +| Type | Description | +| ---------- | ----------------------------- | +| [Point](#point) | Focal point obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getFocalLength((err, focalLength) => { - if (err) { - console.error(`Failed to get the current focal length ${err.message}`); - return; - } - console.log(`Callback returned with the current focal length: ${focalLength}`); -}) +try { + let point = captureSession.getFocusPoint(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getFocalLength -getFocalLength(): Promise +getFocalLength(): number -Obtains the focal length. This API uses a promise to return the result. +Obtains the focal length of the device. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| ---------------- | ----------------------- | -| Promise | Promise used to return the focal length.| - -**Example** - -```js -captureSession.getFocalLength().then((focalLength) => { - console.log(`Promise returned with the current focal length: ${focalLength}`); -}) -``` - -### getZoomRatioRange - -getZoomRatioRange\(callback: AsyncCallback\>\): void - -Obtains the zoom ratio range. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ------------------------------ | ---- | ------------------- | -| callback | AsyncCallback\> | Yes | Callback used to return an array containing the minimum and maximum zoom ratios.| +| Type | Description | +| ---------- | ----------------------------- | +| number | Focal length obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getZoomRatioRange((err, zoomRatioRange) => { - if (err) { - console.error(`Failed to get the zoom ratio range. ${err.message}`); - return; - } - console.log(`Callback returned with zoom ratio range: ${zoomRatioRange.length}`); -}) +try { + let focalLength = captureSession.getFocalLength(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getZoomRatioRange -getZoomRatioRange\(\): Promise\> +getZoomRatioRange(): Array -Obtains the zoom ratio range. This API uses a promise to return the result. +Obtains the supported zoom ratio range. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| ------------------------ | --------------------------- | -| Promise\> | Promise used to return an array containing the minimum and maximum zoom ratios.| +| Type | Description | +| ---------- | ----------------------------- | +| Array | Callback used to return an array containing the minimum and maximum zoom ratios. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getZoomRatioRange().then((zoomRatioRange) => { - console.log(`Promise returned with zoom ratio range: ${zoomRatioRange.length}`); -}) +try { + let zoomRatioRange = captureSession.getZoomRatioRange(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setZoomRatio -setZoomRatio(zoomRatio: number, callback: AsyncCallback): void +setZoomRatio(zoomRatio: number): void -Sets a zoom ratio. This API uses an asynchronous callback to return the result. +Sets a zoom ratio for the device. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -2606,227 +1706,111 @@ Sets a zoom ratio. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | --------- | -------------------- | ---- | ------------------- | | zoomRatio | number | Yes | Zoom ratio. You can use **getZoomRatioRange** to obtain the supported values.| -| callback | AsyncCallback | Yes | Callback used to return the result.| - -**Example** - -```js -let zoomRatio = zoomRatioRange[0]; -captureSession.setZoomRatio(zoomRatio, (err) => { - if (err) { - console.error(`Failed to set the zoom ratio value ${err.message}`); - return; - } - console.log('Callback returned with the successful execution of setZoomRatio.'); -}) -``` - -### setZoomRatio - -setZoomRatio(zoomRatio: number): Promise - -Sets a zoom ratio. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| --------- | ------ | ---- | --------- | -| zoomRatio | number | Yes | Zoom ratio. You can use **getZoomRatioRange** to obtain the supported values.| **Return value** -| Type | Description | -| -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js let zoomRatio = zoomRatioRange[0]; -captureSession.setZoomRatio(zoomRatio).then(() => { - console.log('Promise returned with the successful execution of setZoomRatio.'); -}) -``` - -### getZoomRatio - -getZoomRatio(callback: AsyncCallback): void - -Obtains the zoom ratio in use. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ---------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| - -**Example** - -```js -captureSession.getZoomRatio((err, zoomRatio) => { - if (err) { - console.error(`Failed to get the zoom ratio ${err.message}`); - return; - } - console.log(`Callback returned with current zoom ratio: ${zoomRatio}`); -}) +try { + captureSession.setZoomRatio(zoomRatio); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### getZoomRatio -getZoomRatio(): Promise +getZoomRatio(): number -Obtains the zoom ratio in use. This API uses a promise to return the result. +Obtains the zoom ratio in use. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** -| Type | Description | -| ---------------- | ----------------------- | -| Promise | Promise used to return the zoom ratio.| - -**Example** - -```js -captureSession.getZoomRatio().then((zoomRatio) => { - console.log(`Promise returned with current zoom ratio : ${zoomRatio}`); -}) -``` - -### isVideoStabilizationModeSupported - -isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode, callback: AsyncCallback): void - -Checks whether the specified video stabilization mode is supported. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------- | ---- | ------------------------------ | -| vsMode | [VideoStabilizationMode](#videostabilizationmode) | Yes | Video stabilization mode. | -| callback | AsyncCallback | Yes | Callback used to return whether the video stabilization mode is supported. The value **true** means that the video stabilization mode is supported, and **false** means the opposite. | - -**Example** - -```js -captureSession.isVideoStabilizationModeSupported(camera.VideoStabilizationMode.OFF, (err, isSupported) => { - if (err) { - console.error(`Failed to check whether video stabilization mode supported. ${err.message}`); - return; - } - console.log(`Callback returned with the successful execution of isVideoStabilizationModeSupported`); -}) -``` - -### isVideoStabilizationModeSupported - -isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): Promise - -Checks whether the specified video stabilization mode is supported. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Return value** - -| Type | Description | -| ----------------- | --------------------------------------------- | -| Promise | Promise used to return whether the video stabilization mode is supported. The value **true** means that the video stabilization mode is supported, and **false** means the opposite.| - -**Example** - -```js -captureSession.isVideoStabilizationModeSupported(camera.VideoStabilizationMode.OFF).then((isSupported) => { - console.log(`Promise returned with video stabilization mode supported: ${isSupported}`); -}) -``` - -### getActiveVideoStabilizationMode - -getActiveVideoStabilizationMode(callback: AsyncCallback): void - -Obtains the video stabilization mode in use. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------- | ---- | ------------------------------ | -| callback | AsyncCallback | Yes | Callback used to return the video stabilization mode. | +| Type | Description | +| ---------- | ----------------------------- | +| number | Zoom ratio obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getActiveVideoStabilizationMode((err, vsMode) => { - if (err) { - console.error(`Failed to get active video stabilization mode ${err.message}`); - return; - } - console.log('Callback returned with the successful execution of getActiveVideoStabilizationMode.'); -}) +try { + let zoomRatio = captureSession.getZoomRatio(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` -### getActiveVideoStabilizationMode +### isVideoStabilizationModeSupported -getActiveVideoStabilizationMode(): Promise +isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean -Obtains the video stabilization mode in use. This API uses a promise to return the result. +Checks whether the specified video stabilization mode is supported. **System capability**: SystemCapability.Multimedia.Camera.Core +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------- | ---- | ------------------------------ | +| vsMode | [VideoStabilizationMode](#videostabilizationmode) | Yes | Video stabilization mode. | + **Return value** -| Type | Description | -| -------------------------------- | ------------------------------------------------- | -| Promise | Promise used to return the video stabilization mode. | +| Type | Description | +| ---------- | ----------------------------- | +| boolean | Returns **true** if the video stabilization mode is supported; returns **false** otherwise. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.getActiveVideoStabilizationMode().then((vsMode) => { - console.log(`Promise returned with the current video stabilization mode: ${vsMode}`); -}) +try { + let isSupported = captureSession.isVideoStabilizationModeSupported(camera.VideoStabilizationMode.OFF); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` -### setVideoStabilizationMode +### getActiveVideoStabilizationMode -setVideoStabilizationMode(mode: VideoStabilizationMode, callback: AsyncCallback): void +getActiveVideoStabilizationMode(): VideoStabilizationMode -Sets a video stabilization mode. This API uses an asynchronous callback to return the result. +Obtains the video stabilization mode in use. **System capability**: SystemCapability.Multimedia.Camera.Core -**Parameters** +**Return value** -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------- | ---- | --------------------- | -| mode | [VideoStabilizationMode](#videostabilizationmode) | Yes | Video stabilization mode. | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| Type | Description | +| ---------- | ----------------------------- | +| VideoStabilizationMode | Video stabilization mode obtained. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.setVideoStabilizationMode(camera.VideoStabilizationMode.OFF, (err) => { - if (err) { - console.error(`Failed to set the video stabilization mode ${err.message}`); - return; - } - console.log('Callback returned with the successful execution of setVideoStabilizationMode.'); -}) +try { + let vsMode = captureSession.getActiveVideoStabilizationMode(); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### setVideoStabilizationMode -setVideoStabilizationMode(mode: VideoStabilizationMode): Promise +setVideoStabilizationMode(mode: VideoStabilizationMode): void -Sets a video stabilization mode. This API uses a promise to return the result. +Sets a video stabilization mode for the device. **System capability**: SystemCapability.Multimedia.Camera.Core @@ -2838,16 +1822,19 @@ Sets a video stabilization mode. This API uses a promise to return the result. **Return value** -| Type | Description | -| -------------- | ------------------------------------------------- | -| Promise| Promise used to return the result. | +| Type | Description | +| ---------- | ----------------------------- | +| [CameraErrorCode](#cameraerrorcode) | If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -captureSession.setVideoStabilizationMode(camera.VideoStabilizationMode.OFF).then(() => { - console.log('Promise returned with the successful execution of setVideoStabilizationMode.'); -}) +try { + captureSession.setVideoStabilizationMode(camera.VideoStabilizationMode.OFF); +} catch (error) { + // If the operation fails, error.code is returned and processed. + console.log(error.code); +} ``` ### on('focusStateChange') @@ -2862,7 +1849,7 @@ Listens for focus state changes. This API uses an asynchronous callback to retur | Name | Type | Mandatory| Description | | -------- | ----------------------------------------- | ---- | ------------------------ | -| type | string | Yes | Event type. The value is fixed at **'focusStateChange'**, indicating the focus state change event.| +| type | string | Yes | Event type. The value is fixed at **'focusStateChange'**. The callback function returns the focus state change. The event can be listened for only when the session is created.| | callback | AsyncCallback<[FocusState](#focusstate)\> | Yes | Callback used to return the focus state change. | **Example** @@ -2875,7 +1862,7 @@ captureSession.on('focusStateChange', (focusState) => { ### on('error') -on(type: 'error', callback: ErrorCallback): void +on(type: 'error', callback: ErrorCallback): void Listens for **CaptureSession** errors. This API uses a callback to return the errors. @@ -2885,39 +1872,17 @@ Listens for **CaptureSession** errors. This API uses a callback to return the er | Name | Type | Mandatory| Description | | -------- | ----------------------------------------------------------- | ---- | ------------------------------ | -| type | string | Yes | Event type. The value is fixed at **'error'**, indicating the capture session error event.| -| callback | ErrorCallback<[CaptureSessionError](#capturesessionerror)\> | Yes | Callback used to return the error information. | +| type | string | Yes | Event type. The value is fixed at **'error'**. The callback function returns the error code corresponding to an error that occurs during the call of a **CaptureSession** API, for example, **beginConfig()**, **commitConfig()**, or **addInput()**.| +| callback | ErrorCallback | Yes | Callback used to return an error code defined in [CameraErrorCode](#cameraerrorcode). | **Example** ```js -captureSession.on('error', (captureSessionError) => { - console.log(`Capture session error code: ${captureSessionError.code}`); +captureSession.on('error', (error) => { + console.log(`Capture session error code: ${error.code}`); }) ``` -## CaptureSessionErrorCode - -Enumerates the error codes used in a **CaptureSession**. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name | Value | Description | -| ----------------------------- | ---- | -------- | -| ERROR_UNKNOWN | -1 | Unknown error.| -| ERROR_INSUFFICIENT_RESOURCES | 0 | Insufficient resources.| -| ERROR_TIMEOUT | 1 | Timeout.| - -## CaptureSessionError - -Defines a **CaptureSession** error. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name| Type | Mandatory | Description | -| ---- | ------------------------------------------- | -------------------------- |-------------------------- | -| code | [CaptureSessionError](#capturesessionerror) | Yes |**CaptureSession** error code.| - ## CameraOutput Implements output information used in a **[CaptureSession](#capturesession)**. It is the base class of **output**. @@ -2938,14 +1903,14 @@ Starts to output preview streams. This API uses an asynchronous callback to retu | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | -------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js previewOutput.start((err) => { if (err) { - console.error(`Failed to start the previewOutput. ${err.message}`); + console.error(`Failed to start the previewOutput. ${err.code}`); return; } console.log('Callback returned with previewOutput started.'); @@ -2964,14 +1929,16 @@ Starts to output preview streams. This API uses a promise to return the result. | Type | Description | | -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js previewOutput.start().then(() => { console.log('Promise returned with previewOutput started.'); -}) +}).catch((err) => { + console.log('Failed to previewOutput start '+ err.code); +}); ``` ### stop @@ -2993,7 +1960,7 @@ Stops outputting preview streams. This API uses an asynchronous callback to retu ```js previewOutput.stop((err) => { if (err) { - console.error(`Failed to stop the previewOutput. ${err.message}`); + console.error(`Failed to stop the previewOutput. ${err.code}`); return; } console.log('Callback returned with previewOutput stopped.'); @@ -3019,7 +1986,9 @@ Stops outputting preview streams. This API uses a promise to return the result. ```js previewOutput.stop().then(() => { console.log('Callback returned with previewOutput stopped.'); -}) +}).catch((err) => { + console.log('Failed to previewOutput stop '+ err.code); +}); ``` ### release @@ -3034,14 +2003,14 @@ Releases output resources. This API uses an asynchronous callback to return the | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js previewOutput.release((err) => { if (err) { - console.error(`Failed to release the PreviewOutput instance ${err.message}`); + console.error(`Failed to release the PreviewOutput instance ${err.code}`); return; } console.log('Callback invoked to indicate that the PreviewOutput instance is released successfully.'); @@ -3060,14 +2029,16 @@ Releases output resources. This API uses a promise to return the result. | Type | Description | | -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js previewOutput.release().then(() => { console.log('Promise returned to indicate that the PreviewOutput instance is released successfully.'); -}) +}).catch((err) => { + console.log('Failed to previewOutput release '+ err.code); +}); ``` ### on('frameStart') @@ -3082,7 +2053,7 @@ Listens for preview frame start events. This API uses an asynchronous callback t | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | --------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'frameStart'**, indicating the preview frame start event.| +| type | string | Yes | Event type. The value is fixed at **'frameStart'**. The callback is invoked when the preview on the first frame starts. This event can be listened for only when a **previewOutput** instance is created.| | callback | AsyncCallback | Yes | Callback used to return the result. | **Example** @@ -3105,7 +2076,7 @@ Listens for preview frame end events. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'frameEnd'**, indicating the preview frame end event.| +| type | string | Yes | Event type. The value is fixed at **'frameEnd'**. The callback is invoked when the preview on the last frame ends. This event can be listened for only when a **previewOutput** instance is created.| | callback | AsyncCallback | Yes | Callback used to return the result. | **Example** @@ -3118,7 +2089,7 @@ previewOutput.on('frameEnd', () => { ### on('error') -on(type: 'error', callback: ErrorCallback): void +on(type: 'error', callback: ErrorCallback): void Listens for **PreviewOutput** errors. This API uses a callback to return the errors. @@ -3128,8 +2099,8 @@ Listens for **PreviewOutput** errors. This API uses a callback to return the err | Name | Type | Mandatory| Description | | -------- | ----------------------------------------------------------------- | ---- | ------------------------ | -| type | string | Yes | Event type. The value is fixed at **'error'**, indicating the preview output error event.| -| callback | ErrorCallback<[PreviewOutputErrorCode](#previewoutputerrorcode)\> | Yes | Callback used to return the error information. | +| type | string | Yes | Event type. The value is fixed at **'error'**. The callback function returns the error code corresponding to an error that occurs during the call of a **PreviewOutput** API, for example, **start()** or **release()**.| +| callback | ErrorCallback | Yes | Callback used to return an error code defined in [CameraErrorCode](#cameraerrorcode). | **Example** @@ -3139,26 +2110,6 @@ previewOutput.on('error', (previewOutputError) => { }) ``` -## PreviewOutputErrorCode - -Enumerates the error codes used for preview output. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name | Value | Description | -| ------------- | ---- | -------- | -| ERROR_UNKNOWN | -1 | Unknown error.| - -## PreviewOutputError - -Defines the preview output error. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name| Type | Mandatory | Description | -| ---- | ------------------------------------------------- | ---------------- |---------------------- | -| code | [PreviewOutputErrorCode](#previewoutputerrorcode) | Yes |**PreviewOutput** error code.| - ## ImageRotation Enumerates the image rotation angles. @@ -3226,14 +2177,14 @@ Captures a photo with the default shooting parameters. This API uses an asynchro | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js photoOutput.capture((err) => { if (err) { - console.error(`Failed to capture the photo ${err.message}`); + console.error(`Failed to capture the photo ${err.code}`); return; } console.log('Callback invoked to indicate the photo capture request success.'); @@ -3242,6 +2193,30 @@ photoOutput.capture((err) => { ### capture +capture(): Promise + +Captures a photo with the default shooting parameters. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Camera.Core + +**Return value** + +| Type | Description | +| -------------- | ------------------------ | +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| + +**Example** + +```js +photoOutput.capture().then(() => { + console.log('Promise returned to indicate that photo capture request success.'); +}).catch((err) => { + console.log('Failed to photoOutput capture '+ err.code); +}); +``` + +### capture + capture(setting: PhotoCaptureSetting, callback: AsyncCallback): void Captures a photo with the specified shooting parameters. This API uses an asynchronous callback to return the result. @@ -3253,7 +2228,7 @@ Captures a photo with the specified shooting parameters. This API uses an asynch | Name | Type | Mandatory| Description | | -------- | ------------------------------------------- | ---- | -------------------- | | setting | [PhotoCaptureSetting](#photocapturesetting) | Yes | Shooting settings. | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned. | **Example** @@ -3271,7 +2246,7 @@ let settings = { } photoOutput.capture(settings, (err) => { if (err) { - console.error(`Failed to capture the photo ${err.message}`); + console.error(`Failed to capture the photo ${err.code}`); return; } console.log('Callback invoked to indicate the photo capture request success.'); @@ -3296,41 +2271,37 @@ Captures a photo with the specified shooting parameters. This API uses a promise | Type | Description | | -------------- | ------------------------ | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js -photoOutput.capture().then(() => { +photoOutput.capture(settings).then(() => { console.log('Promise returned to indicate that photo capture request success.'); -}) +}).catch((err) => { + console.log('Failed to photoOutput capture '+ err.code); +}); ``` ### isMirrorSupported -isMirrorSupported(callback: AsyncCallback): void +isMirrorSupported(): boolean -Checks whether mirroring is supported. This API uses an asynchronous callback to return the result. +Checks whether mirroring is supported. **System capability**: SystemCapability.Multimedia.Camera.Core -**Parameters** +**Return value** -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------- | ---- | -------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the mirroring support status. The value **true** means that mirroring is supported, and **false** means the opposite. | +| Type | Description | +| -------------- | ----------------------- | +| boolean | Returns **true** if mirroring is supported; returns **false** otherwise.| **Example** ```js -photoOutput.isMirrorSupported((err, isSupported) => { - if (err) { - console.error(`Failed to check mirror is supported ${err.message}`); - return; - } - console.log('Callback returned with the successful execution of isMirrorSupported.'); -}) +let isSupported = photoOutput.isMirrorSupported(); ``` ### release @@ -3345,14 +2316,14 @@ Releases output resources. This API uses an asynchronous callback to return the | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js photoOutput.release((err) => { if (err) { - console.error(`Failed to release the PreviewOutput instance ${err.message}`); + console.error(`Failed to release the PreviewOutput instance ${err.code}`); return; } console.log('Callback invoked to indicate that the PreviewOutput instance is released successfully.'); @@ -3371,36 +2342,16 @@ Releases output resources. This API uses a promise to return the result. | Type | Description | | -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js photoOutput.release().then(() => { console.log('Promise returned to indicate that the PreviewOutput instance is released successfully.'); -}) -``` - -### isMirrorSupported - -isMirrorSupported(): Promise - -Checks whether mirroring is supported. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Return value** - -| Type | Description | -| ----------------- | ------------------------------------------- | -| Promise | Promise used to return the mirroring support status. The value **true** means that mirroring is supported, and **false** means the opposite. | - -**Example** - -```js -photoOutput.isMirrorSupported().then((isSupported) => { - console.log(`Promise returned with mirror supported: ${isSupported}`); -}) +}).catch((err) => { + console.log('Failed to photoOutput release '+ err.code); +}); ``` ### on('captureStart') @@ -3415,13 +2366,13 @@ Listens for shooting start events. This API uses an asynchronous callback to ret | Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | ------------------------------------------ | -| type | string | Yes | Event type. The value is fixed at **'captureStart'**, indicating the shooting start event.| +| type | string | Yes | Event type. The value is fixed at **'captureStart'**. The callback function returns the shooting start event.| | callback | AsyncCallback | Yes | Callback used to return the capture ID. | **Example** ```js -photoOutput.on('captureStart', (err, captureId) => { +photoOutput.on('captureStart', (captureId) => { console.log(`photo capture stated, captureId : ${captureId}`); }) ``` @@ -3438,13 +2389,13 @@ Listens for frame shutter events. This API uses an asynchronous callback to retu | Name | Type | Mandatory| Description | | -------- | ----------------------------------------------------- | --- | ------------------------------------ | -| type | string | Yes | Event type. The value is fixed at **'frameShutter'**, indicating the frame shutter event.| +| type | string | Yes | Event type. The value is fixed at **'frameShutter'**. The callback function returns the captured frame information (captureId and time).| | callback | AsyncCallback<[FrameShutterInfo](#frameshutterinfo)\> | Yes | Callback used to return the result. | **Example** ```js -photoOutput.on('frameShutter', (err, frameShutterInfo) => { +photoOutput.on('frameShutter', (frameShutterInfo) => { console.log(`photo capture end, captureId : ${frameShutterInfo.captureId}`); console.log(`Timestamp for frame : ${frameShutterInfo.timestamp}`); }) @@ -3462,13 +2413,13 @@ Listens for shooting end events. This API uses an asynchronous callback to retur | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------- | ---- | ---------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'captureEnd'**, indicating the shooting end event.| +| type | string | Yes | Event type. The value is fixed at **'captureEnd'**. The callback function returns the shooting end event.| | callback | AsyncCallback<[CaptureEndInfo](#captureendinfo)\> | Yes | Callback used to return the result. | **Example** ```js -photoOutput.on('captureEnd', (err, captureEndInfo) => { +photoOutput.on('captureEnd', (captureEndInfo) => { console.log(`photo capture end, captureId : ${captureEndInfo.captureId}`); console.log(`frameCount : ${captureEndInfo.frameCount}`); }) @@ -3476,7 +2427,7 @@ photoOutput.on('captureEnd', (err, captureEndInfo) => { ### on('error') -on(type: 'error', callback: ErrorCallback): void +on(type: 'error', callback: ErrorCallback): void Listens for **PhotoOutput** errors. This API uses a callback to return the errors. @@ -3486,14 +2437,14 @@ Listens for **PhotoOutput** errors. This API uses a callback to return the error | Name | Type | Mandatory| Description | | -------- | ----------------------------------------------------- | ---- | ----------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'error'**, indicating the photo output error event.| -| callback | ErrorCallback<[PhotoOutputError](#photooutputerror)\> | Yes | Callback used to return the error information. | +| type | string | Yes | Event type. The value is fixed at **'error'**. The callback function returns an error code when an API call fails.| +| callback | ErrorCallback | Yes | Callback used to return an error code defined in [CameraErrorCode](#cameraerrorcode). | **Example** ```js -photoOutput.on('error', (err, photoOutputError) => { - console.log(`Photo output error code: ${photoOutputError.code}`); +photoOutput.on('error', (error) => { + console.log(`Photo output error code: ${error.code}`); }) ``` @@ -3519,29 +2470,6 @@ Defines the capture end information. | captureId | number | Yes | ID of this capture action.| | frameCount | number | Yes | Number of frames captured. | -## PhotoOutputErrorCode - -Enumerates the error codes used for photo output. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name | Value | Description | -| ----------------------------- | ---- | --------------- | -| ERROR_UNKNOWN | -1 | Unknown error. | -| ERROR_DRIVER_ERROR | 0 | The driver or hardware is faulty.| -| ERROR_INSUFFICIENT_RESOURCES | 1 | Insufficient resources. | -| ERROR_TIMEOUT | 2 | Timeout. | - -## PhotoOutputError - -Defines a photo output error. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name| Type | Mandatory |Description | -| ---- | ------------------------------------- | --------- | ----------------------- | -| code | [PhotoOutputErrorCode](#photooutputerrorcode) | Yes | **PhotoOutput** error code.| - ## VideoOutput Implements output information used in a video recording session. This class inherits from [CameraOutput](#cameraoutput). @@ -3558,14 +2486,14 @@ Starts video recording. This API uses an asynchronous callback to return the res | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | -------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js videoOutput.start((err) => { if (err) { - console.error(`Failed to start the video output ${err.message}`); + console.error(`Failed to start the video output ${err.code}`); return; } console.log('Callback invoked to indicate the video output start success.'); @@ -3584,7 +2512,7 @@ Starts video recording. This API uses a promise to return the result. | Type | Description | | -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** @@ -3592,7 +2520,9 @@ Starts video recording. This API uses a promise to return the result. ```js videoOutput.start().then(() => { console.log('Promise returned to indicate that start method execution success.'); -}) +}).catch((err) => { + console.log('Failed to videoOutput start '+ err.code); +}); ``` ### stop @@ -3614,7 +2544,7 @@ Stops video recording. This API uses an asynchronous callback to return the resu ```js videoOutput.stop((err) => { if (err) { - console.error(`Failed to stop the video output ${err.message}`); + console.error(`Failed to stop the video output ${err.code}`); return; } console.log('Callback invoked to indicate the video output stop success.'); @@ -3640,8 +2570,10 @@ Stops video recording. This API uses a promise to return the result. ```js videoOutput.stop().then(() => { console.log('Promise returned to indicate that stop method execution success.'); -}) -``` +}).catch((err) => { + console.log('Failed to videoOutput stop '+ err.code); +}); +``` ### release @@ -3655,14 +2587,14 @@ Releases output resources. This API uses an asynchronous callback to return the | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js videoOutput.release((err) => { if (err) { - console.error(`Failed to release the PreviewOutput instance ${err.message}`); + console.error(`Failed to release the PreviewOutput instance ${err.code}`); return; } console.log('Callback invoked to indicate that the PreviewOutput instance is released successfully.'); @@ -3681,14 +2613,16 @@ Releases output resources. This API uses a promise to return the result. | Type | Description | | -------------- | ----------------------- | -| Promise| Promise used to return the result.| +| Promise| Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js videoOutput.release().then(() => { console.log('Promise returned to indicate that the PreviewOutput instance is released successfully.'); -}) +}).catch((err) => { + console.log('Failed to videoOutput release '+ err.code); +}); ``` ### on('frameStart') @@ -3703,7 +2637,7 @@ Listens for video recording start events. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ----------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **`frameStart`**, indicating the video recording start event.| +| type | string | Yes | Event type. The value is fixed at **'frameStart'**. The callback is invoked when the recording on the first frame of an image starts.| | callback | AsyncCallback | Yes | Callback used to return the result. | **Example** @@ -3726,7 +2660,7 @@ Listens for video recording stop events. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------------------------------ | -| type | string | Yes | Event type. The value is fixed at **'frameEnd'**, indicating the video recording stop event.| +| type | string | Yes | Event type. The value is fixed at **'frameEnd'**. The callback is invoked when the recording on the last frame of an image stops.| | callback | AsyncCallback | Yes | Callback used to return the result. | **Example** @@ -3739,7 +2673,7 @@ videoOutput.on('frameEnd', () => { ### on('error') -on(type: 'error', callback: ErrorCallback): void +on(type: 'error', callback: ErrorCallback): void Listens for errors that occur during video recording. This API uses a callback to return the result. @@ -3749,38 +2683,17 @@ Listens for errors that occur during video recording. This API uses a callback t | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | -------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'error'**, indicating the video output error event.| -| callback | Callback<[VideoOutputError](#videooutputerror)\> | Yes | Callback used to return the error information. | +| type | string | Yes | Event type. The value is fixed at **'error'**. The callback function returns the error code corresponding to an error that occurs during the call of a **VideoOutput** API, for example, **start()** or **release()**.| +| callback | Callback | Yes | Callback used to return an error code defined in [CameraErrorCode](#cameraerrorcode). | **Example** ```js -videoOutput.on('error', (VideoOutputError) => { - console.log(`Video output error code: ${VideoOutputError.code}`); +videoOutput.on('error', (error) => { + console.log(`Video output error code: ${error.code}`); }) ``` -## VideoOutputErrorCode - -Enumerates the error codes used for video recording. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name | Value | Description | -| --------------------- | ---- | ------------ | -| ERROR_UNKNOWN | -1 | Unknown error. | -| ERROR_DRIVER_ERROR | 0 | The driver or hardware is faulty.| - -## VideoOutputError - -Defines a video output error. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name| Type | Mandatory | Description | -| ---- | ------------------------------------- | ----------------- | ----------------------- | -| code | [PhotoOutputErrorCode](#photooutputerrorcode) | Yes | **VideoOutput** error code.| - ## MetadataOutput Implements metadata streams. It inherits **[CameraOutput](#cameraoutput)**. @@ -3796,15 +2709,15 @@ Starts to output metadata. This API uses an asynchronous callback to return the **Parameters** | Name | Type | Mandatory| Description | -| -------- | ----------------------------------------------------------- | ---- | ------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result.| +| -------- | -------------------------- | ---- | ------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js metadataOutput.start((err) => { if (err) { - console.error(`Failed to start metadataOutput. ${err.message}`); + console.error(`Failed to start metadataOutput. ${err.code}`); return; } console.log('Callback returned with metadataOutput started.'); @@ -3823,14 +2736,16 @@ Starts to output metadata. This API uses a promise to return the result. | Type | Description | | ---------------------- | ------------------------ | -| Promise | Promise used to return the result.| +| Promise | Promise used to return the result. If the operation fails, an error code defined in [CameraErrorCode](#cameraerrorcode) is returned.| **Example** ```js metadataOutput.start().then(() => { console.log('Callback returned with metadataOutput started.'); -}) +}).catch((err) => { + console.log('Failed to metadataOutput start '+ err.code); +}); ``` ### stop @@ -3852,7 +2767,7 @@ Stops outputting metadata. This API uses an asynchronous callback to return the ```js metadataOutput.stop((err) => { if (err) { - console.error(`Failed to stop the metadataOutput. ${err.message}`); + console.error(`Failed to stop the metadataOutput. ${err.code}`); return; } console.log('Callback returned with metadataOutput stopped.'); @@ -3878,7 +2793,9 @@ Stops outputting metadata. This API uses a promise to return the result. ```js metadataOutput.stop().then(() => { console.log('Callback returned with metadataOutput stopped.'); -}) +}).catch((err) => { + console.log('Failed to metadataOutput stop '+ err.code); +}); ``` ### on('metadataObjectsAvailable') @@ -3893,8 +2810,8 @@ Listens for metadata objects. This API uses an asynchronous callback to return t | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | ------------------------------------ | -| type | string | Yes | Event type. The value is fixed at **'metadataObjectsAvailable'**, that is, the metadata object.| -| callback | Callback\> | Yes | Callback used to return the error information. | +| type | string | Yes | Event type. The value is fixed at **'metadataObjectsAvailable'**. The callback function returns the valid metadata. This event can be listened for only when a **MetadataOutput** instance is created.| +| callback | Callback\> | Yes | Callback used to return the metadata.| **Example** @@ -3906,7 +2823,7 @@ metadataOutput.on('metadataObjectsAvailable', (metadataObjectArr) => { ### on('error') -on(type: 'error', callback: ErrorCallback): void +on(type: 'error', callback: ErrorCallback): void Listens for metadata errors. This API uses an asynchronous callback to return the result. @@ -3916,8 +2833,8 @@ Listens for metadata errors. This API uses an asynchronous callback to return th | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | --------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'error'**, that is, the metadata error.| -| callback | Callback<[MetadataOutputError](#metadataoutputerror)\> | Yes | Callback used to return the error information. | +| type | string | Yes | Event type. The value is fixed at **'error'**. The callback function returns the error code corresponding to an error that occurs during the call of a **MetadataOutput** instance API, for example, **start()** or **release()**.| +| callback | Callback | Yes | Callback used to return an error code defined in [CameraErrorCode](#cameraerrorcode). | **Example** @@ -3927,36 +2844,15 @@ metadataOutput.on('error', (metadataOutputError) => { }) ``` -## MetadataOutputErrorCode - -Enumerates the codes used for metadata output errors. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name | Value | Description | -| ------------------------------- | ---- | -------- | -| ERROR_UNKNOWN | -1 | Unknown error.| -| ERROR_INSUFFICIENT_RESOURCES | 0 | Insufficient resources.| - -## MetadataOutputError - -Defines a metadata output error. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -| Name| Type | Mandatory | Description | -| ---- | ------------------------------------- | ----------------- | ----------------------- | -| code | [MetadataOutputErrorCode](#metadataoutputerrorcode) | Yes | **MetadataOutput** error code.| - ## MetadataObjectType -Enumerates metadata streams. +Enumerates the metadata object types. **System capability**: SystemCapability.Multimedia.Camera.Core | Name | Value | Description | | ------------------------- | ---- | ----------------- | -| FACE_DETECTION | 0 | Metadata object type.| +| FACE_DETECTION | 0 | Face detection.| ## Rect @@ -3975,156 +2871,8 @@ Defines a rectangle. Implements camera metadata, which is the data source of [CameraInput](#camerainput). The metadata is obtained through metadataOutput.on('metadataObjectsAvailable'). -### getType - -getType(callback: AsyncCallback): void - -Obtains the metadata object type. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | --------------------------------------------------------- | --- | -------------------- | -| callback | AsyncCallback<[MetadataObjectType](#metadataobjecttype)\> | Yes | Callback used to return the result.| - -**Example** - -```js -let metadataObject = metadataObjectArr[0]; -metadataObject.getType((err, metadataObjectType) => { - if (err) { - console.error(`Failed to get type. ${err.message}`); - return; - } - console.log('Callback returned with an array of metadataObjectType.'); -}) -``` - -### getType - -getType(): Promise - -Obtains the metadata object type. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Return value** - -| Type | Description | -| --------------------------------------------------- | --------------------------- | -| Promise<[MetadataObjectType](#metadataobjecttype)\> | Promise used to return the result.| - -**Example** - -```js -let metadataObject = metadataObjectArr[0]; -metadataObject.getType().then((metadataObjectType) => { - console.log('Callback returned with an array of metadataObjectType.'); -}) -``` - -### getTimestamp - -getTimestamp(callback: AsyncCallback): void - -Obtains the metadata timestamp. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------------------------- | ---- | ------------------------ | -| callback | AsyncCallback | Yes | Callback used to return the result.| - -**Example** - -```js -let metadataObject = metadataObjectArr[0]; -metadataObject.getTimestamp((err,timestamp) => { - if (err) { - console.error(`Failed to get timestamp. ${err.message}`); - return; - } - console.log('Callback returned with timestamp getted timestamp : ${timestamp}'); -}) -``` - -### getTimestamp - -getTimestamp(): Promise - -Obtains the metadata timestamp. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Return value** - -| Type | Description | -| ---------------- | --------------------------- | -| Promise | Promise used to return the result.| - -**Example** - -```js -let metadataObject = metadataObjectArr[0]; -metadataObject.getTimestamp().then((timestamp) => { - console.log('Callback returned with timestamp getted timestamp : ${timestamp}'); -}) -``` - -### getBoundingBox - -getBoundingBox(callback: AsyncCallback): void - -Obtains the bounding box of metadata. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------------------------- | ---- | ------------------------ | -| callback | AsyncCallback<[Rect](#rect)\> | Yes | Callback used to return the result.| - -**Example** - -```js -let metadataObject = metadataObjectArr[0]; -metadataObject.getBoundingBox((err, rect) => { - if (err) { - console.error(`Failed to get boundingBox. ${err.message}`); - return; - } - console.log('Callback returned with boundingBox getted.'); -}) -``` - -### getBoundingBox - -getBoundingBox(): Promise - -Obtains the bounding box of metadata. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Camera.Core - -**Return value** - -| Type | Description | -| ---------------------- | --------------------------- | -| Promise<[Rect](#rect)\> | Promise used to return the result.| - -**Example** - -```js -let metadataObject = metadataObjectArr[0]; -metadataObject.getBoundingBox().then((rect) => { - console.log('Callback returned with boundingBox getted.'); -}) -``` - -## MetadataFaceObject - -Implements the face object of metadata. It inherits [MetadataObject](#metadataobject). +| Name | Type | Mandatory | Description | +| -------- | ------------------------------- | ---- | -----------------| +| type | [MetadataObjectType](#metadataobjecttype) | No | Metadata data type. Only face recognition is supported.| +| timestamp | number | No | Current timestamp, in milliseconds.| +| boundingBox | [Rect](#rect) | No | Metadata rectangle.| diff --git a/en/application-dev/reference/apis/js-apis-cert.md b/en/application-dev/reference/apis/js-apis-cert.md index 08df60a00e536dbc715b2017f8301203cbbf9ffc..cf334f6fd36fd654c2c9558865b0c9f06b68d9ef 100644 --- a/en/application-dev/reference/apis/js-apis-cert.md +++ b/en/application-dev/reference/apis/js-apis-cert.md @@ -102,7 +102,7 @@ Creates an **X509Cert** instance. This API uses an asynchronous callback to retu | Name | Type | Mandatory| Description | | -------- | ----------------------------- | ---- | -------------------------- | | inStream | [EncodingBlob](#encodingblob) | Yes | X.509 certificate serialization data. | -| callback | AsyncCallback\ | Yes | Callback invoked to return the result. **X509Cer** instance created.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. **X509Cert** instance created.| **Example** @@ -115,7 +115,7 @@ let encodingData = null; let encodingBlob = { data: encodingData, // Set the encoding format, which can be FORMAT_PEM or FORMAT_DER. - encodingFormat: cryptoFramework.EncodingFormat.FORMAT_PEM + encodingFormat: cryptoCert.EncodingFormat.FORMAT_PEM }; cryptoCert.createX509Cert(encodingBlob, function (error, x509Cert) { if (error != null) { @@ -144,7 +144,7 @@ Creates an **X509Cert** instance. This API uses a promise to return the result. | Type | Description | | ------- | ---------------- | -| Promise\ | **X509Cer** instance created.| +| Promise\ | **X509Cert** instance created.| **Example** @@ -189,7 +189,6 @@ Verifies the certificate signature. This API uses an asynchronous callback to re ```js import cryptoCert from '@ohos.security.cert'; -import cryptoFramework from "@ohos.security.cryptoFramework" // Certificate binary data, which must be set based on the service. let encodingData = null; @@ -250,7 +249,7 @@ let encodingBlob = { }; cryptoCert.createX509Cert(encodingBlob).then(x509Cert => { console.log("createX509Cert success"); - // Generate a public key by AsyKeyGenerator or obtain the public key by using getPublicKey() of the X509Cert instance. + // The service can call getPublicKey() of the upper-level X509Cert object to obtain the public key. 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 -Verifies the signature of the X.509 CRL. This API uses an asynchronous callback to return the result. +Verifies the signature of the X.509 CRL. This API uses an asynchronous callback to return the result. The RSA algorithm is supported. **System capability**: SystemCapability.Security.Cert @@ -1225,7 +1224,7 @@ Verifies the signature of the X.509 CRL. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------------------------------------------------ | -| key | cryptoFramework.PubKey | Yes | Public key used for signature verification. | +| key | cryptoFramework.PubKey | Yes | Public key used for signature verification. | | callback | AsyncCallback\ | Yes | Callback invoked to return the result. If **error** is **null**, the signature verification is successful. If **error** is not **null**, the signature verification fails.| @@ -1264,7 +1263,7 @@ cryptoCert.createX509Crl(encodingBlob, function (error, x509Crl) { verify(key : cryptoFramework.PubKey) : Promise\ -Verifies the signature of the X.509 CRL. This API uses a promise to return the result. +Verifies the signature of the X.509 CRL. This API uses a promise to return the result. The RSA algorithm is supported. **System capability**: SystemCapability.Security.Cert @@ -2061,7 +2060,7 @@ Obtains the issuer of this revoked certificate. This API uses an asynchronous ca **Return value** | Type | Description | -| --------------------- | ---------------------- - | +| --------------------- | ----------------------- | | [DataBlob](#datablob) | Promise used to return the issuer of the revoked certificate obtained.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-continuation-continuationManager.md b/en/application-dev/reference/apis/js-apis-continuation-continuationManager.md index 05f490c454f7e7133bfc5977d1bdc2d180462a7c..5ffc47acf97498d254f58b5b4ea8d540631083d2 100644 --- a/en/application-dev/reference/apis/js-apis-continuation-continuationManager.md +++ b/en/application-dev/reference/apis/js-apis-continuation-continuationManager.md @@ -155,8 +155,6 @@ registerContinuation(callback: AsyncCallback\): void; Registers the continuation management service and obtains a token. This API does not involve any filter parameters and uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -198,8 +196,6 @@ registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\< Registers the continuation management service and obtains a token. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -245,8 +241,6 @@ registerContinuation(options?: ContinuationExtraParams): Promise\; Registers the continuation management service and obtains a token. This API uses a promise to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -298,7 +292,7 @@ on(type: "deviceConnect", callback: Callback\): void; Subscribes to device connection events. This API uses an asynchronous callback to return the result. -> This API is deprecated since API version 9. You are advised to use [on](#continuationmanagerondeviceselected9) instead. +> This API is deprecated since API version 9. You are advised to use [on](#continuationmanagerondeviceconnect9) instead. **System capability**: SystemCapability.Ability.DistributedAbilityManager @@ -337,7 +331,7 @@ on(type: "deviceDisconnect", callback: Callback\): void; Subscribes to device disconnection events. This API uses an asynchronous callback to return the result. -> This API is deprecated since API version 9. You are advised to use [on](#continuationmanagerondeviceunselected9) instead. +> This API is deprecated since API version 9. You are advised to use [on](#continuationmanagerondevicedisconnect9) instead. **System capability**: SystemCapability.Ability.DistributedAbilityManager @@ -374,7 +368,7 @@ off(type: "deviceConnect", callback?: Callback\): void; Unsubscribes from device connection events. This API uses an asynchronous callback to return the result. -> This API is deprecated since API version 9. You are advised to use [off](#continuationmanageroffdeviceselected9) instead. +> This API is deprecated since API version 9. You are advised to use [off](#continuationmanageroffdeviceconnect9) instead. **System capability**: SystemCapability.Ability.DistributedAbilityManager @@ -413,7 +407,7 @@ off(type: "deviceDisconnect", callback?: Callback\): void; Unsubscribes from device disconnection events. This API uses an asynchronous callback to return the result. -> This API is deprecated since API version 9. You are advised to use [off](#continuationmanageroffdeviceunselected9) instead. +> This API is deprecated since API version 9. You are advised to use [off](#continuationmanageroffdevicedisconnect9) instead. **System capability**: SystemCapability.Ability.DistributedAbilityManager @@ -444,21 +438,19 @@ For details about the error codes, see [Distributed Scheduler Error Codes](../er }); ``` -## continuationManager.on("deviceSelected")9+ +## continuationManager.on("deviceConnect")9+ -on(type: "deviceSelected", token: number, callback: Callback\>): void; +on(type: "deviceConnect", token: number, callback: Callback\>): void; Subscribes to device connection events. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | type | string | Yes| Event type. The value is fixed at **deviceSelected**.| + | type | string | Yes| Event type. The value is fixed at **deviceConnect**.| | token | number | Yes| Token obtained after the registration of the continuation management service.| | callback | Callback\> | Yes| Callback invoked when a device is selected from the device list provided by the device selection module. This callback returns the device ID, type, and name.| @@ -477,12 +469,12 @@ For details about the error codes, see [Distributed Scheduler Error Codes](../er ```ts let token = 1; try { - continuationManager.on("deviceSelected", token, (data) => { - console.info('onDeviceSelected len: ' + data.length); + continuationManager.on("deviceConnect", token, (data) => { + console.info('onDeviceConnect len: ' + data.length); for (let i = 0; i < data.length; i++) { - console.info('onDeviceSelected deviceId: ' + JSON.stringify(data[i].id)); - console.info('onDeviceSelected deviceType: ' + JSON.stringify(data[i].type)); - console.info('onDeviceSelected deviceName: ' + JSON.stringify(data[i].name)); + console.info('onDeviceConnect deviceId: ' + JSON.stringify(data[i].id)); + console.info('onDeviceConnect deviceType: ' + JSON.stringify(data[i].type)); + console.info('onDeviceConnect deviceName: ' + JSON.stringify(data[i].name)); } }); } catch (err) { @@ -490,23 +482,21 @@ For details about the error codes, see [Distributed Scheduler Error Codes](../er } ``` -## continuationManager.on("deviceUnselected")9+ +## continuationManager.on("deviceDisconnect")9+ -on(type: "deviceUnselected", token: number, callback: Callback\>): void; +on(type: "deviceDisconnect", token: number, callback: Callback\>): void; Subscribes to device disconnection events. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | type | string | Yes| Event type. The value is fixed at **deviceUnselected**.| + | type | string | Yes| Event type. The value is fixed at **deviceDisconnect**.| | token | number | Yes| Token obtained after the registration of the continuation management service.| - | callback | Callback\> | Yes| Callback invoked when a device is unselected from the device list provided by the device selection module. This callback returns the device ID, type, and name.| + | callback | Callback\> | Yes| Callback invoked when a device is unselected from the device list provided by the device selection module. This callback returns the device ID, type, and name.| **Error codes** @@ -523,35 +513,31 @@ For details about the error codes, see [Distributed Scheduler Error Codes](../er ```ts let token = 1; try { - continuationManager.on("deviceUnselected", token, (data) => { - console.info('onDeviceUnselected len: ' + data.length); + continuationManager.on("deviceDisconnect", token, (data) => { + console.info('onDeviceDisconnect len: ' + data.length); for (let i = 0; i < data.length; i++) { - console.info('onDeviceUnselected deviceId: ' + JSON.stringify(data[i].id)); - console.info('onDeviceUnselected deviceType: ' + JSON.stringify(data[i].type)); - console.info('onDeviceUnselected deviceName: ' + JSON.stringify(data[i].name)); + console.info('onDeviceDisconnect deviceId: ' + JSON.stringify(data[i])); } - console.info('onDeviceUnselected finished.'); + console.info('onDeviceDisconnect finished.'); }); } catch (err) { console.error('on failed, cause: ' + JSON.stringify(err)); } ``` -## continuationManager.off("deviceSelected")9+ +## continuationManager.off("deviceConnect")9+ -off(type: "deviceSelected", token: number): void; +off(type: "deviceConnect", token: number): void; Unsubscribes from device connection events. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | type | string | Yes| Event type. The value is fixed at **deviceSelected**.| + | type | string | Yes| Event type. The value is fixed at **deviceConnect**.| | token | number | Yes| Token obtained after the registration of the continuation management service.| **Error codes** @@ -569,27 +555,25 @@ For details about the error codes, see [Distributed Scheduler Error Codes](../er ```ts let token = 1; try { - continuationManager.off("deviceSelected", token); + continuationManager.off("deviceConnect", token); } catch (err) { console.error('off failed, cause: ' + JSON.stringify(err)); } ``` -## continuationManager.off("deviceUnselected")9+ +## continuationManager.off("deviceDisconnect")9+ -off(type: "deviceUnselected", token: number): void; +off(type: "deviceDisconnect", token: number): void; Unsubscribes from device disconnection events. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | type | string | Yes| Event type. The value is fixed at **deviceUnselected**.| + | type | string | Yes| Event type. The value is fixed at **deviceDisconnect**.| | token | number | Yes| Token obtained after the registration of the continuation management service.| **Error codes** @@ -607,7 +591,7 @@ For details about the error codes, see [Distributed Scheduler Error Codes](../er ```ts let token = 1; try { - continuationManager.off("deviceUnselected", token); + continuationManager.off("deviceDisconnect", token); } catch (err) { console.error('off failed, cause: ' + JSON.stringify(err)); } @@ -761,8 +745,6 @@ startContinuationDeviceManager(token: number, callback: AsyncCallback\): v Starts the device selection module to show the list of available devices on the network. This API does not involve any filter parameters and uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -804,8 +786,6 @@ startContinuationDeviceManager(token: number, options: ContinuationExtraParams, Starts the device selection module to show the list of available devices on the network. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -851,8 +831,6 @@ startContinuationDeviceManager(token: number, options?: ContinuationExtraParams) Starts the device selection module to show the list of available devices on the network. This API uses a promise to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -1000,8 +978,6 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt Instructs the device selection module to update the device connection state. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -1046,8 +1022,6 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt Instructs the device selection module to update the device connection state. This API uses a promise to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -1183,8 +1157,6 @@ unregisterContinuation(token: number, callback: AsyncCallback\): void; Deregisters the continuation management service. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** @@ -1226,8 +1198,6 @@ unregisterContinuation(token: number): Promise\; Deregisters the continuation management service. This API uses a promise to return the result. -**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC - **System capability**: SystemCapability.Ability.DistributedAbilityManager **Parameters** diff --git a/en/application-dev/reference/apis/js-apis-cryptoFramework.md b/en/application-dev/reference/apis/js-apis-cryptoFramework.md index 2911c255d69e295aed856a46b801a460c0d34f14..9fd1b4f8dfcc379f090c49b982692d7ca3db2ab5 100644 --- a/en/application-dev/reference/apis/js-apis-cryptoFramework.md +++ b/en/application-dev/reference/apis/js-apis-cryptoFramework.md @@ -14,9 +14,9 @@ import cryptoFramework from "@ohos.security.cryptoFramework" ## Result - Enumerates the error codes. +Enumerates the error codes. - **System capability**: SystemCapability.Security.CryptoFramework +**System capability**: SystemCapability.Security.CryptoFramework | Name | Value | Description | | ------------------------------------- | -------- | ---------------------------- | @@ -29,11 +29,12 @@ import cryptoFramework from "@ohos.security.cryptoFramework" ## DataBlob Defines a binary data array. - **System capability**: SystemCapability.Security.CryptoFramework + +**System capability**: SystemCapability.Security.CryptoFramework | Name| Type | Readable| Writable| Description | | ---- | ---------- | ---- | ---- | ------ | -| data | Uint8Array | Yes | Yes | Data.| +| data | Uint8Array | Yes | Yes | Binary data array. | ## cryptoFramework.createMac @@ -42,13 +43,15 @@ createMac(algName : string) : Mac Creates a **Mac** instance for message authentication code (MAC) operations. +For details about the supported specifications, see [HMAC Algorithm Specifications](../../security/cryptoFramework-overview.md#hmac-algorithm-specifications). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name | Type | Mandatory| Description | | ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | Yes | Digest algorithm to use, which can be SHA-1, SHA-224, SHA-256, SHA-384, or SHA-512.| +| algName | string | Yes | Digest algorithm. For details about the supported algorithms, see [HMAC Algorithm Specifications](../../security/cryptoFramework-overview.md#hmac-algorithm-specifications). | **Return value** @@ -60,7 +63,7 @@ Creates a **Mac** instance for message authentication code (MAC) operations. | ID| Error Message | | -------- | ------------------ | -| 17620001 | memory error | +| 17620001 | memory error. | **Example** @@ -100,14 +103,14 @@ Initializes the MAC computation using a symmetric key. This API uses an asynchro | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------ | -| key | SymKey | Yes | Shared symmetric key.| +| key | [SymKey](#symkey) | Yes | Shared symmetric key.| | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -146,7 +149,7 @@ Initializes the MAC computation using a symmetric key. This API uses a promise t | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------ | -| key | SymKey | Yes | Shared symmetric key.| +| key | [SymKey](#symkey) | Yes | Shared symmetric key.| **Return value** @@ -158,7 +161,7 @@ Initializes the MAC computation using a symmetric key. This API uses a promise t | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -191,20 +194,23 @@ update(input : DataBlob, callback : AsyncCallback\) : void; Updates the MAC computation data. This API uses an asynchronous callback to return the result. +> **NOTE**
+> For details about the sample code for calling **update()** multiple times, see [Generating a MAC](../../security/cryptoFramework-guidelines.md#generating-a-mac). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------- | -| input | DataBlob | Yes | Data to pass in.| +| input | [DataBlob](#datablob)| Yes | Data to pass in.| | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -243,13 +249,16 @@ update(input : DataBlob) : Promise\; Updates the MAC computation data. This API uses a promise to return the result. +> **NOTE**
+> For details about the sample code for calling **update()** multiple times, see [Generating a MAC](../../security/cryptoFramework-guidelines.md#generating-a-mac). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name| Type | Mandatory| Description | | ------ | -------- | ---- | ---------- | -| input | DataBlob | Yes | Data to pass in.| +| input | [DataBlob](#datablob) | Yes | Data to pass in.| **Return value** @@ -261,7 +270,7 @@ Updates the MAC computation data. This API uses a promise to return the result. | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -304,14 +313,14 @@ Finalizes the MAC computation. This API uses an asynchronous callback to return | Name | Type | Mandatory| Description | | -------- | ------------------------ | ---- | -------- | -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| callback | AsyncCallback\<[DataBlob](#datablob)> | Yes | Callback invoked to return the result.| **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17620001 | memory error | -| 17630001 | crypto operation error | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | **Example** @@ -363,14 +372,14 @@ Finalizes the MAC computation. This API uses a promise to return the result. | Type | Description | | ------------------ | ----------- | -| Promise\ | Promise used to return the result.| +| Promise\<[DataBlob](#datablob)> | Promise used to return the result.| **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17620001 | memory error | -| 17630001 | crypto operation error | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | **Example** @@ -423,7 +432,7 @@ Obtains the MAC length, in bytes. | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -464,7 +473,9 @@ promiseConvertKey.then(symKey => { createMd(algName : string) : Md -Creates an **Md** instance for message digest operations. +Creates an **Md** instance for message digest operations. + +For details about the supported specifications, see [MD Algorithm Specifications](../../security/cryptoFramework-overview.md#md-algorithm-specifications). **System capability**: SystemCapability.Security.CryptoFramework @@ -472,7 +483,7 @@ Creates an **Md** instance for message digest operations. | Name | Type | Mandatory| Description | | ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | Yes | Digest algorithm to use, which can be SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, or MD5.| +| algName | string | Yes | Digest algorithm. For details about the supported algorithms, see [MD Algorithm Specifications](../../security/cryptoFramework-overview.md#md-algorithm-specifications). | **Return value** @@ -484,7 +495,7 @@ Creates an **Md** instance for message digest operations. | ID| Error Message | | -------- | ------------------ | -| 17620001 | memory error | +| 17620001 | memory error. | **Example** @@ -518,20 +529,23 @@ update(input : DataBlob, callback : AsyncCallback\) : void; Updates the message digest data. This API uses an asynchronous callback to return the result. +> **NOTE**
+> For details about the sample code for calling **update()** multiple times, see [Generating a Digest](../../security/cryptoFramework-guidelines.md#generating-a-digest). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------- | -| input | DataBlob | Yes | Data to pass in.| +| input | [DataBlob](#datablob)| Yes | Data to pass in.| | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -560,6 +574,9 @@ update(input : DataBlob) : Promise\; Updates the message digest data. This API uses a promise to return the result. +> **NOTE**
+> For details about the sample code for calling **update()** multiple times, see [Generating a Digest](../../security/cryptoFramework-guidelines.md#generating-a-digest). + **System capability**: SystemCapability.Security.CryptoFramework | Name| Type | Mandatory| Description | @@ -576,7 +593,7 @@ Updates the message digest data. This API uses a promise to return the result. | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -616,8 +633,8 @@ Generates a message digest. This API uses an asynchronous callback to return the | ID| Error Message | | -------- | ---------------------- | -| 17620001 | memory error | -| 17630001 | crypto operation error | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | **Example** @@ -659,14 +676,14 @@ Generates a message digest. This API uses a promise to return the result. | Type | Description | | ------------------ | ----------- | -| Promise\ | Promise used to return the result.| +| Promise\<[DataBlob](#datablob)> | Promise used to return the result.| **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17620001 | memory error | -| 17630001 | crypto operation error | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | **Example** @@ -711,7 +728,7 @@ Obtains the message digest length, in bytes. | ID| Error Message | | -------- | ---------------------- | -| 17630001 | crypto operation error | +| 17630001 | crypto operation error. | **Example** @@ -744,7 +761,7 @@ promiseMdUpdate.then(() => { createRandom() : Random -Creates a **Random** instance for generating random numbers and setting seeds. +Creates a **Random** instance for generating a random number and setting a seed. **System capability**: SystemCapability.Security.CryptoFramework @@ -758,7 +775,7 @@ Creates a **Random** instance for generating random numbers and setting seeds. | ID| Error Message | | -------- | ------------ | -| 17620001 | memory error | +| 17620001 | memory error. | **Example** @@ -789,14 +806,14 @@ Generates a random number of the given length. This API uses an asynchronous cal | Name | Type | Mandatory| Description | | -------- | ------------------------ | ---- | -------------------- | | len | number | Yes | Length of the random number to generate.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result. | +| callback | AsyncCallback\<[DataBlob](#datablob)> | Yes | Callback invoked to return the result. | **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17620001 | memory error | -| 17630001 | crypto operation error | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | **Example** @@ -836,14 +853,14 @@ Generates a random number of the given length. This API uses a promise to return | Type | Description | | ------------------ | ----------- | -| Promise\ | Promise used to return the result.| +| Promise\<[DataBlob](#datablob)> | Promise used to return the result.| **Error codes** | ID| Error Message | | -------- | ---------------------- | -| 17620001 | memory error | -| 17630001 | crypto operation error | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | **Example** @@ -881,7 +898,7 @@ Sets a seed. This API uses an asynchronous callback to return the result. | ID| Error Message | | -------- | ----------------- | -| 17620001 | memory error | +| 17620001 | memory error. | **Example** @@ -911,29 +928,33 @@ rand.generateRandom(12, (err, randData) => { ## ParamsSpec -Defines the parameters used for encryption and decryption.
For the symmetric encryption and decryption modes that require parameters such as the initialization vector (IV), you need to construct a child class object and pass it to [init()](#init-2). If the IV is not required (for example, the ECB mode), pass in **null** in [init()](#init-2). +Defines the parameters used for encryption and decryption. + +For the symmetric encryption and decryption modes that require parameters such as the initialization vector (IV), you must construct a child class object and pass it to [init()](#init-2). If no IV is required (for example, the ECB mode is used), pass in **null** in [init()](#init-2). **System capability**: SystemCapability.Security.CryptoFramework -| Name | Type | Readable| Writable| Description | -| -------- | ------ | ---- | ---- | ----------------------- | -| algoName | string | Yes | Yes | Symmetric encryption and decryption parameters. Options:
- **IvParamsSpec**: applicable to the CBC,|CTR,|OFB, |and CFB modes.
- **GcmParamsSpec**: applicable to the GCM mode.
- **CcmParamsSpec**: applicable to the CCM mode.| +| Name | Type | Readable| Writable| Description | +| ------- | ------ | ---- | ---- | ------------------------------------------------------------ | +| algName | string | Yes | Yes | Symmetric encryption and decryption parameters. Options:
- **IvParamsSpec**: applicable to the CBC, CTR, OFB, and CFB modes.
- **GcmParamsSpec**: applicable to the GCM mode.
- **CcmParamsSpec**: applicable to the CCM mode.| -> **NOTE** -> The **params** parameter in [init()](#init-2) is of the **ParamsSpec** type (parent class), while a child class object (such as **IvParamsSpec**) needs to be passed in. When constructing the child class object, you must set **algoName** for the parent class **ParamsSpec** to let the algorithm library know the child class object to pass in in **init()**. +> **NOTE**
+> The **params** parameter in [init()](#init-2) is of the **ParamsSpec** type (parent class), but a child class object (such as **IvParamsSpec**) needs to be passed in. When constructing the child class object, set **algName** for the parent class **ParamsSpec** to let the algorithm library know the type of child class object to pass in in **init()**. ## IvParamsSpec -Defines the child class of [ParamsSpec](#paramsspec). It is used as the parameters of [init()](#init-2) during symmetric encryption and decryption.
**IvParamsSpec** applies to the encryption and decryption modes such as CBC, CTR, OFB, and CFB, which use only the IV. +Defines the child class of [ParamsSpec](#paramsspec). It is used as the parameters of [init()](#init-2) during symmetric encryption and decryption. + +**IvParamsSpec** applies to the encryption and decryption modes such as CBC, CTR, OFB, and CFB, which use only the IV. **System capability**: SystemCapability.Security.CryptoFramework | Name| Type | Readable| Writable| Description | | ---- | --------------------- | ---- | ---- | ------------------------------------------------------------ | -| iv | [DataBlob](#datablob) | Yes | Yes | IV for encryption and decryption. Options:
- AES CBC, |CTR, |OFB, |or CFB mode: 16-byte IV
- 3DES CBC,|OFB, or |CFB mode: 8-byte IV| +| iv | [DataBlob](#datablob) | Yes | Yes | IV for encryption and decryption. Options:
- AES CBC, CTR, OFB, or CFB mode: 16-byte IV
- 3DES CBC, OFB, or CFB mode: 8-byte IV| -> **NOTE** -> Before passing [init()](#init-2), specify **algoName** for its parent class [ParamsSpec](#paramsspec). +> **NOTE**
+> Before passing [init()](#init-2), specify **algName** for its parent class [ParamsSpec](#paramsspec). ## GcmParamsSpec @@ -948,7 +969,7 @@ Defines the child class of [ParamsSpec](#paramsspec) for the GCM mode. It is use | authTag | [DataBlob](#datablob) | Yes | Yes | Authentication tag, which is of 16 bytes.
When the GCM mode is used for encryption, [DataBlob](#datablob) output by [doFinal()](#dofinal-2) is required. The last 16 bytes of [DataBlob](#datablob) are used as as **authTag** in [GcmParamsSpec](#gcmparamsspec) of [init()](#init-2). | > **NOTE** -> Before passing [init()](#init-2), specify **algoName** for its parent class [ParamsSpec](#paramsspec). +> Before passing [init()](#init-2), specify **algName** for its parent class [ParamsSpec](#paramsspec). ## CcmParamsSpec @@ -959,11 +980,11 @@ Defines the child class of [ParamsSpec](#paramsspec) for the CCM mode. It is use | Name | Type | Readable| Writable| Description | | ------- | --------------------- | ---- | ---- | ------------------------------------------------------------ | | iv | [DataBlob](#datablob) | Yes | Yes | IV, which is of 7 bytes. | -| aad | [DataBlob](#datablob) | Yes | Yes | AAD, which is of 8 bytes. | +| aad | [DataBlob](#datablob) | Yes | Yes | Additional authenticated data (AAD), which is of 8 bytes. | | authTag | [DataBlob](#datablob) | Yes | Yes | Authentication tag, which is of 12 bytes.
When the CCM mode is used for encryption, [DataBlob](#datablob) output by [doFinal()](#dofinal-2) is required. The last 12 bytes of [DataBlob](#datablob) are used as as **authTag** in [CcmParamsSpec](#ccmparamsspec) of [init()](#init-2).| > **NOTE** -> Before passing [init()](#init-2), specify **algoName** for its parent class [ParamsSpec](#paramsspec). +> Before passing [init()](#init-2), specify **algName** for its parent class [ParamsSpec](#paramsspec). ## CryptoMode @@ -1154,6 +1175,10 @@ key.clearMem(); Defines an asymmetric key pair, which includes a public key and a private key.
Asymmetric key pairs can be generated by the **AsyKeyGenerator**. +> **NOTE** +> +> The **pubKey** and **priKey** objects in the **KeyPair** object exist as one parameter in the **KeyPair** object. When **KeyPair** leaves the scope, its internal objects may be destructed.
The service must reference the **KeyPair** object instead of the internal **pubKey** or **priKey** object. + ### Attributes **System capability**: SystemCapability.Security.CryptoFramework @@ -1168,7 +1193,7 @@ Defines an asymmetric key pair, which includes a public key and a private key. < createSymKeyGenerator(algName : string) : SymKeyGenerator -Creates a **symKeyGenerator** instance based on the specified algorithm.
For details about the supported specifications, see [Key Generation Specifications](../../security/cryptoFramework-overview.md#key-generation-specifications). +Creates a **symKeyGenerator** instance based on the specified algorithm.
For details about the supported specifications, see [Key Generation Specifications](../../security/cryptoFramework-overview.md#key-generation- specifications). **System capability**: SystemCapability.Security.CryptoFramework @@ -1176,7 +1201,7 @@ Creates a **symKeyGenerator** instance based on the specified algorithm.
For | Name | Type | Mandatory| Description | | ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | Yes | Algorithm used to create the **symKeyGenerator** instance.
For details, see "String for Generating a Key" in [Key Generation Specifications] (../../security/cryptoFramework-overview.md#key-generation-specifications).| +| algName | string | Yes | Algorithm used to create the **symKeyGenerator** instance.
For details, see "String Parameter" in [Key Generation Specifications](../../security/cryptoFramework-overview.md#key-generation-specifications). | **Return value** @@ -1227,8 +1252,8 @@ Generates a key randomly. This API uses an asynchronous callback to return the r ```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}`); @@ -1262,8 +1287,8 @@ Generates a key randomly. This API uses a promise to return the result.
This ```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}`); @@ -1307,8 +1332,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) { @@ -1359,8 +1384,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 => { @@ -1374,7 +1399,7 @@ symKeyGenerator.convertKey(keyMaterialBlob) createAsyKeyGenerator(algName : string) : AsyKeyGenerator -Creates an **AsyKeyGenerator** instance based on the specified algorithm. +Creates an **AsyKeyGenerator** instance based on the specified algorithm.
For details about the supported specifications, see [Key Generation Specifications](../../security/cryptoFramework-overview.md#key-generation- specifications). **System capability**: SystemCapability.Security.CryptoFramework @@ -1388,7 +1413,7 @@ Creates an **AsyKeyGenerator** instance based on the specified algorithm. | Type | Description | | --------------- | ---------------------------- | -| asyKeyGenerator | **AsyKeyGenerator** instance created.| +| [AsyKeyGenerator](#asykeygenerator) | **AsyKeyGenerator** instance created.| **Example** @@ -1422,7 +1447,13 @@ Generates a key pair randomly. This API uses an asynchronous callback to return | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | ------------------------------ | -| callback | AsyncCallback\ | Yes | Callback invoked to return the key pair obtained.| +| callback | AsyncCallback\<[KeyPair](#keypair)> | Yes | Callback invoked to return the key pair obtained.| + +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | **Example** @@ -1452,7 +1483,13 @@ Generates a key pair randomly. This API uses a promise to return the result. | Type | Description | | ----------------- | --------------------------------- | -| Promise\ | Promise used to return the key pair generated.| +| Promise\<[KeyPair](#keypair)> | Promise used to return the key pair generated.| + +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | **Example** @@ -1480,9 +1517,15 @@ Converts data into an asymmetric key. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------- | ----------- | ---- | ------------------------------ | -| pubKey | DataBlob | Yes | Public key material to convert. If no public key is required, set this parameter to **null**. | -| priKey | DataBlob | Yes | Private key material to convert. If no private key is required, set this parameter to **null**. | -| callback | AsyncCallback\ | Yes | Callback invoked to return the key pair obtained.| +| pubKey | [DataBlob](#datablob) | Yes | Public key material to convert. If no public key is required, set this parameter to **null**. | +| priKey | [DataBlob](#datablob) | Yes | Private key material to convert. If no private key is required, set this parameter to **null**. | +| callback | AsyncCallback\<[KeyPair](#keypair)> | Yes | Callback invoked to return the key pair obtained.| + +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | **Example** @@ -1519,7 +1562,13 @@ Converts data into an asymmetric key. This API uses a promise to return the resu | Type | Description | | ----------------- | --------------------------------- | -| Promise\ | Promise used to return the key pair generated.| +| Promise\<[KeyPair](#keypair)> | Promise used to return the key pair generated.| + +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | **Example** @@ -1539,9 +1588,9 @@ keyGenPromise.then( keyPair => { **Key Conversion** -- After **getEncoded()** is called for the asymmetric public and private keys (RSA and ECC), binary data in X.509 format and binary data in PKCS #8 format are returned, respectively. The data can be used for cross-application transfer or persistent storage. -- The public key returned by **convertKey()** must comply with the ASN.1 syntax, X.509 specifications, and DER encoding format, and the private key must comply with the ASN.1 syntax, PKCS #8 specifications, and DER encoding format. -- In **convertKey()**, you can pass in either **pubKey** or **priKey**, or both of them. If one of them is passed in, the returned **KeyPair** instance contains only the key converted from the data you passed in. +1. After **getEncoded()** is called for the asymmetric public and private keys (RSA and ECC), binary data in X.509 format and binary data in PKCS #8 format are returned, respectively. The data can be used for cross-application transfer or persistent storage. +2. The public key returned by **convertKey()** must comply with the ASN.1 syntax, X.509 specifications, and DER encoding format, and the private key must comply with the ASN.1 syntax, PKCS #8 specifications, and DER encoding format. +3. In **convertKey()**, you can pass in either **pubKey** or **priKey**, or both of them. If one of them is passed in, the returned **KeyPair** instance contains only the key converted from the data you passed in. ## cryptoFramework.createCipher @@ -1555,7 +1604,7 @@ Creates a [Cipher](#cipher) instance based on the specified algorithm.
For d | Name | Type | Mandatory| Description | | -------------- | ------ | ---- | ------------------------------------------------------------ | -| transformation | string | Yes | Combination of the algorithm name (including the key length), encryption mode, and padding algorithm of the **Cipher** instance to create.
For details about, see **Algorithm String** in [Encryption and Decryption Specifications](../../security/cryptoFramework-overview.md#encryption-and-decryption-specifications). | +| transformation | string | Yes | Combination of the algorithm name (including the key length), encryption mode, and padding algorithm of the **Cipher** instance to create.
For details about, see **Algorithm String** in [Encryption and Decryption Specifications](../../security/cryptoFramework-overview.md#encryption-and-decryption-specifications).| > **NOTE** > 1. In symmetric encryption and decryption, the implementation of PKCS #5 is the same as that of PKCS #7. PKCS #5 and PKCS #7 use the same padding length and block length. That is, data is padded with 8 bytes in 3DES and 16 bytes in AES. **noPadding** indicates that no padding is performed.
You need to understand the differences between different block cipher modes and use the correct parameter specifications. For example, padding is required for ECB and CBC. Otherwise, ensure that the plaintext length is an integer multiple of the block size. No padding is recommended for other modes. In this case, the ciphertext length is the same as the plaintext length. @@ -1572,10 +1621,10 @@ Creates a [Cipher](#cipher) instance based on the specified algorithm.
For d ```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}`); @@ -1694,9 +1743,9 @@ update(data : DataBlob, callback : AsyncCallback\) : void Updates the data to encrypt or decrypt by segment. This API uses an asynchronous callback to return the encrypted or decrypted data.
This API can be called only after the [Cipher](#cipher) instance is initialized by using [init()](init-2). > **NOTE** -> - If you are not familiar with the block modes for symmetric encryption and decryption, add a judgment to determine whether the result of each **update()** and **doFinal()** is null. If the result is not null, obtain the data to concatenate the complete ciphertext or plaintext. The reason is the block mode and the related specifications affect the **update()** and [doFinal()](#dofinal-2) results.
For example, in ECB and CBC modes, data is encrypted or decrypted by block no matter whether the data passed in by **update()** is an integer multiple of the block length, and the encrypted/decrypted block data generated by this **update()** is output.
That is, encrypted/decrypted data is returned as long as the data passed in by **update()** reaches the size of a block. Otherwise, **null** is returned and the data will be retained until a block is formed in the next **update()**/**doFinal()**.
When **doFinal()** is called, the data that has not been encrypted or decrypted will be padded based on the padding mode set in [createCipher](#cryptoframeworkcreatecipher) to an integer multiple of the block length, and then encrypted or decrypted.
For a mode in which a block cipher can be converted into a stream cipher, the length of the ciphertext may be the same as that of the plaintext. -> - **update()** may be called multiple times or may not be called ([doFinal()](#dofinal-2) is called after [init](#init-2)), depending on the size of the data to encrypt or decrypt.
The algorithm library does not set a limit on the amount of data that can be passed in by **updated()** (once or accumulatively). For symmetric encryption and decryption of a large amount of data, you are advised to call **update()** multiple times to pass in the data by segment. -> - RSA asymmetric encryption and decryption do not support **update()**. +> 1. If you are not familiar with the block modes for symmetric encryption and decryption, add a judgment to determine whether the result of each **update()** and **doFinal()** is null. If the result is not null, obtain the data to concatenate the complete ciphertext or plaintext. The reason is the block mode and the related specifications affect the **update()** and [doFinal()](#dofinal-2) results.
For example, in ECB and CBC modes, data is encrypted or decrypted by block no matter whether the data passed in by **update()** is an integer multiple of the block length, and the encrypted/decrypted block data generated by this **update()** is output.
That is, encrypted/decrypted data is returned as long as the data passed in by **update()** reaches the size of a block. Otherwise, **null** is returned and the data will be retained until a block is formed in the next **update()**/**doFinal()**.
When **doFinal()** is called, the data that has not been encrypted or decrypted will be padded based on the padding mode set in [createCipher](#cryptoframeworkcreatecipher) to an integer multiple of the block length, and then encrypted or decrypted.
For a mode in which a block cipher can be converted into a stream cipher, the length of the ciphertext may be the same as that of the plaintext. +> 2. **update()** may be called multiple times or may not be called ([doFinal()](#dofinal-2) is called after [init](#init-2)), depending on the size of the data to encrypt or decrypt.
The algorithm library does not set a limit on the amount of data that can be passed in by **updated()** (once or accumulatively). For symmetric encryption and decryption of a large amount of data, you are advised to call **update()** multiple times to pass in the data by segment.
For details about the sample code for calling **update()** multiple times in AES, see [Encrypting and Decrypting Data](../../security/cryptoFramework-guidelines.md#encrypting-and-decrypting-data). +> 3. RSA asymmetric encryption and decryption do not support **update()**. **System capability**: SystemCapability.Security.CryptoFramework @@ -1751,9 +1800,9 @@ update(data : DataBlob) : Promise\ Updates the data to encrypt or decrypt by segment. This API uses a promise to return the encrypted or decrypted data.
This API can be called only after the [Cipher](#cipher) instance is initialized by using [init()](init-2). > **NOTE** -> - If you are not familiar with the block modes for symmetric encryption and decryption, add a judgment to determine whether the result of each **update()** and **doFinal()** is null. If the result is not null, obtain the data to concatenate the complete ciphertext or plaintext. The reason is the block mode and the related specifications affect the **update()** and [doFinal()](#dofinal-2) results.
For example, in ECB and CBC modes, data is encrypted or decrypted by block no matter whether the data passed in by **update()** is an integer multiple of the block length, and the encryption/decryption block result generated by this **update()** is output. That is, encrypted/decrypted data is returned as long as the data passed in by **update()** reaches the size of a block. Otherwise, **null** is returned and the data will be retained until a block is formed in the next **update()**/**doFinal()**.
When **doFinal()** is called, the data that has not been encrypted or decrypted will be padded based on the padding mode set in [createCipher](#cryptoframeworkcreatecipher) to an integer multiple of the block length, and then encrypted or decrypted.
For a mode in which a block cipher can be converted into a stream cipher, the length of the ciphertext may be the same as that of the plaintext. -> - **update()** may be called multiple times or may not be called ([doFinal()](#dofinal-2) is called after [init](#init-2)), depending on the size of the data to encrypt or decrypt.
The algorithm library does not set a limit on the amount of data that can be passed in by **updated()** (once or accumulatively). For symmetric encryption and decryption of a large amount of data, you are advised to call **update()** multiple times to pass in the data by segment. -> - RSA asymmetric encryption and decryption do not support **update()**. +> 1. If you are not familiar with the block modes for symmetric encryption and decryption, add a judgment to determine whether the result of each **update()** and **doFinal()** is null. If the result is not null, obtain the data to concatenate the complete ciphertext or plaintext. The reason is the block mode and the related specifications affect the **update()** and [doFinal()](#dofinal-2) results.
For example, in ECB and CBC modes, data is encrypted or decrypted by block no matter whether the data passed in by **update()** is an integer multiple of the block length, and the encrypted/decrypted block data generated by this **update()** is output.
That is, encrypted/decrypted data is returned as long as the data passed in by **update()** reaches the size of a block. Otherwise, **null** is returned and the data will be retained until a block is formed in the next **update()**/**doFinal()**.
When **doFinal()** is called, the data that has not been encrypted or decrypted will be padded based on the padding mode set in [createCipher](#cryptoframeworkcreatecipher) to an integer multiple of the block length, and then encrypted or decrypted.
For a mode in which a block cipher can be converted into a stream cipher, the length of the ciphertext may be the same as that of the plaintext. +> 2. **update()** may be called multiple times or may not be called ([doFinal()](#dofinal-2) is called after [init](#init-2)), depending on the size of the data to encrypt or decrypt.
The algorithm library does not set a limit on the amount of data that can be passed in by **updated()** (once or accumulatively). For symmetric encryption and decryption of a large amount of data, you are advised to call **update()** multiple times to pass in the data by segment. For details about the sample code for calling **update()** multiple times in AES, see [Encrypting and Decrypting Data](../../security/cryptoFramework-guidelines.md#encrypting-and-decrypting-data). +> 3. RSA asymmetric encryption and decryption do not support **update()**. **System capability**: SystemCapability.Security.CryptoFramework @@ -1817,8 +1866,10 @@ doFinal(data : DataBlob, callback : AsyncCallback\) : void (2) Encrypts or decrypts the input data for RSA asymmetric encryption/decryption. This API uses an asynchronous callback to return the result. If a large amount of data needs to be encrypted/decrypted, call **doFinal()** multiple times and concatenate the result of each **doFinal()** to obtain the complete plaintext/ciphertext. > **NOTE** -> - In symmetric encryption or decryption, calling **doFinal()** means the end of an encryption or decryption process, and the [Cipher](#cipher) instance state will be cleared. To start a new encryption or decryption operation, you must call [init()](#init-2) to pass in a complete parameter list for initialization.
For example, if the same symmetric key is used for a **Cipher** instance to perform encryption and then decryption. After the encryption is complete, the **params** in **init** for decryption must be set instead of being **null**. -> - If a decryption fails, check whether the data to be encrypted and decrypted matches the parameters in **[init](#init-2)**. For the GCM mode, check whether the **authTag** obtained after encryption is obtained from the **GcmParamsSpec** for decryption. +> 1. In symmetric encryption or decryption, calling **doFinal()** means the end of an encryption or decryption process, and the [Cipher](#cipher) instance state will be cleared. To start a new encryption or decryption operation, you must call [init()](#init-2) to pass in a complete parameter list for initialization.
For example, if the same symmetric key is used for a **Cipher** instance to perform encryption and then decryption. After the encryption is complete, the **params** in **init** for decryption must be set instead of being **null**. +> 2. If a decryption fails, check whether the data to be encrypted and decrypted matches the parameters in **[init](#init-2)**. For the GCM mode, check whether the **authTag** obtained after encryption is obtained from the **GcmParamsSpec** for decryption. +> 3. The result of **doFinal()** may be **null**. To avoid exceptions, determine whether the result is **null** before using the **.data** field to access the **doFinal()** result. +> 4. For details about the sample code for calling **doFinal()** multiple times during RSA asymmetric encryption and decryption, see [Encrypting and Decrypting Data](../../security/cryptoFramework-guidelines.md#encrypting-and-decrypting-data). **System capability**: SystemCapability.Security.CryptoFramework @@ -1863,14 +1914,16 @@ doFinal(data : DataBlob) : Promise\ (1) Encrypts or decrypts the remaining data (generated by the block ciper mode) and the data passed in by **doFinal()** to finalize the symmetric encryption or decryption. This API uses a promise to return the encrypted or decrypted data.
If a small amount of data needs to be encrypted or decrypted, you can use **doFinal()** to pass in data without using **update()**. If all the data has been passed in by [update()](#update-4), you can pass in **null** in **data** of **doFinal()**.
The output of **doFinal()** varies with the symmetric encryption/decryption mode in use. -- Symmetric encryption in GCM and CCM mode: The result consists of the ciphertext and **authTag** (the last 16 bytes for GCM and the last 12 bytes for CCM). If **null** is passed in by **data** of **doFinal()**, the result of **doFinal()** is **authTag**. **authTag** must be [GcmParamsSpec](#gcmparamsspec) or [CcmParamsSpec](#ccmparamsspec) used for decryption. The ciphertext is the **data** passed in for decryption. +- Symmetric encryption in GCM and CCM mode: The result consists of the ciphertext and **authTag** (the last 16 bytes for GCM and the last 12 bytes for CCM). If **null** is passed in by **data** of **doFinal()**, the result of **doFinal()** is **authTag**.
**authTag** must be [GcmParamsSpec](#gcmparamsspec) or [CcmParamsSpec](#ccmparamsspec) used for decryption. The ciphertext is the **data** passed in for decryption. - Symmetric encryption and decryption in other modes and symmetric decryption in GCM and CCM modes: The result is the complete plaintext/ciphertext. (2) Encrypts or decrypts the input data for RSA asymmetric encryption/decryption. This API uses a promise to return the result. If a large amount of data needs to be encrypted/decrypted, call **doFinal()** multiple times and concatenate the result of each **doFinal()** to obtain the complete plaintext/ciphertext. > **NOTE** -> - In symmetric encryption or decryption, calling **doFinal()** means the end of an encryption or decryption process, and the [Cipher](#cipher) instance state will be cleared. To start a new encryption or decryption operation, you must call [init()](#init-2) to pass in a complete parameter list for initialization.
For example, if the same symmetric key is used for a **Cipher** instance to perform encryption and then decryption. After the encryption is complete, the **params** in **init** for decryption must be set instead of being **null**. -> - If a decryption fails, check whether the data to be encrypted and decrypted matches the parameters in **[init](#init-2)**. For the GCM mode, check whether the **authTag** obtained after encryption is obtained from the **GcmParamsSpec** for decryption. +> 1. In symmetric encryption or decryption, calling **doFinal()** means the end of an encryption or decryption process, and the [Cipher](#cipher) instance state will be cleared. To start a new encryption or decryption operation, you must call [init()](#init-2) to pass in a complete parameter list for initialization.
For example, if the same symmetric key is used for a **Cipher** instance to perform encryption and then decryption. After the encryption is complete, the **params** in **init** for decryption must be set instead of being **null**. +> 2. If a decryption fails, check whether the data to be encrypted and decrypted matches the parameters in **[init](#init-2)**. For the GCM mode, check whether the **authTag** obtained after encryption is obtained from the **GcmParamsSpec** for decryption. +> 3. The result of **doFinal()** may be **null**. To avoid exceptions, determine whether the result is **null** before using the **.data** field to access the **doFinal()** result. +> 4. For details about the sample code for calling **doFinal()** multiple times during RSA asymmetric encryption and decryption, see [Encrypting and Decrypting Data](../../security/cryptoFramework-guidelines.md#encrypting-and-decrypting-data). **System capability**: SystemCapability.Security.CryptoFramework @@ -1975,7 +2028,7 @@ keyGenPromise.then(rsaKeyPair => { createSign(algName : string) : Sign -Creates a **Sign** instance. +Creates a **Sign** instance.
For details about the supported specifications, see [Signing and Signature Verification Specifications](../../security/cryptoFramework-overview.md#signing-and-signature-verification-specifications). **System capability**: SystemCapability.Security.CryptoFramework @@ -1998,15 +2051,19 @@ import cryptoFramework from "@ohos.security.cryptoFramework" let signer1 = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); -let signer2 = cryptoFramework.createSign("RSA1024|PSS|SHA256|MGF1_SHA256") +let singer2 = cryptoFramework.createSign("RSA1024|PSS|SHA256|MGF1_SHA256") ``` ## Sign Provides APIs for signing. Before using any API of the **Sign** class, you must create a **Sign** instance by using **createSign()**. The **Sign** class does not support repeated initialization. When a new key is used for signing, you must create a new **Sign** object and call **init()** for initialization. + The signing mode is determined in **createSign()**, and the key is set by **init()**. + If the data to be signed is short, you can call **sign()** to pass in the data for signing after **init()**. + If the data to be signed is long, you can use **update()** to pass in the data by segment, and then use **sign()** to sign the entire data. + If **update()** is used to pass in data by segment, **data** of **sign()** can be **null**. ### Attributes @@ -2021,7 +2078,7 @@ If **update()** is used to pass in data by segment, **data** of **sign()** can b init(priKey : PriKey, callback : AsyncCallback\) : void -Initializes a **Sign** instance using a private key. This API uses an asynchronous callback to return the result. The **Sign** class does not support repeated calling of **init()**. +Initializes a **Sign** object using a private key. This API uses an asynchronous callback to return the result. The **Sign** class does not support repeated calling of **init()**. **System capability**: SystemCapability.Security.CryptoFramework @@ -2029,14 +2086,22 @@ Initializes a **Sign** instance using a private key. This API uses an asynchrono | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------------- | -| priKey | PriKey | Yes | Private key used for the initialization.| +| priKey | [PriKey](#prikey) | Yes | Private key used for the initialization.| | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### init init(priKey : PriKey) : Promise\ -Initializes a **Sign** instance using a private key. This API uses a promise to return the result. The **Sign** class does not support repeated calling of **init()**. +Initializes a **Sign** object using a private key. This API uses a promise to return the result. The **Sign** class does not support repeated calling of **init()**. **System capability**: SystemCapability.Security.CryptoFramework @@ -2044,7 +2109,7 @@ Initializes a **Sign** instance using a private key. This API uses a promise to | Name| Type| Mandatory| Description | | ------ | ---- | ---- | ---------------- | -| priKey | PriKey | Yes | Private key used for the initialization.| +| priKey | [PriKey](#prikey) | Yes | Private key used for the initialization.| **Return value** @@ -2052,34 +2117,56 @@ Initializes a **Sign** instance using a private key. This API uses a promise to | -------------- | ----------- | | Promise\ | Promise used to return the result.| +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### update update(data : DataBlob, callback : AsyncCallback\) : void Updates the data to be signed. This API uses an asynchronous callback to return the result. +> **NOTE** +> For details about the sample code for calling **update()** multiple times, see [Signing Data and Verifying Signatures](../../security/cryptoFramework-guidelines.md#signing-data-and-verifying-signatures). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| +| data | [DataBlob](#datablob)| Yes | Data to pass in.| | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### update update(data : DataBlob) : Promise\; Updates the data to be signed. This API uses a promise to return the result. +> **NOTE** +> For details about the sample code for calling **update()** multiple times, see [Signing Data and Verifying Signatures](../../security/cryptoFramework-guidelines.md#signing-data-and-verifying-signatures). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name| Type | Mandatory| Description | | ------ | -------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| +| data | [DataBlob](#datablob) | Yes | Data to pass in.| **Return value** @@ -2087,6 +2174,14 @@ Updates the data to be signed. This API uses a promise to return the result. | -------------- | ----------- | | Promise\ | Promise used to return the result.| +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### sign sign(data : DataBlob, callback : AsyncCallback\) : void @@ -2099,8 +2194,16 @@ Signs the data. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result. | +| data | [DataBlob](#datablob) | Yes | Data to pass in.| +| callback | AsyncCallback\<[DataBlob](#datablob) > | Yes | Callback invoked to return the result. | + +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | ### sign @@ -2114,7 +2217,7 @@ Signs the data. This API uses a promise to return the result. | Name| Type | Mandatory| Description | | ------ | -------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| +| data | [DataBlob](#datablob) | Yes | Data to pass in.| **Return value** @@ -2122,6 +2225,12 @@ Signs the data. This API uses a promise to return the result. | -------------- | ----------- | | Promise\ | Promise used to return the result.| +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + **Callback example**: ```javascript @@ -2138,8 +2247,8 @@ function stringToUint8Array(str) { let globalKeyPair; let SignMessageBlob; -let plan1 = "This is Sign test plan1"; // The first segment of the data. -let plan2 = "This is Sign test plan2"; // The second segment of the data. +let plan1 = "This is Sign test plan1"; // The first segment of data. +let plan2 = "This is Sign test plan2"; // The second segment of fata. let input1 = { data : stringToUint8Array(plan1) }; let input2 = { data : stringToUint8Array(plan2) }; @@ -2150,8 +2259,8 @@ function signMessageCallback() { globalKeyPair = keyPair; let priKey = globalKeyPair.priKey; signer.init(priKey, function (err, data) { - signer.update(input1, function (err, data) { // Add the first segment of the data. - signer.sign(input2, function (err, data) { // Add the second segment of the data, and sign input1 and input2. + signer.update(input1, function (err, data) { // add first segment of data + signer.sign(input2, function (err, data) { // add second segment of data, sign input1 and input2 SignMessageBlob = data; AlertDialog.show({message : "res" + SignMessageBlob.data}); }); @@ -2177,8 +2286,8 @@ function stringToUint8Array(str) { let globalKeyPair; let SignMessageBlob; -let plan1 = "This is Sign test plan1"; // The first segment of the data. -let plan2 = "This is Sign test plan2"; // The second segment of the data. +let plan1 = "This is Sign test plan1"; // The first segment of data. +let plan2 = "This is Sign test plan2"; // The second segment of fata. let input1 = { data : stringToUint8Array(plan1) }; let input2 = { data : stringToUint8Array(plan2) }; @@ -2191,9 +2300,9 @@ function signMessagePromise() { let priKey = globalKeyPair.priKey; return signer.init(priKey); }).then(() => { - return signer.update(input1); // Add the first segment of the data. + return signer.update(input1); // add first segment of data }).then(() => { - return signer.sign(input2); // Add the second segment of the data, and sign input1 and input2. + return signer.sign(input2); // add second segment of data, sign input1 and input2 }).then(dataBlob => { SignMessageBlob = dataBlob; console.info("sign output is " + SignMessageBlob.data); @@ -2206,7 +2315,7 @@ function signMessagePromise() { createVerify(algName : string) : Verify -Creates a **Verify** instance. +Creates a **Verify** instance. For details about the supported specifications, see [Signing and Signature Verification Specifications](../../security/cryptoFramework-overview.md#signing-and-signature-verification-specifications). **System capability**: SystemCapability.Security.CryptoFramework @@ -2235,10 +2344,15 @@ let verifyer2 = cryptoFramework.createVerify("RSA1024|PSS|SHA256|MGF1_SHA256") ## Verify Provides APIs for signature verification. Before using any API of the **Verify** class, you must create a **Verify** instance by using **createVerify()**. + The **Verify** class does not support repeated initialization. When a new key is used for signature verification, you must create a new **Verify** object and call **init()** for initialization. + The signature verification mode is determined in **createVerify()**, and key is set by **init()**. -If the data to be verified is short, you can call **verify()** to pass in the signature data and original data after **init()**. -If the data to be verified is long, you can use **update()** to pass in the data by segment, and then use **verify()** to verify the entire data. + +If the signature data to be verified is short, you can call **verify()** to pass in the signature data and original data after **init()**. + +If the signature data to be verified is long, you can use **update()** to pass in the data by segment, and then use **verify()** to verify the entire data. + If **update()** is used to pass in data by segment, **data** of **verify()** can be **null**. ### Attributes @@ -2263,9 +2377,17 @@ Initializes the **Verify** instance using a public key. This API uses an asynchr | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------------------------- | -| pubKey | PubKey | Yes | Public key used for the initialization.| +| pubKey | [PubKey](#pubkey) | Yes | Public key used for the initialization.| | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### init init(pubKey : PubKey) : Promise\ @@ -2278,7 +2400,7 @@ Initializes the **Verify** instance using a public key. This API uses a promise | Name| Type| Mandatory| Description | | ------ | ---- | ---- | ---------------------------- | -| pubKey | PubKey | Yes | Public key used for the initialization.| +| pubKey | [PubKey](#pubkey) | Yes | Public key used for the initialization.| **Return value** @@ -2286,34 +2408,56 @@ Initializes the **Verify** instance using a public key. This API uses a promise | -------------- | ----------- | | Promise\ | Promise used to return the result.| +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### update update(data : DataBlob, callback : AsyncCallback\) : void Updates the data for signature verification. This API uses an asynchronous callback to return the result. +> **NOTE** +> For details about the sample code for calling **update()** multiple times, see [Signing Data and Verifying Signatures](../../security/cryptoFramework-guidelines.md#signing-data-and-verifying-signatures). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| +| data | [DataBlob](#datablob)| Yes | Data to pass in.| | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### update update(data : DataBlob) : Promise\; Updates the data for signature verification. This API uses a promise to return the result. +> **NOTE** +> For details about the sample code for calling **update()** multiple times, see [Signing Data and Verifying Signatures](../../security/cryptoFramework-guidelines.md#signing-data-and-verifying-signatures). + **System capability**: SystemCapability.Security.CryptoFramework **Parameters** | Name| Type | Mandatory| Description | | ------ | -------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| +| data | [DataBlob](#datablob) | Yes | Data to pass in.| **Return value** @@ -2321,6 +2465,14 @@ Updates the data for signature verification. This API uses a promise to return t | -------------- | ----------- | | Promise\ | Promise used to return the result.| +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### verify verify(data : DataBlob, signatureData : DataBlob, callback : AsyncCallback\) : void @@ -2333,10 +2485,18 @@ Verifies the signature. This API uses an asynchronous callback to return the res | Name | Type | Mandatory| Description | | ------------- | -------------------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| -| signatureData | DataBlob | Yes | Signature data. | +| data | [DataBlob](#datablob) | Yes | Data to pass in.| +| signatureData | [DataBlob](#datablob) | Yes | Signature data. | | callback | AsyncCallback\ | Yes | Callback invoked to return the result. | +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + ### verify verify(data : DataBlob, signatureData : DataBlob) : Promise\ @@ -2349,8 +2509,8 @@ Verifies the signature. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------------- | -------- | ---- | ---------- | -| data | DataBlob | Yes | Data to pass in.| -| signatureData | DataBlob | Yes | Signature data. | +| data | [DataBlob](#datablob) | Yes | Data to pass in.| +| signatureData | [DataBlob](#datablob) | Yes | Signature data. | **Return value** @@ -2358,6 +2518,14 @@ Verifies the signature. This API uses a promise to return the result. | ----------------- | ---------------------------- | | Promise\ | Promise used to return the result.| +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + **Callback example**: ```javascript @@ -2401,7 +2569,7 @@ verifyInitPromise.then(() => { createKeyAgreement(algName : string) : KeyAgreement -Creates a **KeyAgreement** instance. +Creates a **KeyAgreement** instance.
For details about the supported specifications, see "Key Agreement Specifications" (../../security/cryptoFramework-overview.md#key-agreement-specifications). **System capability**: SystemCapability.Security.CryptoFramework @@ -2450,9 +2618,17 @@ Generates a shared secret. This API uses an asynchronous callback to return the | Name | Type | Mandatory| Description | | -------- | ------------------------ | ---- | ---------------------- | -| priKey | PriKey | Yes | Private key used for key agreement.| -| pubKey | PubKey | Yes | Public key used for key agreement.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the shared secret.| +| priKey | [PriKey](#prikey) | Yes | Private key used for key agreement.| +| pubKey | [PubKey](#pubkey) | Yes | Public key used for key agreement.| +| callback | AsyncCallback\<[DataBlob](#datablob)> | Yes | Callback invoked to return the shared secret.| + +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | ### generateSecret @@ -2466,14 +2642,22 @@ Generates a shared secret. This API uses a promise to return the result. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ---------------------- | -| priKey | PriKey | Yes | Private key used for key agreement.| -| pubKey | PubKey | Yes | Public key used for key agreement.| +| priKey | [PriKey](#prikey) | Yes | Private key used for key agreement.| +| pubKey | [PubKey](#pubkey) | Yes | Public key used for key agreement.| **Return value** | Type | Description | | ------------------ | -------- | -| Promise\ | Promise used to return the shared secret.| +| Promise\<[DataBlob](#datablob)> | Promise used to return the shared secret.| + +**Error codes** + +| ID| Error Message | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | **Callback example**: diff --git a/en/application-dev/reference/apis/js-apis-curve.md b/en/application-dev/reference/apis/js-apis-curve.md index 2c90472a98a38d74e7211eb8dcef2061082f18c8..f06e40489cbe25cd8fc75171d3736e0f868cbd69 100644 --- a/en/application-dev/reference/apis/js-apis-curve.md +++ b/en/application-dev/reference/apis/js-apis-curve.md @@ -1,4 +1,4 @@ -# @ohos.curves +# @ohos.curves (Interpolation Calculation) The **Curves** module provides APIs for interpolation calculation to create step, cubic Bezier, and spring curves. @@ -309,7 +309,6 @@ Creates a spring curve. This API is deprecated since API version 9. You are advi ```ts // xxx.ets import Curves from '@ohos.curves' - @Entry @Component struct ImageComponent { @@ -319,16 +318,16 @@ struct ImageComponent { build() { Column() { Text() - .margin({ top: 100 }) + .margin({top:100}) .width(this.widthSize) .height(this.heightSize) .backgroundColor(Color.Red) - .onClick(() => { + .onClick(()=> { let curve = Curves.cubicBezierCurve(0.25, 0.1, 0.25, 1.0); this.widthSize = curve.interpolate(0.5) * this.widthSize; this.heightSize = curve.interpolate(0.5) * this.heightSize; }) - .animation({ duration: 2000, curve: Curves.stepsCurve(9, true) }) + .animation({ duration: 2000 , curve: Curves.stepsCurve(9, true) }) }.width("100%").height("100%") } } diff --git a/en/application-dev/reference/apis/js-apis-data-dataShare.md b/en/application-dev/reference/apis/js-apis-data-dataShare.md index 82a333b14b2ea90e92540ee31142ea884c7f2593..f37b879ec9bb0adc031152daca000a904f0b5c1c 100644 --- a/en/application-dev/reference/apis/js-apis-data-dataShare.md +++ b/en/application-dev/reference/apis/js-apis-data-dataShare.md @@ -1,4 +1,4 @@ -# @ohos.data.dataShare (DataShare) +# @ohos.data.dataShare (Data Sharing) The **DataShare** module allows an application to manage its own data and share data with other applications on the same device. @@ -37,18 +37,12 @@ Example: **com.samples.datasharetest.DataShare** is the data share identifier, and **DB00/TBL00** is the resource path. - ## dataShare.createDataShareHelper createDataShareHelper(context: Context, uri: string, callback: AsyncCallback<DataShareHelper>): void Creates a **DataShareHelper** instance. This API uses an asynchronous callback to return the result. -Observe the following when using this API: - - If an application running in the background needs to call this API to access **DataShareExtension**, it must have the **ohos.permission.START_ABILITIES_FROM_BACKGROUND** permission. - - If **visible** of the target **DataShareExtension** is **false** in cross-application scenarios, the caller must have the **ohos.permission.START_INVISIBLE_ABILITY** permission. - - For details about the startup rules for the components in the stage model, see [Component Startup Rules (Stage Model)](../../application-models/component-startup-rules.md). - **System capability**: SystemCapability.DistributedDataManager.DataShare.Consumer **Parameters** @@ -70,7 +64,7 @@ For details about the error codes, see [DataShare Error Codes](../errorcodes/err **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let dataShareHelper; @@ -94,11 +88,6 @@ createDataShareHelper(context: Context, uri: string): Promise<DataShareHelper Creates a **DataShareHelper** instance. This API uses a promise to return the result. -Observe the following when using this API: - - If an application running in the background needs to call this API to access **DataShareExtension**, it must have the **ohos.permission.START_ABILITIES_FROM_BACKGROUND** permission. - - If **visible** of the target **DataShareExtension** is **false** in cross-application scenarios, the caller must have the **ohos.permission.START_INVISIBLE_ABILITY** permission. - - For details about the startup rules for the components in the stage model, see [Component Startup Rules (Stage Model)](../../application-models/component-startup-rules.md). - **System capability**: SystemCapability.DistributedDataManager.DataShare.Consumer **Parameters** @@ -125,7 +114,7 @@ For details about the error codes, see [DataShare Error Codes](../errorcodes/err **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let dataShareHelper; @@ -164,8 +153,7 @@ Subscribes to changes of the specified data. After an observer is registered, th **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' function onCallback() { console.info("**** Observer on callback ****"); } @@ -192,8 +180,7 @@ Unsubscribes from the changes of the specified data. This API uses an asynchrono **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' function offCallback() { console.info("**** Observer off callback ****"); } @@ -220,8 +207,7 @@ Inserts a single data record into the database. This API uses an asynchronous ca **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); const valueBucket = { "name": "rose", @@ -265,8 +251,7 @@ Inserts a single data record into the database. This API uses a promise to retur **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); const valueBucket = { "name": "rose1", @@ -303,8 +288,8 @@ Deletes one or more data records from the database. This API uses an asynchronou **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; -import dataSharePredicates from '@ohos.data.dataSharePredicates'; +import UIAbility from '@ohos.app.ability.UIAbility' +import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let da = new dataSharePredicates.DataSharePredicates(); @@ -346,8 +331,8 @@ Deletes one or more data records from the database. This API uses a promise to r **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; -import dataSharePredicates from '@ohos.data.dataSharePredicates'; +import UIAbility from '@ohos.app.ability.UIAbility' +import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let da = new dataSharePredicates.DataSharePredicates(); @@ -383,8 +368,8 @@ Queries data in the database. This API uses an asynchronous callback to return t **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; -import dataSharePredicates from '@ohos.data.dataSharePredicates'; +import UIAbility from '@ohos.app.ability.UIAbility' +import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let columns = ["*"]; @@ -428,8 +413,8 @@ Queries data in the database. This API uses a promise to return the result. **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; -import dataSharePredicates from '@ohos.data.dataSharePredicates'; +import UIAbility from '@ohos.app.ability.UIAbility' +import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let columns = ["*"]; @@ -466,8 +451,8 @@ Updates data in the database. This API uses an asynchronous callback to return t **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; -import dataSharePredicates from '@ohos.data.dataSharePredicates'; +import UIAbility from '@ohos.app.ability.UIAbility' +import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let da = new dataSharePredicates.DataSharePredicates(); @@ -516,8 +501,8 @@ Updates data in the database. This API uses a promise to return the result. **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; -import dataSharePredicates from '@ohos.data.dataSharePredicates'; +import UIAbility from '@ohos.app.ability.UIAbility' +import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let da = new dataSharePredicates.DataSharePredicates(); @@ -558,8 +543,7 @@ Batch inserts data into the database. This API uses an asynchronous callback to **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let vbs = new Array({"name": "roe11", "age": 21, "salary": 20.5,}, {"name": "roe12", "age": 21, "salary": 20.5,}, @@ -601,8 +585,7 @@ Batch inserts data into the database. This API uses a promise to return the resu **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let vbs = new Array({"name": "roe11", "age": 21, "salary": 20.5,}, {"name": "roe12", "age": 21, "salary": 20.5,}, @@ -636,8 +619,7 @@ Normalizes a **DataShare** URI. The **DataShare** URI can be used only by the lo **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.normalizeUri(uri, (err, data) => { if (err != undefined) { @@ -671,8 +653,7 @@ Normalizes a **DataShare** URI. The **DataShare** URI can be used only by the lo **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.normalizeUri(uri).then((data) => { console.log("normalizeUri = " + data); @@ -699,8 +680,7 @@ Denormalizes a URI. This API uses an asynchronous callback to return the result. **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.denormalizeUri(uri, (err, data) => { if (err != undefined) { @@ -734,8 +714,7 @@ Denormalizes a URI. This API uses a promise to return the result. **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.denormalizeUri(uri).then((data) => { console.log("denormalizeUri = " + data); @@ -762,8 +741,7 @@ Notifies the registered observer of data changes. This API uses an asynchronous **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.notifyChange(uri, () => { console.log("***** notifyChange *****"); @@ -793,8 +771,7 @@ Notifies the registered observer of data changes. This API uses a promise to ret **Example** ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; - +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.notifyChange(uri); ``` diff --git a/en/application-dev/reference/apis/js-apis-data-distributedobject.md b/en/application-dev/reference/apis/js-apis-data-distributedobject.md index dc8bf8258b987e9e4ad2799516ee6aafeb487896..130a128103476858444281b5ae11cdc09c9a0128 100644 --- a/en/application-dev/reference/apis/js-apis-data-distributedobject.md +++ b/en/application-dev/reference/apis/js-apis-data-distributedobject.md @@ -13,32 +13,57 @@ The **distributedDataObject** module provides basic data object management, incl import distributedObject from '@ohos.data.distributedDataObject'; ``` -## distributedDataObject.createDistributedObject - -createDistributedObject(source: object): DistributedObject +## distributedObject.create9+ +create(context: Context, source: object): DistributedObjectV9 Creates a distributed data object. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| source | object | Yes| Attribute of the distributed data object to create.| +| 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).| +| source | object | Yes| Attributes of the distributed data object.| **Return value** + | Type| Description| | -------- | -------- | -| [DistributedObject](#distributedobject) | Distributed data object created.| +| [DistributedObjectV9](#distributedobjectv9) | Distributed data object created.| **Example** + +FA model: + ```js +// Import the module. import distributedObject from '@ohos.data.distributedDataObject'; -// Create a distributed data object, which contains attributes of four types, namely, string, number, boolean, and object. -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +// Create a distributed data object, which contains attributes of the string, number, boolean, and object types. +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); ``` +Stage model: + +```ts +// Import the module. +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +// Create a distributed data object, which contains attributes of the string, number, boolean, and object types. +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +``` ## distributedObject.genSessionId @@ -49,14 +74,16 @@ Creates a random session ID. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Return value** + | Type| Description| | -------- | -------- | | string | Session ID created.| **Example** + ```js import distributedObject from '@ohos.data.distributedDataObject'; -var sessionId = distributedObject.genSessionId(); +let sessionId = distributedObject.genSessionId(); ``` ## SaveSuccessResponse9+ @@ -65,11 +92,11 @@ Called when the **Save()** API is successfully called. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject -| Name| Type| Description| -| -------- | -------- | -------- | -| sessionId | string | Unique ID for multi-device collaboration.| -| version | number |Version of the distributed data object saved.| -| deviceId | string | ID of the device where the distributed data object is stored. The default value is **local**, which identifies a local device. You can set it as required.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| sessionId | string | Yes| Unique ID for multi-device collaboration.| +| version | number | Yes| Version of the distributed data object saved.| +| deviceId | string | Yes| ID of the device where the distributed data object is stored. The default value is **local**, which identifies a local device. You can set it as required.| ## RevokeSaveSuccessResponse9+ @@ -77,17 +104,142 @@ Called when the **revokeSave()** API is successfully called. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject -| Name| Type| Description| -| -------- | -------- | -------- | -| sessionId | string | Unique ID for multi-device collaboration.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| sessionId | string | Yes| Unique ID for multi-device collaboration.| -## DistributedObject +## DistributedObjectV9 -Represents a distributed data object. +Provides APIs for managing a distributed data object. -### setSessionId +### setSessionId9+ -setSessionId(sessionId?: string): boolean +setSessionId(sessionId: string, callback: AsyncCallback<void>): void + +Sets a session ID for synchronization. Automatic synchronization is performed for multiple devices with the same session ID on a trusted network. + +**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| sessionId | string | Yes| ID of a distributed data object on a trusted network.| +| callback | AsyncCallback<void> | Yes| Asynchronous callback invoked when the session ID is successfully set.| + +**Error codes** + + For details about the error codes, see [Distributed Data Object Error Codes] (../errorcodes/errorcode-distributed-dataObject.md). + +| ID| Error Message| +| -------- | -------- | +| 15400001 | Failed to create the in-memory database.| + +**Example** + +FA model: + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +// Add g_object to the distributed network. +g_object.setSessionId(distributedObject.genSessionId(), ()=>{ + console.log("join session"); +}); +``` +Stage model: + +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +// Add g_object to the distributed network. +g_object.setSessionId(distributedObject.genSessionId(), ()=>{ + console.log("join session"); +}); +``` + +### setSessionId9+ + +setSessionId(callback: AsyncCallback<void>): void + +Exits all joined sessions. + +**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<void> | Yes| Asynchronous callback invoked when the distributed data object exits all joined sessions.| + +**Error codes** + + For details about the error codes, see [Distributed Data Object Error Codes] (../errorcodes/errorcode-distributed-dataObject.md). + +| ID| Error Message| +| -------- | -------- | +| 15400001 | Failed to create the in-memory database.| + +**Example** + +FA model: + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +// Add g_object to the distributed network. +g_object.setSessionId(distributedObject.genSessionId(), ()=>{ + console.log("join session"); +}); +// Exit the distributed network. +g_object.setSessionId(() => { + console.log("leave all lession."); +}); +``` +Stage model: + +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +// Add g_object to the distributed network. +g_object.setSessionId(distributedObject.genSessionId(), ()=>{ + console.log("join session"); +}); +// Exit the distributed network. +g_object.setSessionId(() => { + console.log("leave all lession."); +}); +``` + +### setSessionId9+ + +setSessionId(sessionId?: string): Promise<void> Sets a session ID for synchronization. Automatic synchronization is performed for multiple devices with the same session ID on a trusted network. @@ -105,38 +257,115 @@ Sets a session ID for synchronization. Automatic synchronization is performed fo | Type| Description| | -------- | -------- | -| boolean | Returns **true** if the session ID is set successfully;
returns **false** otherwise. | +| Promise<void> | Promise used to| + +**Error codes** + + For details about the error codes, see [Distributed Data Object Error Codes] (../errorcodes/errorcode-distributed-dataObject.md). + +| ID| Error Message| +| -------- | -------- | +| 15400001 | Failed to create the in-memory database.| **Example** +FA model: + ```js import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}});; +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); // Add g_object to the distributed network. -g_object.setSessionId(distributedObject.genSessionId()); -// Remove g_object from the distributed network. -g_object.setSessionId(""); +g_object.setSessionId(distributedObject.genSessionId()).then (()=>{ + console.log("join session."); + }).catch((error)=>{ + console.info("error:" + error.code + error.message); +}); +// Exit the distributed network. +g_object.setSessionId().then (()=>{ + console.log("leave all lession."); + }).catch((error)=>{ + console.info("error:" + error.code + error.message); +}); ``` +Stage model: +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +// Add g_object to the distributed network. +g_object.setSessionId(distributedObject.genSessionId()).then (()=>{ + console.info("join session."); + }).catch((error)=>{ + console.info("error:" + error.code + error.message); +}); +// Exit the distributed network. +g_object.setSessionId().then (()=>{ + console.log("leave all lession."); + }).catch((error)=>{ + console.info("error:" + error.code + error.message); +}); +``` -### on('change') +### on('change')9+ on(type: 'change', callback: Callback<{ sessionId: string, fields: Array<string> }>): void -Subscribes to the changes of this distributed data object. +Subscribes to data changes of this distributed data object. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type to subscribe to. The value is **change**, which indicates data changes.| -| callback | Callback<{ sessionId: string, fields: Array<string> }> | Yes| Callback used to return the changes of the distributed data object.
**sessionId** indicates the session ID of the distributed data object.
**fields** indicates the changed attributes of the distributed data object.| +| callback | Callback<{ sessionId: string, fields: Array<string> }> | Yes| Callback invoked to return the changes of the distributed data object.
**sessionId** indicates the session ID of the distributed data object.
**fields** indicates the changed attributes of the distributed data object.| **Example** + +FA model: + ```js -import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +import distributedObject from '@ohos.data.distributedDataObject'; +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +globalThis.changeCallback = (sessionId, changeData) => { + console.info("change" + sessionId); + if (changeData != null && changeData != undefined) { + changeData.forEach(element => { + console.info("changed !" + element + " " + g_object[element]); + }); + } +} +g_object.on("change", globalThis.changeCallback); +``` + +Stage model: + +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); globalThis.changeCallback = (sessionId, changeData) => { console.info("change" + sessionId); if (changeData != null && changeData != undefined) { @@ -148,81 +377,161 @@ globalThis.changeCallback = (sessionId, changeData) => { g_object.on("change", globalThis.changeCallback); ``` -### off('change') +### off('change')9+ off(type: 'change', callback?: Callback<{ sessionId: string, fields: Array<string> }>): void -Unsubscribes from the changes of this distributed data object. +Unsubscribes from the data changes of this distributed data object. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type to unsubscribe from. The value is **change**, which indicates data changes.| -| callback | Callback<{ sessionId: string, fields: Array<string> }> | No| Callback to be unregistered. If this parameter is not set, all data change callbacks of the object will be unregistered.
**sessionId** indicates the session ID of the distributed data object.
**fields** indicates the changed attributes of the distributed data object.| +| callback | Callback<{ sessionId: string, fields: Array<string> }> | No| Callback for data changes. If this parameter is not specified, all data change callbacks of this distributed data object will be unregistered.
**sessionId** indicates the session ID of the distributed data object.
**fields** indicates the changed attributes of the distributed data object.| **Example** + +FA model: + ```js -import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +import distributedObject from '@ohos.data.distributedDataObject'; +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +// Unregister the specified data change callback. +g_object.off("change", globalThis.changeCallback); +// Unregister all data change callbacks. +g_object.off("change"); +``` + +Stage model: + +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); // Unregister the specified data change callback. g_object.off("change", globalThis.changeCallback); // Unregister all data change callbacks. g_object.off("change"); ``` -### on('status') +### on('status')9+ on(type: 'status', callback: Callback<{ sessionId: string, networkId: string, status: 'online' | 'offline' }>): void -Subscribes to the status change (online or offline) of this distributed data object. +Subscribes to statue changes of this distributed data object. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type to subscribe to. The value is **status**, which indicates the status change (online or offline) of the distributed data object.| -| callback | Callback<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }> | Yes| Callback used to return the status change.
**sessionId**: session ID of the distributed data object.
**networkId**: object device ID, that is, **deviceId**.
**status** indicates the object status, which can be online or offline.| +| callback | Callback<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }> | Yes| Callback invoked to return the status change.
**sessionId** indicates the session ID of the distributed data object.
**networkId** indicates the object device ID, that is, **deviceId**.
**status** indicates the object status, which can be online or offline.| **Example** + +FA model: + ```js import distributedObject from '@ohos.data.distributedDataObject'; +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); globalThis.statusCallback = (sessionId, networkId, status) => { globalThis.response += "status changed " + sessionId + " " + status + " " + networkId; } -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); g_object.on("status", globalThis.statusCallback); ``` -### off('status') +Stage model: -off(type: 'status', callback?: Callback<{ sessionId: string, deviceId: string, status: 'online' | 'offline' }>): void +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +globalThis.statusCallback = (sessionId, networkId, status) => { + globalThis.response += "status changed " + sessionId + " " + status + " " + networkId; +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +g_object.on("status", globalThis.statusCallback); +``` + +### off('status')9+ +off(type: 'status', callback?: Callback<{ sessionId: string, deviceId: string, status: 'online' | 'offline' }>): void -Unsubscribes from the status change (online or offline) of this distributed data object. +Unsubscribes from the status change of this distributed data object. **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type to unsubscribe from. The value is **status**, which indicates the status change (online or offline) of the distributed data object.| -| callback | Callback<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }> | No| Callback used to return the status change. If this parameter is not specified, this API unsubscribes from all callbacks of this distributed data object.
**sessionId**: session ID of the distributed data object.
**deviceId** indicates the device ID of the distributed data object.
**status** indicates the status, which can be online or offline.| +| callback | Callback<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }> | No| Callback for status changes. If this parameter is not specified, all status change callbacks of this distributed data object will be unsubscribed from.
**sessionId** indicates the session ID of the distributed data object.
**deviceId** indicates the device ID of the distributed data object.
**status** indicates the object status, which can be online or offline.| **Example** + +FA model: + ```js import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); globalThis.statusCallback = (sessionId, networkId, status) => { globalThis.response += "status changed " + sessionId + " " + status + " " + networkId; } -// Unsubscribe from the specified status change callback for the distributed data object. +// Unregister the specified status change callback. g_object.off("status",globalThis.statusCallback); -// Unsubscribe from all status change callbacks for the distributed data object. +// Unregister all status change callbacks. +g_object.off("status"); +``` + +Stage model: + +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +globalThis.statusCallback = (sessionId, networkId, status) => { + globalThis.response += "status changed " + sessionId + " " + status + " " + networkId; +} +// Unregister the specified status change callback. +g_object.off("status",globalThis.statusCallback); +// Unregister all status change callbacks. g_object.off("status"); ``` @@ -243,18 +552,44 @@ The saved data will be released in the following cases: **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | deviceId | string | Yes| ID of the device where data is stored. The value **local** indicates the local device.| -| callback | AsyncCallback<[SaveSuccessResponse](#savesuccessresponse9)> | Yes| Callback used to return **SaveSuccessResponse**, which contains information such as session ID, version, and device ID.| +| callback | AsyncCallback<[SaveSuccessResponse](#savesuccessresponse9)> | Yes| Callback invoked to return **SaveSuccessResponse**, which contains information such as session ID, version, and device ID.| **Example** -```js + +FA model: +```ts import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false}); +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false}); g_object.setSessionId("123456"); -g_object.save("local", (status, result)=>{ - console.log("save status = " + status); +g_object.save("local", (result) => { + console.log("save callback"); + console.info("save sessionId: " + result.sessionId); + console.info("save version: " + result.version); + console.info("save deviceId: " + result.deviceId); +}); +``` + +Stage model: +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false}); +g_object.setSessionId("123456"); +g_object.save("local", (result) => { console.log("save callback"); console.info("save sessionId: " + result.sessionId); console.info("save version: " + result.version); @@ -279,6 +614,7 @@ The saved data will be released in the following cases: **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | deviceId | string | Yes| ID of the device where the data is saved. The default value is **local**, which indicates the local device. | @@ -293,14 +629,39 @@ The saved data will be released in the following cases: ```js import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false}); +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context,{name:"Amy", age:18, isVis:false}); g_object.setSessionId("123456"); -g_object.save("local").then((result)=>{ +g_object.save("local").then((result) => { console.log("save callback"); console.info("save sessionId " + result.sessionId); console.info("save version " + result.version); console.info("save deviceId " + result.deviceId); -}, ()=>{ +}, () => { + console.error("save failed"); +}); +``` + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability{ + onWindowStageCreate(windowStage){ + context = this.context + } +} +let g_object = distributedObject.create(context,{name:"Amy", age:18, isVis:false}); +g_object.setSessionId("123456"); +g_object.save("local").then((result) => { + console.log("save callback"); + console.info("save sessionId " + result.sessionId); + console.info("save version " + result.version); + console.info("save deviceId " + result.deviceId); +}, () => { console.error("save failed"); }); ``` @@ -317,18 +678,61 @@ If the object is stored on another device, the data on the local device will be **System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<[RevokeSaveSuccessResponse](#revokesavesuccessresponse9)> | No| Callback used to return **RevokeSaveSuccessResponse**, which contains the session ID.| +| callback | AsyncCallback<[RevokeSaveSuccessResponse](#revokesavesuccessresponse9)> | Yes| Callback invoked to return **RevokeSaveSuccessResponse**, which contains the session ID.| **Example** +FA model: + ```js import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false}); +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false}); g_object.setSessionId("123456"); -g_object.revokeSave((result, data) =>{ +// Save data for persistence. +g_object.save("local", (result) => { + console.log("save callback"); + console.info("save sessionId " + result.sessionId); + console.info("save version " + result.version); + console.info("save deviceId " + result.deviceId); +}); +// Delete the persistence data. +g_object.revokeSave((result) => { console.log("revokeSave callback"); + console.log("revokeSave sessionId " + result.sessionId); +}); +``` + +Stage model: + +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability { + onWindowStageCreate(windowStage) { + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false}); +g_object.setSessionId("123456"); +// Save data for persistence. +g_object.save("local", (result) => { + console.log("save callback"); + console.info("save sessionId " + result.sessionId); + console.info("save version " + result.version); + console.info("save deviceId " + result.deviceId); +}); +// Delete the persistence data. +g_object.revokeSave((result) => { + console.log("revokeSave callback"); + console.log("revokeSave sessionId " + result.sessionId); }); ``` @@ -351,14 +755,265 @@ If the object is stored on another device, the data on the local device will be **Example** -```js +FA model: + +```ts +import distributedObject from '@ohos.data.distributedDataObject'; +import featureAbility from '@ohos.ability.featureAbility'; +// Obtain the context. +let context = featureAbility.getContext(); +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false}); +g_object.setSessionId("123456"); +// Save data for persistence. +g_object.save("local").then((result) => { + console.log("save callback"); + console.info("save sessionId " + result.sessionId); + console.info("save version " + result.version); + console.info("save deviceId " + result.deviceId); +}, () => { + console.error("save failed"); +}); +// Delete the persistence data. +g_object.revokeSave().then((result) => { + console.log("revokeSave callback"); + console.log("sessionId" + result.sessionId); +}, () => { + console.error("revokeSave failed"); +}); +``` + +Stage model: + +```ts import distributedObject from '@ohos.data.distributedDataObject'; -var g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false}); +import Ability from '@ohos.application.Ability'; +// Obtain the context. +let context; +class MainAbility extends Ability { + onWindowStageCreate(windowStage) { + context = this.context + } +} +let g_object = distributedObject.create(context, {name:"Amy", age:18, isVis:false}); g_object.setSessionId("123456"); -g_object.revokeSave().then((result)=>{ +g_object.save("local").then((result) => { + console.log("save callback"); + console.info("save sessionId " + result.sessionId); + console.info("save version " + result.version); + console.info("save deviceId " + result.deviceId); +}, () => { + console.error("save failed"); +}); + +// Delete the persistence data. +g_object.revokeSave().then((result) => { console.log("revokeSave callback"); console.log("sessionId" + result.sessionId); -}, ()=>{ +}, () => { console.error("revokeSave failed"); }); ``` + +## distributedObject.createDistributedObject(deprecated) + +createDistributedObject(source: object): DistributedObject + + +Creates a distributed data object. + +> **NOTE**
+> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use **distributedObject.create**. + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| source | object | Yes| Attributes of the distributed data object.| + +**Return value** + +| Type| Description| +| -------- | -------- | +| [DistributedObject](#distributedobjectdeprecated) | Distributed data object created.| + +**Example** + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +// Create a distributed data object, which contains attributes of the string, number, boolean, and object types. +let g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +``` + +## DistributedObject(deprecated) + +Provides APIs for managing a distributed data object. + +### setSessionId(deprecated) + +setSessionId(sessionId?: string): boolean + +Sets a session ID for synchronization. Automatic synchronization is performed for multiple devices with the same session ID on a trusted network. + +> **NOTE**
+> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [setSessionId](#setsessionid9). + +**Required permissions**: ohos.permission.DISTRIBUTED_DATASYNC + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| sessionId | string | No| ID of a distributed data object on a trusted network. To remove a distributed data object from the network, set this parameter to "" or leave it empty.| + +**Return value** + +| Type| Description| +| -------- | -------- | +| boolean | Returns **true** if the session ID is set successfully;
returns **false** otherwise. | + +**Example** + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +let g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}});; +// Add g_object to the distributed network. +g_object.setSessionId(distributedObject.genSessionId()); +// Remove g_object from the distributed network. +g_object.setSessionId(""); +``` + +### on('change')(deprecated) + +on(type: 'change', callback: Callback<{ sessionId: string, fields: Array<string> }>): void + +Subscribes to data changes of this distributed data object. + +> **NOTE**
+> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [on('change')](#onchange9). + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Event type to subscribe to. The value is **change**, which indicates data changes.| +| callback | Callback<{ sessionId: string, fields: Array<string> }> | Yes| Callback invoked to return the changes of the distributed data object.
**sessionId** indicates the session ID of the distributed data object.
**fields** indicates the changed attributes of the distributed data object.| + +**Example** + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +let g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +globalThis.changeCallback = (sessionId, changeData) => { + console.info("change" + sessionId); + if (changeData != null && changeData != undefined) { + changeData.forEach(element => { + console.info("changed !" + element + " " + g_object[element]); + }); + } +} +g_object.on("change", globalThis.changeCallback); +``` + +### off('change')(deprecated) + +off(type: 'change', callback?: Callback<{ sessionId: string, fields: Array<string> }>): void + +Unsubscribes from the data changes of this distributed data object. + +> **NOTE**
+> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [off('change')](#offchange9). + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Event type to unsubscribe from. The value is **change**, which indicates data changes. | +| callback | Callback<{ sessionId: string, fields: Array<string> }> | No| Callback for data changes. If this parameter is not specified, all data change callbacks of this distributed data object will be unregistered.
**sessionId** indicates the session ID of the distributed data object.
**fields** indicates the changed attributes of the distributed data object.| + + +**Example** + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +let g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +// Unregister the specified data change callback. +g_object.off("change", globalThis.changeCallback); +// Unregister all data change callbacks. +g_object.off("change"); +``` + +### on('status')(deprecated) + +on(type: 'status', callback: Callback<{ sessionId: string, networkId: string, status: 'online' | 'offline' }>): void + +Subscribes to status changes of this distributed data object. + +> **NOTE**
+> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [on('status')](#onstatus9). + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Event type to subscribe to. The value is **status**, which indicates the status change (online or offline) of the distributed data object.| +| callback | Callback<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }> | Yes| Callback invoked to return the status change.
**sessionId** indicates the session ID of the distributed data object.
**networkId** indicates the object device ID, that is, **deviceId**.
**status** indicates the object status, which can be online or offline.| + +**Example** + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +globalThis.statusCallback = (sessionId, networkId, status) => { + globalThis.response += "status changed " + sessionId + " " + status + " " + networkId; +} +let g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +g_object.on("status", globalThis.statusCallback); +``` + +### off('status')(deprecated) + +off(type: 'status', callback?: Callback<{ sessionId: string, deviceId: string, status: 'online' | 'offline' }>): void + +Unsubscribes from the status change of this distributed data object. + +> **NOTE**
+> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [off('status')](#offstatus9) instead. + +**System capability**: SystemCapability.DistributedDataManager.DataObject.DistributedObject + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Event type to unsubscribe from. The value is **status**, which indicates the status change (online or offline) of the distributed data object.| +| callback | Callback<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }> | No| Callback for status changes. If this parameter is not specified, all status change callbacks of this distributed data object will be unsubscribed from.
**sessionId** indicates the session ID of the distributed data object.
**deviceId** indicates the device ID of the distributed data object.
**status** indicates the object status, which can be online or offline.| + + +**Example** + +```js +import distributedObject from '@ohos.data.distributedDataObject'; +let g_object = distributedObject.createDistributedObject({name:"Amy", age:18, isVis:false, parent:{mother:"jack mom",father:"jack Dad"}}); +globalThis.statusCallback = (sessionId, networkId, status) => { + globalThis.response += "status changed " + sessionId + " " + status + " " + networkId; +} +// Unregister the specified status change callback. +g_object.off("status",globalThis.statusCallback); +// Unregister all status change callbacks. +g_object.off("status"); +``` 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 3f879c77b9ef5cc9427ff5ac74b5758769ddb70f..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 @@ -# Environment +# @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..333b0621fd078620e501d90c2c93d908ae840479 --- /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-fileio.md b/en/application-dev/reference/apis/js-apis-fileio.md index ef56fa3d0c876f57b4a38c3dd175a16566fc4dad..5287fd266fe6f903e650c82619c0d0ceee4dcd24 100644 --- a/en/application-dev/reference/apis/js-apis-fileio.md +++ b/en/application-dev/reference/apis/js-apis-fileio.md @@ -2,9 +2,10 @@ The **fileio** module provides APIs for file storage and management, including basic file management, directory management, file information statistics, and stream read and write. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. - +> The APIs provided by this module are deprecated since API version 9. You are advised to use [@ohos.file.fs](./js-apis-file-fs.md). ## Modules to Import @@ -21,6 +22,7 @@ Stage Model ```js import Ability from '@ohos.application.Ability'; + class MainAbility extends Ability { onWindowStageCreate(windowStage) { let context = this.context; @@ -29,19 +31,20 @@ class MainAbility extends Ability { } ``` - For details about how to obtain the stage model context, see [Stage Model](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-ability-context.md#abilitycontext). + For details about how to obtain the stage model context, see [AbilityContext](js-apis-ability-context.md#abilitycontext). 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 context of the FA model, see [FA Model](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-Context.md#context). + For details about how to obtain the FA model context, see [Contex](js-apis-inner-app-context.md#context). ## fileio.stat @@ -67,10 +70,10 @@ Obtains file information. This API uses a promise to return the result. ```js let filePath = pathDir + "test.txt"; - fileio.stat(filePath).then(function(stat){ - console.info("Got file info:"+ JSON.stringify(stat)); - }).catch(function(err){ - console.info("Failed to get file info. Error:"+ err); + fileio.stat(filePath).then(function (stat) { + console.info("getFileInfo succeed, the size of file is " + stat.size); + }).catch(function (err) { + console.info("getFileInfo failed with error:" + err); }); ``` @@ -152,10 +155,10 @@ Opens a file directory. This API uses a promise to return the result. ```js let dirPath = pathDir + "/testDir"; - fileio.opendir(dirPath).then(function(dir){ - console.info("Directory opened:"+ JSON.stringify(dir)); - }).catch(function(err){ - console.info("Failed to open the directory. Error:"+ err); + fileio.opendir(dirPath).then(function (dir) { + console.info("opendir succeed"); + }).catch(function (err) { + console.info("opendir failed with error:" + err); }); ``` @@ -240,17 +243,17 @@ Checks whether the current process can access a file. This API uses a promise to ```js let filePath = pathDir + "/test.txt"; - fileio.access(filePath).then(function() { + fileio.access(filePath).then(function () { console.info("Access successful"); - }).catch(function(err){ - console.info("Access failed. Error:"+ err); + }).catch(function (err) { + console.info("access failed with error:" + err); }); ``` ## fileio.access -access(path: string, mode: number, callback: AsyncCallback<void>): void +access(path: string, mode?: number, callback: AsyncCallback<void>): void Checks whether the current process can access a file. This API uses an asynchronous callback to return the result. @@ -296,7 +299,7 @@ Synchronously checks whether the current process can access the specified file. try { fileio.accessSync(filePath); } catch(err) { - console.info("accessSync failed with error:"+ err); + console.info("accessSync failed with error:" + err); } ``` @@ -326,10 +329,10 @@ Closes a file. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); - fileio.close(fd).then(function(){ + fileio.close(fd).then(function () { console.info("File closed"); - }).catch(function(err){ - console.info("Failed to close the file. Error:"+ err); + }).catch(function (err) { + console.info("close file failed with error:" + err); }); ``` @@ -385,7 +388,7 @@ Synchronously closes a file. ## fileio.copyFile -copyFile(src: string | number, dest: string | number, mode?: number): Promise<void> +copyFile(src: string|number, dest: string|number, mode?: number): Promise<void> Copies a file. This API uses a promise to return the result. @@ -395,8 +398,8 @@ Copies a file. This API uses a promise to return the result. | Name | Type | Mandatory | Description | | ---- | -------------------------- | ---- | ---------------------------------------- | - | src | string \| number | Yes | Path or file descriptor of the file to copy. | - | dest | string \| number | Yes | Path or file descriptor of the new file. | + | src | string\|number | Yes | Path or file descriptor of the file to copy. | + | dest | string\|number | Yes | Path or file descriptor of the new file. | | mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.| **Return value** @@ -410,17 +413,17 @@ Copies a file. This API uses a promise to return the result. ```js let srcPath = pathDir + "srcDir/test.txt"; let dstPath = pathDir + "dstDir/test.txt"; - fileio.copyFile(srcPath, dstPath).then(function(){ + fileio.copyFile(srcPath, dstPath).then(function () { console.info("File copied"); - }).catch(function(err){ - console.info("Failed to copy the file. Error:"+ err); + }).catch(function (err) { + console.info("copyFile failed with error:" + err); }); ``` ## fileio.copyFile -copyFile(src: string | number, dest: string | number, mode: number, callback: AsyncCallback<void>): void +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. @@ -430,8 +433,8 @@ Copies a file. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory | Description | | -------- | -------------------------- | ---- | ---------------------------------------- | - | src | string \| number | Yes | Path or file descriptor of the file to copy. | - | dest | string \| number | Yes | Path or file descriptor of the new file. | + | src | string\|number | Yes | Path or file descriptor of the file to copy. | + | dest | string\|number | Yes | Path or file descriptor of the new file. | | mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely 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. | @@ -448,7 +451,7 @@ Copies a file. This API uses an asynchronous callback to return the result. ## fileio.copyFileSync -copyFileSync(src: string | number, dest: string | number, mode?: number): void +copyFileSync(src: string|number, dest: string|number, mode?: number): void Synchronously copies a file. @@ -458,8 +461,8 @@ Synchronously copies a file. | Name | Type | Mandatory | Description | | ---- | -------------------------- | ---- | ---------------------------------------- | - | src | string \| number | Yes | Path or file descriptor of the file to copy. | - | dest | string \| number | Yes | Path or file descriptor of the new file. | + | src | string\|number | Yes | Path or file descriptor of the file to copy. | + | dest | string\|number | Yes | Path or file descriptor of the new file. | | mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.| **Example** @@ -496,10 +499,10 @@ Creates a directory. This API uses a promise to return the result. ```js let dirPath = pathDir + '/testDir'; - fileio.mkdir(dirPath).then(function() { + fileio.mkdir(dirPath).then(function () { console.info("Directory created"); - }).catch(function (error){ - console.info("Failed to create the directory. Error:"+ error); + }).catch(function (error) { + console.info("mkdir failed with error:" + error); }); ``` @@ -524,7 +527,7 @@ Creates a directory. This API uses an asynchronous callback to return the result ```js let dirPath = pathDir + '/testDir'; - fileio.mkdir(dirPath, function(err) { + fileio.mkdir(dirPath, function (err) { console.info("Directory created"); }); ``` @@ -579,10 +582,10 @@ Opens a file. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; - fileio.open(filePath, 0o1, 0o0200).then(function(number){ + fileio.open(filePath, 0o1, 0o0200).then(function (number) { console.info("File opened"); - }).catch(function(err){ - console.info("Failed to open the file. Error:"+ err); + }).catch(function (err) { + console.info("open file failed with error:" + err); }); ``` @@ -602,13 +605,13 @@ Opens a file. This API uses an asynchronous callback to return the result. | path | string | Yes | Application sandbox path of the file. | | flags | number | No | Option for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **0o0**: Open the file in read-only mode.
- **0o1**: Open the file in write-only mode.
- **0o2**: Open the file in read/write mode.
In addition, you can specify the following options, separated using a bitwise OR operator (|). By default, no additional option is specified.
- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**.
- **0o200**: If **0o100** is added and the file already exists, throw an exception.
- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file).
- **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.
- **0o200000**: If **path** does not point to a directory, throw an exception.

- **0o400000**: If **path** points to a symbolic link, throw an exception.
- **0o4010000**: Open the file in synchronous I/O mode.| | mode | number | No | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**.
- **0o666**: The owner, user group, and other users have the read and write permissions on the file.
- **0o700**: The owner has the read, write, and execute permissions.
-  **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.| -| callback | AsyncCallback <void> | Yes | Callback invoked when the file is open asynchronously. | +| callback | AsyncCallback<number> | Yes | Callback invoked when the file is open asynchronously. | **Example** ```js let filePath = pathDir + "/test.txt"; - fileio.open(filePath, 0, function(err, fd) { + fileio.open(filePath, 0, function (err, fd) { // Do something. }); ``` @@ -655,11 +658,7 @@ Synchronously opens a file. ## fileio.read -read(fd: number, buffer: ArrayBuffer, options?: { - offset?: number; - length?: number; - position?: number; -}): Promise<ReadOut> +read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise<ReadOut> Reads data from a file. This API uses a promise to return the result. @@ -685,22 +684,18 @@ Reads data from a file. This API uses a promise to return the result. let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath, 0o2); let buf = new ArrayBuffer(4096); - fileio.read(fd, buf).then(function(readOut){ + fileio.read(fd, buf).then(function (readOut) { console.info("Read file data successfully"); console.log(String.fromCharCode.apply(null, new Uint8Array(readOut.buffer))); - }).catch(function(err){ - console.info("Failed to read file data. Error:"+ err); + }).catch(function (err) { + console.info("read file data failed with error:" + err); }); ``` ## fileio.read -read(fd: number, buffer: ArrayBuffer, options: { - offset?: number; - length?: number; - position?: number; -}, callback: AsyncCallback<ReadOut>): void +read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback<ReadOut>): void Reads data from a file. This API uses an asynchronous callback to return the result. @@ -732,11 +727,7 @@ Reads data from a file. This API uses an asynchronous callback to return the res ## fileio.readSync -readSync(fd: number, buffer: ArrayBuffer, options?: { - offset?: number; - length?: number; - position?: number; -}): number +readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): number Synchronously reads data from a file. @@ -790,10 +781,10 @@ Deletes a directory. This API uses a promise to return the result. ```js let dirPath = pathDir + '/testDir'; - fileio.rmdir(dirPath).then(function() { + fileio.rmdir(dirPath).then(function () { console.info("Directory deleted"); - }).catch(function(err){ - console.info("Failed to delete the directory. Error:"+ err); + }).catch(function (err) { + console.info("rmdir failed with error:" + err); }); ``` @@ -817,7 +808,7 @@ Deletes a directory. This API uses an asynchronous callback to return the result ```js let dirPath = pathDir + '/testDir'; - fileio.rmdir(dirPath, function(err){ + fileio.rmdir(dirPath, function (err) { // Do something. console.info("Directory deleted"); }); @@ -870,10 +861,10 @@ Deletes a file. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; - fileio.unlink(filePath).then(function(){ + fileio.unlink(filePath).then(function () { console.info("File deleted"); - }).catch(function(error){ - console.info("Failed to delete the file. Error:"+ error); + }).catch(function (error) { + console.info("remove file failed with error:" + error); }); ``` @@ -897,7 +888,7 @@ Deletes a file. This API uses an asynchronous callback to return the result. ```js let filePath = pathDir + "/test.txt"; - fileio.unlink(filePath, function(err) { + fileio.unlink(filePath, function (err) { console.info("File deleted"); }); ``` @@ -927,12 +918,7 @@ Synchronously deletes a file. ## fileio.write -write(fd: number, buffer: ArrayBuffer | string, options?: { - offset?: number; - length?: number; - position?: number; - encoding?: string; -}): Promise<number> +write(fd: number, buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number> Writes data into a file. This API uses a promise to return the result. @@ -943,7 +929,7 @@ Writes data into a file. This API uses a promise to return the result. | Name | Type | Mandatory | Description | | ------- | ------------------------------- | ---- | ---------------------------------------- | | fd | number | Yes | File descriptor of the file to write. | - | buffer | ArrayBuffer \| string | Yes | Data to write. It can be a string or data from a buffer. | + | 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): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size| **Return value** @@ -957,22 +943,17 @@ Writes data into a file. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath, 0o100 | 0o2, 0o666); - fileio.write(fd, "hello, world").then(function(number){ - console.info("Data written to the file. Size is:"+ number); - }).catch(function(err){ - console.info("Failed to write data to the file. Error:"+ err); + fileio.write(fd, "hello, world").then(function (number) { + console.info("write data to file succeed and size is:" + number); + }).catch(function (err) { + console.info("write data to file failed with error:" + err); }); ``` ## fileio.write -write(fd: number, buffer: ArrayBuffer | string, options: { - offset?: number; - length?: number; - position?: number; - encoding?: string; -}, callback: AsyncCallback<number>): void +write(fd: number, buffer: ArrayBuffer|string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void Writes data into a file. This API uses an asynchronous callback to return the result. @@ -983,7 +964,7 @@ Writes data into a file. This API uses an asynchronous callback to return the re | Name | Type | Mandatory | Description | | -------- | ------------------------------- | ---- | ---------------------------------------- | | fd | number | Yes | File descriptor of the file to write. | - | buffer | ArrayBuffer \| string | Yes | Data to write. It can be a string or data from a buffer. | + | 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): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size| | callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. | @@ -994,7 +975,7 @@ Writes data into a file. This API uses an asynchronous callback to return the re let fd = fileio.openSync(filePath, 0o100 | 0o2, 0o666); fileio.write(fd, "hello, world", function (err, bytesWritten) { if (bytesWritten) { - console.info("Data written to the file. Size is:"+ bytesWritten); + console.info("write data to file succeed and size is:" + bytesWritten); } }); ``` @@ -1002,12 +983,7 @@ Writes data into a file. This API uses an asynchronous callback to return the re ## fileio.writeSync -writeSync(fd: number, buffer: ArrayBuffer | string, options?: { - offset?: number; - length?: number; - position?: number; - encoding?: string; -}): number +writeSync(fd: number, buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number Synchronously writes data into a file. @@ -1018,7 +994,7 @@ Synchronously writes data into a file. | Name | Type | Mandatory | Description | | ------- | ------------------------------- | ---- | ---------------------------------------- | | fd | number | Yes | File descriptor of the file to write. | - | buffer | ArrayBuffer \| string | Yes | Data to write. It can be a string or data from a buffer. | + | 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): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size| **Return value** @@ -1061,10 +1037,10 @@ Calculates the hash value of a file. This API uses a promise to return the resul ```js let filePath = pathDir + "/test.txt"; - fileio.hash(filePath, "sha256").then(function(str){ - console.info("Calculated file hash:"+ str); - }).catch(function(err){ - console.info("Failed to calculate the file hash. Error:"+ err); + fileio.hash(filePath, "sha256").then(function (str) { + console.info("calculate file hash succeed:" + str); + }).catch(function (err) { + console.info("calculate file hash failed with error:" + err); }); ``` @@ -1089,9 +1065,9 @@ Calculates the hash value of a file. This API uses an asynchronous callback to r ```js let filePath = pathDir + "/test.txt"; - fileio.hash(filePath, "sha256", function(err, hashStr) { + fileio.hash(filePath, "sha256", function (err, hashStr) { if (hashStr) { - console.info("Calculated file hash:"+ hashStr); + console.info("calculate file hash succeed:" + hashStr); } }); ``` @@ -1122,10 +1098,10 @@ Changes file permissions. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; - fileio.chmod(filePath, 0o700).then(function() { + fileio.chmod(filePath, 0o700).then(function () { console.info("File permissions changed"); - }).catch(function(err){ - console.info("Failed to change file permissions. Error:"+ err); + }).catch(function (err) { + console.info("chmod failed with error:" + err); }); ``` @@ -1191,7 +1167,7 @@ Obtains file information based on the file descriptor. This API uses a promise t | Name | Type | Mandatory | Description | | ---- | ------ | ---- | ------------ | - | fd | number | Yes | File descriptor of the target file.| + | fd | number | Yes | Descriptor of the target file.| **Return value** @@ -1204,10 +1180,10 @@ Obtains file information based on the file descriptor. This API uses a promise t ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); - fileio.fstat(fd).then(function(stat){ - console.info("Obtained file info:"+ JSON.stringify(stat)); - }).catch(function(err){ - console.info("Failed to obtain file info. Error:"+ err); + fileio.fstat(fd).then(function (stat) { + console.info("fstat succeed, the size of file is " + stat.size); + }).catch(function (err) { + console.info("fstat failed with error:" + err); }); ``` @@ -1293,17 +1269,17 @@ Truncates a file based on the file descriptor. This API uses a promise to return ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); - fileio.ftruncate(fd, 5).then(function(err) { + fileio.ftruncate(fd, 5).then(function (err) { console.info("File truncated"); - }).catch(function(err){ - console.info("Failed to truncate the file. Error:"+ err); + }).catch(function (err) { + console.info("truncate file failed with error:" + err); }); ``` ## fileio.ftruncate7+ -ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void +ftruncate(fd: number, len?: number, callback: AsyncCallback<void>): void Truncates a file based on the file descriptor. This API uses an asynchronous callback to return the result. @@ -1323,7 +1299,7 @@ Truncates a file based on the file descriptor. This API uses an asynchronous cal let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); let len = 5; - fileio.ftruncate(fd, 5, function(err){ + fileio.ftruncate(fd, 5, function (err) { // Do something. }); ``` @@ -1366,7 +1342,7 @@ Truncates a file based on the file path. This API uses a promise to return the r | Name| Type | Mandatory| Description | | ------ | ------ | ---- | -------------------------------- | -| path | string | Yes | Application sandbox path of the file to truncate.| +| path | string | Yes | Application sandbox path of the file to truncate. | | len | number | No | File length, in bytes, after truncation.| **Return value** @@ -1380,17 +1356,17 @@ Truncates a file based on the file path. This API uses a promise to return the r ```js let filePath = pathDir + "/test.txt"; let len = 5; - fileio.truncate(filePath, len).then(function(){ + fileio.truncate(filePath, len).then(function () { console.info("File truncated"); - }).catch(function(err){ - console.info("Failed to truncate the file. Error:"+ err); + }).catch(function (err) { + console.info("truncate file failed with error:" + err); }); ``` ## fileio.truncate7+ -truncate(path: string, len: number, callback: AsyncCallback<void>): void +truncate(path: string, len?: number, callback: AsyncCallback<void>): void Truncates a file based on the file path. This API uses an asynchronous callback to return the result. @@ -1409,7 +1385,7 @@ Truncates a file based on the file path. This API uses an asynchronous callback ```js let filePath = pathDir + "/test.txt"; let len = 5; - fileio.truncate(filePath, len, function(err){ + fileio.truncate(filePath, len, function (err) { // Do something. }); ``` @@ -1441,11 +1417,7 @@ Synchronously truncates a file based on the file path. ## fileio.readText7+ -readText(filePath: string, options?: { - position?: number; - length?: number; - encoding?: string; -}): Promise<string> +readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise<string> Reads the text content of a file. This API uses a promise to return the result. @@ -1468,21 +1440,17 @@ Reads the text content of a file. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; - fileio.readText(filePath).then(function(str) { - console.info("Read text successfully:"+ str); - }).catch(function(err){ - console.info("Failed to read the text. Error:"+ err); + fileio.readText(filePath).then(function (str) { + console.info("readText succeed:" + str); + }).catch(function (err) { + console.info("readText failed with error:" + err); }); ``` ## fileio.readText7+ -readText(filePath: string, options: { - position?: number; - length?: number; - encoding?: string; -}, callback: AsyncCallback<string>): void +readText(filePath: string, options: { position?: 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. @@ -1500,7 +1468,7 @@ Reads the text content of a file. This API uses an asynchronous callback to retu ```js let filePath = pathDir + "/test.txt"; - fileio.readText(filePath, { position: 1, encoding: 'UTF-8' }, function(err, str){ + fileio.readText(filePath, { position: 1, encoding: 'UTF-8' }, function (err, str) { // Do something. }); ``` @@ -1508,11 +1476,7 @@ Reads the text content of a file. This API uses an asynchronous callback to retu ## fileio.readTextSync7+ -readTextSync(filePath: string, options?: { - position?: number; - length?: number; - encoding?: string; -}): string +readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string Synchronously reads the text of a file. @@ -1563,10 +1527,10 @@ Obtains link information. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; - fileio.lstat(filePath).then(function(stat){ - console.info("Get link info:"+ JSON.stringify(stat)); - }).catch(function(err){ - console.info("Failed to obtain link info. Error:"+ err); + fileio.lstat(filePath).then(function (stat) { + console.info("get link status succeed, the size of file is" + stat.size); + }).catch(function (err) { + console.info("get link status failed with error:" + err); }); ``` @@ -1637,7 +1601,7 @@ Renames a file. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------- | ------ | ---- | ---------------------------- | | oldPath | string | Yes | Application sandbox path of the file to rename.| -| newPath | String | Yes | Application sandbox path of the file renamed. | +| newPath | string | Yes | Application sandbox path of the file renamed. | **Return value** @@ -1650,10 +1614,10 @@ Renames a file. This API uses a promise to return the result. ```js let srcFile = pathDir + "/test.txt"; let dstFile = pathDir + '/new.txt'; - fileio.rename(srcFile, dstFile).then(function() { + fileio.rename(srcFile, dstFile).then(function () { console.info("File renamed"); - }).catch(function(err){ - console.info("Failed to rename the file. Error:"+ err); + }).catch(function (err) { + console.info("rename failed with error:" + err); }); ``` @@ -1671,15 +1635,15 @@ Renames a file. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ---------------------------- | | oldPath | string | Yes | Application sandbox path of the file to rename.| -| newPath | String | Yes | Application sandbox path of the file renamed. | -| Callback | AsyncCallback<void> | Yes | Callback invoked when the file is asynchronously renamed. | +| newPath | string | Yes | Application sandbox path of the file renamed. | +| callback | AsyncCallback<void> | Yes | Callback invoked when the file is asynchronously renamed. | **Example** ```js let srcFile = pathDir + "/test.txt"; let dstFile = pathDir + '/new.txt'; - fileio.rename(srcFile, dstFile, function(err){ + fileio.rename(srcFile, dstFile, function (err) { }); ``` @@ -1697,7 +1661,7 @@ Synchronously renames a file. | Name | Type | Mandatory| Description | | ------- | ------ | ---- | ---------------------------- | | oldPath | string | Yes | Application sandbox path of the file to rename.| -| newPath | String | Yes | Application sandbox path of the file renamed. | +| newPath | string | Yes | Application sandbox path of the file renamed. | **Example** @@ -1733,10 +1697,10 @@ Flushes data of a file to disk. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); - fileio.fsync(fd).then(function(){ + fileio.fsync(fd).then(function () { console.info("Data flushed"); - }).catch(function(err){ - console.info("Failed to flush data. Error:"+ err); + }).catch(function (err) { + console.info("sync data failed with error:" + err); }); ``` @@ -1761,7 +1725,7 @@ Flushes data of a file to disk. This API uses an asynchronous callback to return ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); - fileio.fsync(fd, function(err){ + fileio.fsync(fd, function (err) { // Do something. }); ``` @@ -1815,10 +1779,10 @@ Flushes data of a file to disk. This API uses a promise to return the result. ** ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); - fileio.fdatasync(fd).then(function(err) { + fileio.fdatasync(fd).then(function (err) { console.info("Data flushed"); - }).catch(function(err){ - console.info("Failed to flush data. Error:"+ err); + }).catch(function (err) { + console.info("sync data failed with error:" + err); }); ``` @@ -1836,7 +1800,7 @@ Flushes data of a file to disk. This API uses an asynchronous callback to return | Name | Type | Mandatory | Description | | -------- | ------------------------------- | ---- | ----------------- | | fd | number | Yes | File descriptor of the file to synchronize. | - | callback | AsyncCallback <void> | Yes | Callback invoked when the file data is synchronized in asynchronous mode.| + | callback | AsyncCallback<void> | Yes | Callback invoked when the file data is synchronized in asynchronous mode.| **Example** @@ -1898,10 +1862,10 @@ Creates a symbolic link based on the file path. This API uses a promise to retur ```js let srcFile = pathDir + "/test.txt"; let dstFile = pathDir + '/test'; - fileio.symlink(srcFile, dstFile).then(function() { + fileio.symlink(srcFile, dstFile).then(function () { console.info("Symbolic link created"); - }).catch(function(err){ - console.info("Failed to create the symbolic link. Error:"+ err); + }).catch(function (err) { + console.info("symlink failed with error:" + err); }); ``` @@ -1984,10 +1948,10 @@ Changes the file owner based on the file path. This API uses a promise to return ```js let filePath = pathDir + "/test.txt"; let stat = fileio.statSync(filePath); - fileio.chown(filePath, stat.uid, stat.gid).then(function(){ + fileio.chown(filePath, stat.uid, stat.gid).then(function () { console.info("File owner changed"); - }).catch(function(err){ - console.info("Failed to change the file owner. Error:"+ err); + }).catch(function (err) { + console.info("chown failed with error:" + err); }); ``` @@ -2014,7 +1978,7 @@ Changes the file owner based on the file path. This API uses an asynchronous cal ```js let filePath = pathDir + "/test.txt"; let stat = fileio.statSync(filePath) - fileio.chown(filePath, stat.uid, stat.gid, function (err){ + fileio.chown(filePath, stat.uid, stat.gid, function (err) { // Do something. }); ``` @@ -2068,10 +2032,10 @@ Creates a temporary directory. This API uses a promise to return the result. **Example** ```js - fileio.mkdtemp(pathDir + "/XXXXXX").then(function(pathDir){ - console.info("mkdtemp succeed:"+ pathDir); - }).catch(function(err){ - console.info("Failed to create the temporary directory. Error:"+ err); + fileio.mkdtemp(pathDir + "/XXXXXX").then(function (pathDir) { + console.info("mkdtemp succeed:" + pathDir); + }).catch(function (err) { + console.info("mkdtemp failed with error:" + err); }); ``` @@ -2154,10 +2118,10 @@ Changes file permissions based on the file descriptor. This API uses a promise t let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); let mode = 0o700; - fileio.fchmod(fd, mode).then(function() { + fileio.fchmod(fd, mode).then(function () { console.info("File permissions changed"); - }).catch(function(err){ - console.info("Failed to change file permissions. Error:"+ err); + }).catch(function (err) { + console.info("chmod failed with error:" + err); }); ``` @@ -2176,7 +2140,7 @@ Changes file permissions based on the file descriptor. This API uses an asynchro | -------- | ------------------------------- | ---- | ---------------------------------------- | | fd | number | Yes | File descriptor of the target file. | | mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
-  **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.| - | callback | AsyncCallback <void> | Yes | Callback invoked when the file permissions are changed asynchronously. | + | callback | AsyncCallback<void> | Yes | Callback invoked when the file permissions are changed asynchronously. | **Example** @@ -2240,10 +2204,10 @@ Opens a file stream based on the file path. This API uses a promise to return th ```js let filePath = pathDir + "/test.txt"; - fileio.createStream(filePath, "r+").then(function(stream){ + fileio.createStream(filePath, "r+").then(function (stream) { console.info("Stream created"); - }).catch(function(err){ - console.info("Failed to create the stream. Error:"+ err); + }).catch(function (err) { + console.info("createStream failed with error:" + err); }); ``` @@ -2268,7 +2232,7 @@ Opens a file stream based on the file path. This API uses an asynchronous callba ```js let filePath = pathDir + "/test.txt"; - fileio.createStream(filePath, "r+", function(err, stream){ + fileio.createStream(filePath, "r+", function (err, stream) { // Do something. }); ``` @@ -2329,10 +2293,10 @@ Opens a file stream based on the file descriptor. This API uses a promise to ret ```js let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); - fileio.fdopenStream(fd, "r+").then(function(stream){ + fileio.fdopenStream(fd, "r+").then(function (stream) { console.info("Stream opened"); - }).catch(function(err){ - console.info("Failed to open the stream. Error:"+ err); + }).catch(function (err) { + console.info("openStream failed with error:" + err); }); ``` @@ -2351,7 +2315,7 @@ Opens a file stream based on the file descriptor. This API uses an asynchronous | -------- | ---------------------------------------- | ---- | ---------------------------------------- | | fd | number | Yes | File descriptor of the target 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. | + | callback | AsyncCallback<[Stream](#stream)> | Yes | Callback invoked when the stream is open asynchronously. | **Example** @@ -2422,10 +2386,10 @@ Changes the file owner based on the file descriptor. This API uses a promise to let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); let stat = fileio.statSync(filePath); - fileio.fchown(fd, stat.uid, stat.gid).then(function() { + fileio.fchown(fd, stat.uid, stat.gid).then(function () { console.info("File owner changed"); - }).catch(function(err){ - console.info("Failed to change the file owner. Error:"+ err); + }).catch(function (err) { + console.info("chown failed with error:" + err); }); ``` @@ -2453,7 +2417,7 @@ Changes the file owner based on the file descriptor. This API uses an asynchrono let filePath = pathDir + "/test.txt"; let fd = fileio.openSync(filePath); let stat = fileio.statSync(filePath); - fileio.fchown(fd, stat.uid, stat.gid, function (err){ + fileio.fchown(fd, stat.uid, stat.gid, function (err) { // Do something. }); ``` @@ -2512,10 +2476,10 @@ Changes the file owner (owner of the symbolic link, not the file referred to by ```js let filePath = pathDir + "/test.txt"; let stat = fileio.statSync(filePath); - fileio.lchown(filePath, stat.uid, stat.gid).then(function() { + fileio.lchown(filePath, stat.uid, stat.gid).then(function () { console.info("File owner changed"); - }).catch(function(err){ - console.info("Failed to change the file owner. Error:"+ err); + }).catch(function (err) { + console.info("chown failed with error:" + err); }); ``` @@ -2542,7 +2506,7 @@ Changes the file owner (owner of the symbolic link, not the file referred to by ```js let filePath = pathDir + "/test.txt"; let stat = fileio.statSync(filePath); - fileio.lchown(filePath, stat.uid, stat.gid, function (err){ + fileio.lchown(filePath, stat.uid, stat.gid, function (err) { // Do something. }); ``` @@ -2586,8 +2550,8 @@ Listens for file or directory changes. This API uses an asynchronous callback to | Name | Type | Mandatory| Description | | -------- | --------------------------------- | ---- | ------------------------------------------------------------ | | filePath | string | Yes | Application sandbox path of the file. | -| events | Number | Yes | - **1**: The file or directory is renamed.
- **2**: The file or directory is modified.
- **3**: The file or directory is modified and renamed.| -| callback | AsyncCallback<number > | Yes | Called each time a change is detected. | +| events | number | Yes | - **1**: The file or directory is renamed.
- **2**: The file or directory is modified.
- **3**: The file or directory is modified and renamed.| +| callback | AsyncCallback<number> | Yes | Called each time a change is detected. | **Return value** @@ -2599,8 +2563,8 @@ Listens for file or directory changes. This API uses an asynchronous callback to ```js let filePath = pathDir +"/test.txt"; - fileio.createWatcher(filePath, 1, function(number){ - console.info("Monitoring times: "+number); + fileio.createWatcher(filePath, 1, function (number) { + console.info("Monitoring times: " +number); }); ``` @@ -2616,7 +2580,7 @@ Obtains the file read result. This class applies only to the **read()** method. | --------- | ---------- | ---- | ---- | ----------------- | | bytesRead | number | Yes | Yes | Length of the data read. | | offset | number | Yes | Yes | Position of the buffer to which the data will be read in reference to the start address of the buffer.| -| buffer | ArrayBufer | Yes | Yes | Buffer for storing the data read. | +| buffer | ArrayBuffer | Yes | Yes | Buffer for storing the data read. | ## Stat @@ -2631,7 +2595,7 @@ Provides detailed file information. Before calling a method of the **Stat** clas | ------ | ------ | ---- | ---- | ---------------------------------------- | | dev | number | Yes | No | Major device number. | | ino | number | Yes | No | File ID. Different files on the same device have different **ino**s. | -| mode | number | Yes | No | File type and permissions. The first four bits indicate the file type, and the last 12 bits indicate the permissions. The bit fields are described as follows:
- **0o170000**: mask used to obtain the file type.
- **0o140000**: The file is a socket.
- **0o120000**: The file is a symbolic link.
- **0o100000**: The file is a regular file.
- **0o060000**: The file is a block device.
- **0o040000**: The file is a directory.
- **0o020000**: The file is a character device.
- **0o010000**: The file is a named pipe (FIFO).
- **0o0700**: mask used to obtain the owner permissions.
- **0o0400**: The owner has the permission to read a regular file or a directory entry.
- **0o0200**: The owner has the permission to write a regular file or create and delete a directory entry.
- **0o0100**: The owner has the permission to execute a regular file or search for the specified path in a directory.
- **0o0070**: mask used to obtain the user group permissions.
- **0o0040**: The user group has the permission to read a regular file or a directory entry.
- **0o0020**: The user group has the permission to write a regular file or create and delete a directory entry.
- **0o0010**: The user group has the permission to execute a regular file or search for the specified path in a directory.
- **0o0007**: mask used to obtain the permissions of other users.
- **0o0004**: Other users have the permission to read a regular file or a directory entry.
- **0o0002**: Other users have the permission to write a regular file or create and delete a directory entry.
- **0o0001**: Other users have the permission to execute a regular file or search for the specified path in a directory.| +| mode | number | Yes | No | File type and permissions. The first four bits indicate the file type, and the last 12 bits indicate the permissions. The bit fields are described as follows:
- **0o170000**: mask used to obtain the file type.
- **0o140000**: The file is a socket.
- **0o120000**: The file is a symbolic link.
- **0o100000**: The file is a regular file.
- **0o060000**: The file is a block device.
- **0o040000**: The file is a directory.
- **0o020000**: The file is a character device.
- **0o010000**: The file is a named pipe (FIFO).
- **0o0700**: mask used to obtain the owner permissions.
- **0o0400**: The owner has the permission to read a regular file or a directory entry.
- **0o0200**: The owner has the permission to write a regular file or create and delete a directory entry.
- **0o0100**: The owner has the permission to execute a regular file or search for the specified path in a directory.
- **0o0070**: mask used to obtain the user group permissions.
- **0o0040**: The user group has the permission to read a regular file or a directory entry.
- **0o0020**: The user group has the permission to write a regular file or create and delete a directory entry.
- **0o0010**: The user group has the permission to execute a regular file or search for the specified path in a directory.
- **0o0007**: mask used to obtain the permissions of other users.
- **0o0004**: Other users have the permission to read a regular file or a directory entry.
- **0o0002**: Other users have the permission to write a regular file or create and delete a directory entry.
- **0o0001**: Other users have the permission to execute a regular file or search for the specified path in a directory.| | nlink | number | Yes | No | Number of hard links in the file. | | uid | number | Yes | No | User ID, that is ID of the file owner. | | gid | number | Yes | No | Group ID, that is, ID of the user group of the file. | @@ -2814,10 +2778,10 @@ Stops the **watcher** instance. This API uses a promise to return the result. ```js let filePath = path + "/test.txt"; - let watcher = fileio.createWatcher(filePath, 1, function(number){ - console.info("Monitoring times: "+number); + let watcher = fileio.createWatcher(filePath, 1, function (number) { + console.info("Monitoring times: " +number); }); - watcher.stop().then(function(){ + watcher.stop().then(function () { console.info("Watcher stopped"); }); ``` @@ -2841,10 +2805,10 @@ Stops the **watcher** instance. This API uses an asynchronous callback to return ```js let filePath = path +"/test.txt"; - let watcher = fileio.createWatcher(filePath, 1, function(number){ - console.info("Monitoring times: "+number); + let watcher = fileio.createWatcher(filePath, 1, function (number) { + console.info("Monitoring times: " +number); }); - watcher.stop(function(){ + watcher.stop(function () { console.info("Watcher stopped"); }) ``` @@ -2874,10 +2838,10 @@ Closes the stream. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; let ss= fileio.createStreamSync(filePath, "r+"); - ss.close().then(function(){ + ss.close().then(function () { console.info("File stream closed"); - }).catch(function(err){ - console.info("Failed to close the file stream. Error:"+ err); + }).catch(function (err) { + console.info("close fileStream failed with error:" + err); }); ``` @@ -2943,10 +2907,10 @@ Flushes the stream. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; let ss= fileio.createStreamSync(filePath, "r+"); - ss.flush().then(function (){ + ss.flush().then(function () { console.info("Stream flushed"); - }).catch(function(err){ - console.info("Failed to flush the stream. Error:"+ err); + }).catch(function (err) { + console.info("flush failed with error:" + err); }); ``` @@ -2995,12 +2959,7 @@ Synchronously flushes the stream. ### write7+ -write(buffer: ArrayBuffer | string, options?: { - offset?: number; - length?: number; - position?: number; - encoding?: string; -}): Promise<number> +write(buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number> Writes data into the stream. This API uses a promise to return the result. @@ -3010,7 +2969,7 @@ Writes data into the stream. This API uses a promise to return the result. | Name | Type | Mandatory | Description | | ------- | ------------------------------- | ---- | ---------------------------------------- | - | buffer | ArrayBuffer \| string | Yes | Data to write. It can be a string or data from a buffer. | + | 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): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size | **Return value** @@ -3024,22 +2983,17 @@ Writes data into the stream. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; let ss= fileio.createStreamSync(filePath, "r+"); - ss.write("hello, world",{offset: 1,length: 5,position: 5,encoding :'utf-8'}).then(function (number){ - console.info("Data written to the stream. Size is:"+ number); - }).catch(function(err){ - console.info("Failed to write data to the stream. Error:"+ err); + ss.write("hello, world",{offset: 1,length: 5,position: 5,encoding :'utf-8'}).then(function (number) { + console.info("write succeed and size is:" + number); + }).catch(function (err) { + console.info("write failed with error:" + err); }); ``` ### write7+ -write(buffer: ArrayBuffer | string, options: { - offset?: number; - length?: number; - position?: number; - encoding?: string; -}, callback: AsyncCallback<number>): void +write(buffer: ArrayBuffer|string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void Writes data into the stream. This API uses an asynchronous callback to return the result. @@ -3049,7 +3003,7 @@ Writes data into the stream. This API uses an asynchronous callback to return th | Name | Type | Mandatory| Description | | -------- | ------------------------------- | ---- | ------------------------------------------------------------ | - | buffer | ArrayBuffer \| string | Yes | Data to write. It can be a string or data from a buffer. | + | 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): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size| | callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. | @@ -3061,7 +3015,7 @@ Writes data into the stream. This API uses an asynchronous callback to return th ss.write("hello, world", {offset: 1, length: 5, position: 5, encoding :'utf-8'}, function (err, bytesWritten) { if (bytesWritten) { // Do something. - console.info("Data written to the stream. Size is:"+ bytesWritten); + console.info("write succeed and size is:" + bytesWritten); } }); ``` @@ -3069,12 +3023,7 @@ Writes data into the stream. This API uses an asynchronous callback to return th ### writeSync7+ -writeSync(buffer: ArrayBuffer | string, options?: { - offset?: number; - length?: number; - position?: number; - encoding?: string; -}): number +writeSync(buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number Synchronously writes data into the stream. @@ -3084,7 +3033,7 @@ Synchronously writes data into the stream. | Name | Type | Mandatory | Description | | ------- | ------------------------------- | ---- | ---------------------------------------- | - | buffer | ArrayBuffer \| string | Yes | Data to write. It can be a string or data from a buffer. | + | 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): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size | **Return value** @@ -3104,11 +3053,7 @@ Synchronously writes data into the stream. ### read7+ -read(buffer: ArrayBuffer, options?: { - position?: number; - offset?: number; - length?: number; -}): Promise<ReadOut> +read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise<ReadOut> Reads data from the stream. This API uses a promise to return the result. @@ -3132,22 +3077,18 @@ Reads data from the stream. This API uses a promise to return the result. ```js let filePath = pathDir + "/test.txt"; let ss = fileio.createStreamSync(filePath, "r+"); - ss.read(new ArrayBuffer(4096), {offset: 1, length: 5, position: 5}).then(function (readOut){ + ss.read(new ArrayBuffer(4096), {offset: 1, length: 5, position: 5}).then(function (readOut) { console.info("Read data successfully"); console.log(String.fromCharCode.apply(null, new Uint8Array(readOut.buffer))); - }).catch(function(err){ - console.info("Failed to read data. Error:"+ err); + }).catch(function (err) { + console.info("read data failed with error:" + err); }); ``` ### read7+ -read(buffer: ArrayBuffer, options: { - position?: number; - offset?: number; - length?: number; -}, callback: AsyncCallback<ReadOut>): void +read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback<ReadOut>): void Reads data from the stream. This API uses an asynchronous callback to return the result. @@ -3177,11 +3118,7 @@ Reads data from the stream. This API uses an asynchronous callback to return the ### readSync7+ -readSync(buffer: ArrayBuffer, options?: { - position?: number; - offset?: number; - length?: number; -}): number +readSync(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): number Synchronously reads data from the stream. @@ -3231,10 +3168,10 @@ Reads the next directory entry. This API uses a promise to return the result. **Example** ```js - dir.read().then(function (dirent){ - console.log("Read the next directory entry:"+JSON.stringify(dirent)); - }).catch(function(err){ - console.info("Failed to read the next directory entry. Error:"+ err); + dir.read().then(function (dirent) { + console.log("read succeed, the name of dirent is " + dirent.name); + }).catch(function (err) { + console.info("read failed with error:" + err); }); ``` @@ -3259,7 +3196,7 @@ Reads the next directory entry. This API uses an asynchronous callback to return dir.read(function (err, dirent) { if (dirent) { // Do something. - console.log("Read the next directory entry:"+JSON.stringify(dirent)); + console.log("read succeed, the name of file is " + dirent.name); } }); ``` @@ -3297,7 +3234,7 @@ Closes a directory. This API uses a promise to return the result. After a direct **Example** ```js - dir.close().then(function(err){ + dir.close().then(function (err) { console.info("close dir successfully"); }); ``` @@ -3314,7 +3251,7 @@ Closes a directory. This API uses an asynchronous callback to return the result. **Example** ```js - dir.close(function(err){ + dir.close(function (err) { console.info("close dir successfully"); }); ``` @@ -3503,18 +3440,19 @@ Checks whether a directory entry is a symbolic link. ## Filter9+ -Defines the file filter configuration. - **System API**: This is a system API. **System capability**: SystemCapability.FileManagement.File.FileIO +Defines the file filter configuration. | Name | Type | Description | | ----------- | --------------- | ------------------ | | suffix | Array<string> | File name extensions. The keywords in the array are of the OR relationship. | -| displayName | Array<string> | File name for fuzzy match. The keywords in the array are of the OR relationship.| +| displayName | Array<string> | File names for fuzzy match. The keywords in the array are of the OR relationship.| | mimeType | Array<string> | MIME types to match. The keywords in the array are of the OR relationship. | | fileSizeOver | number | File size to match. The files which are of the same or a lager size are matched. | | lastModifiedAfter | Date | File modification time to match. The files modified after the specified time are matched. | | excludeMedia | Boolean | Whether to exclude the files already in Media. | + + \ No newline at end of file diff --git a/en/application-dev/reference/apis/js-apis-huks.md b/en/application-dev/reference/apis/js-apis-huks.md index f5eaa37329b675708a0f3068ba2d1d8d25202d20..cad81d4e80c3303859274b2b79c3258bf8d2556c 100644 --- a/en/application-dev/reference/apis/js-apis-huks.md +++ b/en/application-dev/reference/apis/js-apis-huks.md @@ -1,4 +1,4 @@ -# HUKS +# @ohos.security.huks (HUKS) The **HUKS** module provides KeyStore (KS) capabilities for applications, including key management and key cryptography operations. The keys managed by OpenHarmony Universal KeyStore (HUKS) can be imported by applications or generated by calling the HUKS APIs. @@ -44,7 +44,7 @@ Defines the HUKS handle structure. | Name | Type | Mandatory| Description | | --------- | ---------- | ---- | ---------------------------------------------------- | | handle | number | Yes | Value of the handle. | -| challenge | Uint8Array | No | Challenge obtained after the [init](#huksinit) operation.| +| challenge | Uint8Array | No | Challenge obtained after the [initSession](#huksinitsession9) operation.| ## HuksReturnResult9+ @@ -74,8 +74,8 @@ Generates a key. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | --------------------------------------------- | | keyAlias | string | Yes | Alias of the key. | -| options | [HuksOptions](#huksoptions) | Yes | Tags required for generating the key. | -| callback | AsyncCallback\ | Yes | Callback that returns no value.| +| options | [HuksOptions](#huksoptions) | Yes | Tags required for generating the key. The algorithm, key purpose, and key length are mandatory.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| **Example** @@ -130,7 +130,7 @@ Generates a key. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | ------------------------ | | keyAlias | string | Yes | Alias of the key. | -| options | [HuksOptions](#huksoptions) | Yes | Tags required for generating the key.| +| options | [HuksOptions](#huksoptions) | Yes | Tags required for generating the key. The algorithm, key purpose, and key length are mandatory.| **Example** @@ -186,7 +186,7 @@ Deletes a key. This API uses an asynchronous callback to return the result. | -------- | --------------------------- | ---- | --------------------------------------------- | | keyAlias | string | Yes | Key alias passed in when the key was generated. | | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty). | -| callback | AsyncCallback\ | Yes | Callback that returns no value.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| **Example** @@ -288,8 +288,8 @@ Imports a key in plaintext. This API uses an asynchronous callback to return the | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | --------------------------------------------- | | keyAlias | string | Yes | Alias of the key. | -| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and key to import. | -| callback | AsyncCallback\ | Yes | Callback that returns no value.| +| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and key to import. The algorithm, key purpose, and key length are mandatory.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| **Example** @@ -356,7 +356,7 @@ Imports a key in plaintext. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | -------- | --------------------------- | ---- | ----------------------------------- | | keyAlias | string | Yes | Alias of the key. | -| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and key to import.| +| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and key to import. The algorithm, key purpose, and key length are mandatory.| **Example** @@ -426,7 +426,7 @@ Obtains the certificate used to verify a key. This API uses an asynchronous call | -------- | ---------------------------------------------------- | ---- | --------------------------------------------- | | keyAlias | string | Yes | Alias of the key. The certificate to be obtained stores the key. | | options | [HuksOptions](#huksoptions) | Yes | Parameters and data required for obtaining the certificate. | -| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult)> | Yes | Callback invoked to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned.| +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| **Example** @@ -553,7 +553,7 @@ Obtains the certificate used to verify a key. This API uses a promise to return | Type | Description | | ---------------------------------------------- | --------------------------------------------- | -| Promise<[HuksReturnResult](#huksreturnresult)> | Promise used to return the result. If the operation is successful, no **err** value is returned; otherwise, an error code is returned.| +| Promise<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the result. If the operation fails, **err** is returned.| **Example** @@ -675,8 +675,8 @@ Imports a wrapped key. This API uses an asynchronous callback to return the resu | ---------------- | --------------------------- | ---- | --------------------------------------------- | | keyAlias | string | Yes | Alias of the wrapped key to import. | | wrappingKeyAlias | string | Yes | Alias of the data used to unwrap the key imported. | -| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and the wrapped key to import.| -| callback | AsyncCallback\ | Yes | Callback that returns no value.| +| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and the wrapped key to import. The algorithm, key purpose, and key length are mandatory.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| **Example** @@ -891,7 +891,7 @@ Imports a wrapped key. This API uses a promise to return the result. | ---------------- | --------------------------- | ---- | --------------------------------------------- | | keyAlias | string | Yes | Alias of the wrapped key to import. | | wrappingKeyAlias | string | Yes | Alias of the data used to unwrap the key imported. | -| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and the wrapped key to import.| +| options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and the wrapped key to import. The algorithm, key purpose, and key length are mandatory.| **Example** @@ -926,7 +926,7 @@ Exports a key. This API uses an asynchronous callback to return the result. | -------- | ---------------------------------------------------- | ---- | ------------------------------------------------------------ | | keyAlias | string | Yes | Key alias, which must be the same as the alias used when the key was generated. | | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty). | -| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned and **outData** contains the public key exported. If the operation fails, an error code is returned. | +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned and **outData** contains the public key exported. If the operation fails, an error code is returned.| **Example** @@ -968,7 +968,7 @@ Exports a key. This API uses a promise to return the result. | Type | Description | | ---------------------------------------------- | ------------------------------------------------------------ | -| Promise<[HuksReturnResult](#huksreturnresult)> | Promise used to return the result. If the operation is successful, no **err** value is returned and **outData** contains the public key exported. If the operation fails, an error code is returned. | +| Promise<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the result. If the operation is successful, no **err** value is returned and **outData** contains the public key exported. If the operation fails, an error code is returned. | **Example** @@ -1005,7 +1005,7 @@ Obtains key properties. This API uses an asynchronous callback to return the res | -------- | ---------------------------------------------------- | ---- | ------------------------------------------------------------ | | keyAlias | string | Yes | Key alias, which must be the same as the alias used when the key was generated. | | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty). | -| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult)> | Yes | Callback invoked to return the result. If the operation is successful, **errorCode** is **HUKS_SUCCESS**; otherwise, an error code is returned.| +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result. If the operation is successful, **errorCode** is **HUKS_SUCCESS**; otherwise, an error code is returned.| **Example** @@ -1047,7 +1047,7 @@ Obtains key properties. This API uses a promise to return the result. | Type | Description | | ----------------------------------------------- | ------------------------------------------------------------ | -| Promise\<[HuksReturnResult](#huksreturnresult)> | Promise used to return the result. If the operation is successful, no **err** value is returned and **properties** contains the parameters required for generating the key. If the operation fails, an error code is returned. | +| Promise\<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the result. If the operation is successful, no **err** value is returned and **properties** contains the parameters required for generating the key. If the operation fails, an error code is returned. | **Example** @@ -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) { @@ -1126,7 +1126,7 @@ Checks whether a key exists. This API uses a promise to return the result. | Type | Description | | ----------------- | --------------------------------------- | -| Promise\ | Promise used to return the result. **TRUE** means that the key exists; **FALSE** means the opposite.| +| Promise\ | Promise used to return the result. The value **TRUE** means that the key exists; **FALSE** means the opposite.| **Example** @@ -1163,8 +1163,7 @@ Initializes the data for a key operation. This API uses an asynchronous callback | -------- | ------------------------------------------------------- | ---- | ---------------------------------------------------- | | keyAlias | string | Yes | Alias of the target key. | | options | [HuksOptions](#huksoptions) | Yes | Parameters used for initialization. | -| callback | AsyncCallback\<[HuksSessionHandle](#hukssessionhandle)> | Yes | Callback invoked to return the key operation handle.| - +| callback | AsyncCallback\<[HuksSessionHandle](#hukssessionhandle9)> | Yes | Callback invoked to return the handle obtained through the initialization operation.| ## huks.initSession9+ @@ -1185,7 +1184,7 @@ Initializes the data for a key operation. This API uses a promise to return the | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksSessionHandle](#hukssessionhandle)> | Promise used to return the key operation handle.| +| Promise\<[HuksSessionHandle](#hukssessionhandle9)> | Promise used to return the handle obtained through the initialization operation.| ## huks.updateSession9+ @@ -1201,7 +1200,7 @@ Updates the key operation by segment. This API uses an asynchronous callback to | -------- | ---------------------------------------------------- | ---- | -------------------------------------------- | | handle | number | Yes | Handle of the **Update** operation. | | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Update** operation. | -| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult)> | Yes | Callback invoked to return the result.| +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result.| ## huks.updateSession9+ @@ -1219,7 +1218,7 @@ Updates the key operation by segment. This API uses an asynchronous callback to | handle | number | Yes | Handle of the **Update** operation. | | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Update** operation. | | token | Uint8Array | Yes | Token of the **Update** operation. | -| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult)> | Yes | Callback invoked to return the result.| +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result.| ## huks.updateSession9+ @@ -1241,7 +1240,7 @@ Updates the key operation data by segment. This API uses a promise to return the | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise<[HuksReturnResult](#huksreturnresult)> | Promise used to return the result.| +| Promise<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the result.| ## huks.finishSession9+ @@ -1258,7 +1257,7 @@ Completes the key operation and releases resources. This API uses an asynchronou | handle | number | Yes | Handle of the **Finish** operation. | | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Finish** operation. | | token | Uint8Array | Yes | Token for the **Finish** operation. | -| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult)> | Yes | Callback invoked to return the result.| +| callback | AsyncCallback<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result.| ## huks.finishSession9+ @@ -1275,8 +1274,7 @@ Completes the key operation and releases resources. This API uses an asynchronou | handle | number | Yes | Handle of the **Finish** operation. | | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Finish** operation. | | token | Uint8Array | Yes | Token for the **Finish** operation. | -| callback | AsyncCallback\<[HuksReturnResult](#huksreturnresult)> | Yes | Callback invoked to return the result.| - +| callback | AsyncCallback\<[HuksReturnResult](#huksreturnresult9)> | Yes | Callback invoked to return the result.| ## huks.finishSession9+ @@ -1298,8 +1296,7 @@ Completes the key operation and releases resources. This API uses a promise to r | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksReturnResult](#huksreturnresult)> | Promise used to return the result.| - +| Promise\<[HuksReturnResult](#huksreturnresult9)> | Promise used to return the result.| ## huks.abortSession9+ @@ -1315,7 +1312,7 @@ Aborts the use of the key. This API uses an asynchronous callback to return the | -------- | --------------------------- | ---- | ------------------------------------------- | | handle | number | Yes | Handle of the **Abort** operation. | | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Abort** operation. | -| callback | AsyncCallback\ | Yes | Callback that returns no value.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the operation fails, **err** is returned.| **Example** @@ -1583,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`); }) @@ -1605,26 +1602,26 @@ For details about the error codes, see [KUKS Error Codes](../errorcodes/errorcod **System capability**: SystemCapability.Security.Huks -| Name | Description | Error Code | -| ---------------------------------------------- | --------------------------- | -------- | -| HUKS_ERR_CODE_PERMISSION_FAIL | Permission verification failed. | 201 | -| HUKS_ERR_CODE_ILLEGAL_ARGUMENT | Invalid parameters are detected. | 401 | -| HUKS_ERR_CODE_NOT_SUPPORTED_API | The API is not supported. | 801 | -| HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED | The feature is not supported. | 12000001 | -| HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT | Key algorithm parameters are missing. | 12000002 | -| HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT | Invalid key algorithm parameters are detected. | 12000003 | -| HUKS_ERR_CODE_FILE_OPERATION_FAIL | The file operation failed. | 12000004 | -| HUKS_ERR_CODE_COMMUNICATION_FAIL | The communication failed. | 12000005 | -| HUKS_ERR_CODE_CRYPTO_FAIL | Failed to operate the algorithm library. | 12000006 | -| HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED | Failed to access the key because the key has expired.| 12000007 | -| HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED | Failed to access the key because the authentication has failed.| 12000008 | -| HUKS_ERR_CODE_KEY_AUTH_TIME_OUT | Key access timed out.| 12000009 | -| HUKS_ERR_CODE_SESSION_LIMIT | The number of key operation sessions has reached the limit. | 12000010 | -| HUKS_ERR_CODE_ITEM_NOT_EXIST | The target object does not exist. | 12000011 | -| HUKS_ERR_CODE_EXTERNAL_ERROR | An external error occurs. | 12000012 | -| HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST | The credential does not exist. | 12000013 | -| HUKS_ERR_CODE_INSUFFICIENT_MEMORY | The memory is insufficient. | 12000014 | -| HUKS_ERR_CODE_CALL_SERVICE_FAILED | Failed to call other system services. | 12000015 | +| Name | Value| Description | +| ---------------------------------------------- | -------- |--------------------------- | +| HUKS_ERR_CODE_PERMISSION_FAIL | 201 | Permission verification failed. | +| HUKS_ERR_CODE_ILLEGAL_ARGUMENT | 401 | Invalid parameters are detected. | +| HUKS_ERR_CODE_NOT_SUPPORTED_API | 801 | The API is not supported. | +| HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED | 12000001 | The feature is not supported. | +| HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT | 12000002 | Key algorithm parameters are missing. | +| HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT | 12000003 | Invalid key algorithm parameters are detected. | +| HUKS_ERR_CODE_FILE_OPERATION_FAIL | 12000004 | The file operation failed. | +| HUKS_ERR_CODE_COMMUNICATION_FAIL | 12000005 | The communication failed. | +| HUKS_ERR_CODE_CRYPTO_FAIL | 12000006 | Failed to operate the algorithm library. | +| HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED | 12000007 | Failed to access the key because the key has expired.| +| HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED | 12000008 | Failed to access the key because the authentication has failed.| +| HUKS_ERR_CODE_KEY_AUTH_TIME_OUT | 12000009 | Key access timed out.| +| HUKS_ERR_CODE_SESSION_LIMIT | 12000010 | The number of key operation sessions has reached the limit. | +| HUKS_ERR_CODE_ITEM_NOT_EXIST | 12000011 | The target object does not exist. | +| HUKS_ERR_CODE_EXTERNAL_ERROR | 12000012 | An external error occurs. | +| HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST | 12000013 | The credential does not exist. | +| HUKS_ERR_CODE_INSUFFICIENT_MEMORY | 12000014 | The memory is insufficient. | +| HUKS_ERR_CODE_CALL_SERVICE_FAILED | 12000015 | Failed to call other system services. | ## HuksKeyPurpose @@ -1710,7 +1707,7 @@ Enumerates the key sizes. | HUKS_ECC_KEY_SIZE_384 | 384 | ECC key of 384 bits | | HUKS_ECC_KEY_SIZE_521 | 521 | ECC key of 521 bits | | HUKS_AES_KEY_SIZE_128 | 128 | Advanced Encryption Standard (AES) key of 128 bits | -| HUKS_AES_KEY_SIZE_192 | 196 | AES key of 196 bits | +| HUKS_AES_KEY_SIZE_192 | 192 | AES key of 192 bits | | HUKS_AES_KEY_SIZE_256 | 256 | AES key of 256 bits | | HUKS_AES_KEY_SIZE_512 | 512 | AES key of 512 bits | | HUKS_CURVE25519_KEY_SIZE_256 | 256 | Curve25519 key of 256 bits| @@ -1792,7 +1789,7 @@ Enumerates the tag transfer modes. ## HuksUnwrapSuite9+ -Enumerates the algorithm suites required for encrypted imports. +Enumerates the algorithm suites used for importing an encrypted key. **System capability**: SystemCapability.Security.Huks @@ -1983,7 +1980,7 @@ generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\ **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.generateKeyItem9+](#huksgeneratekeyitem9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.generateKeyItem9+](#huksgeneratekeyitem9). **System capability**: SystemCapability.Security.Huks @@ -1993,7 +1990,7 @@ Generates a key. This API uses an asynchronous callback to return the result. | -------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | | keyAlias | string | Yes | Alias of the key. | | options | [HuksOptions](#huksoptions) | Yes | Tags required for generating the key. | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code defined in **HuksResult** is returned.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code defined in **HuksResult** is returned.| **Example** @@ -2035,7 +2032,7 @@ generateKey(keyAlias: string, options: HuksOptions) : Promise\ Generates a key. This API uses a promise to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.generateKeyItem9+](#huksgeneratekeyitem9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.generateKeyItem9+](#huksgeneratekeyitem9-1). **System capability**: SystemCapability.Security.Huks @@ -2050,7 +2047,7 @@ Generates a key. This API uses a promise to return the result. | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresult)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| **Example** @@ -2082,14 +2079,13 @@ let options = { let result = huks.generateKey(keyAlias, options); ``` - ## huks.deleteKey(deprecated) deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void Deletes a key. This API uses an asynchronous callback to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.deleteKeyItem9+](#huksdeletekeyitem9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.deleteKeyItem9+](#huksdeletekeyitem9). **System capability**: SystemCapability.Security.Huks @@ -2099,7 +2095,7 @@ Deletes a key. This API uses an asynchronous callback to return the result. | -------- | ----------------------------------------- | ---- | -------------------------------------------------- | | keyAlias | string | Yes | Key alias passed in when the key was generated. | | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty). | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| **Example** @@ -2118,7 +2114,7 @@ deleteKey(keyAlias: string, options: HuksOptions) : Promise\ Deletes a key. This API uses a promise to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.deleteKeyItem9+](#huksdeletekeyitem9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.deleteKeyItem9+](#huksdeletekeyitem9-1). **System capability**: SystemCapability.Security.Huks @@ -2133,7 +2129,7 @@ Deletes a key. This API uses a promise to return the result. | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresult)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| **Example** @@ -2146,14 +2142,13 @@ let emptyOptions = { let result = huks.deleteKey(keyAlias, emptyOptions); ``` - ## huks.importKey(deprecated) importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void Imports a key in plaintext. This API uses an asynchronous callback to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.importKeyItem9+](#huksimportkeyitem9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.importKeyItem9+](#huksimportkeyitem9). **System capability**: SystemCapability.Security.Huks @@ -2163,7 +2158,7 @@ Imports a key in plaintext. This API uses an asynchronous callback to return the | -------- | ------------------------ | ---- | ------------------------------------------------- | | keyAlias | string | Yes | Alias of the key.| | options | [HuksOptions](#huksoptions) | Yes | Tags required for the import and key to import.| -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| **Example** @@ -2213,7 +2208,7 @@ importKey(keyAlias: string, options: HuksOptions) : Promise\ Imports a key in plaintext. This API uses a promise to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.importKeyItem9+](#huksimportkeyitem9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.importKeyItem9+](#huksimportkeyitem9-1). **System capability**: SystemCapability.Security.Huks @@ -2228,7 +2223,7 @@ Imports a key in plaintext. This API uses a promise to return the result. | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresult)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned; otherwise, an error code is returned.| **Example** @@ -2274,14 +2269,13 @@ let huksoptions = { let result = huks.importKey(keyAlias, huksoptions); ``` - ## huks.exportKey(deprecated) exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void Exports a key. This API uses an asynchronous callback to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.exportKeyItem9+](#huksexportkeyitem9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.exportKeyItem9+](#huksexportkeyitem9). **System capability**: SystemCapability.Security.Huks @@ -2291,7 +2285,7 @@ Exports a key. This API uses an asynchronous callback to return the result. | -------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | | keyAlias | string | Yes | Key alias, which must be the same as the alias used when the key was generated. | | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty). | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned and **outData** contains the public key exported. If the operation fails, an error code is returned.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes | Callback invoked to return the result. If the operation is successful, **HUKS_SUCCESS** is returned and **outData** contains the public key exported. If the operation fails, an error code is returned.| **Example** @@ -2310,7 +2304,7 @@ exportKey(keyAlias: string, options: HuksOptions) : Promise\ Exports a key. This API uses a promise to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.exportKeyItem9+](#huksexportkeyitem9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.exportKeyItem9+](#huksexportkeyitem9-1). **System capability**: SystemCapability.Security.Huks @@ -2325,7 +2319,7 @@ Exports a key. This API uses a promise to return the result. | Type | Description | | ----------------------------------- | ------------------------------------------------------------ | -| Promise\<[HuksResult](#huksresult)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned and **outData** contains the public key exported. If the operation fails, an error code is returned. | +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result. If the operation is successful, **HUKS_SUCCESS** is returned and **outData** contains the public key exported. If the operation fails, an error code is returned. | **Example** @@ -2338,14 +2332,13 @@ let emptyOptions = { let result = huks.exportKey(keyAlias, emptyOptions); ``` - ## huks.getKeyProperties(deprecated) getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void Obtains key properties. This API uses an asynchronous callback to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.getKeyItemProperties9+](#huksgetkeyitemproperties9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.getKeyItemProperties9+](#huksgetkeyitemproperties9). **System capability**: SystemCapability.Security.Huks @@ -2355,7 +2348,7 @@ Obtains key properties. This API uses an asynchronous callback to return the res | -------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | | keyAlias | string | Yes | Key alias, which must be the same as the alias used when the key was generated. | | options | [HuksOptions](#huksoptions) | Yes | Empty object (leave this parameter empty). | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes | Callback invoked to return the result. If the operation is successful, **errorCode** is **HUKS_SUCCESS**; otherwise, an error code is returned.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes | Callback invoked to return the result. If the operation is successful, **errorCode** is **HUKS_SUCCESS**; otherwise, an error code is returned.| **Example** @@ -2374,7 +2367,7 @@ getKeyProperties(keyAlias: string, options: HuksOptions) : Promise\ Obtains key properties. This API uses a promise to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.getKeyItemProperties9+](#huksgetkeyitemproperties9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.getKeyItemProperties9+](#huksgetkeyitemproperties9-1). **System capability**: SystemCapability.Security.Huks @@ -2402,14 +2395,13 @@ let emptyOptions = { let result = huks.getKeyProperties(keyAlias, emptyOptions); ``` - ## huks.isKeyExist(deprecated) isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void Checks whether a key exists. This API uses an asynchronous callback to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.isKeyItemExist9+](#huksiskeyitemexist9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.isKeyItemExist9+](#huksiskeyitemexist9). **System capability**: SystemCapability.Security.Huks @@ -2438,7 +2430,7 @@ isKeyExist(keyAlias: string, options: HuksOptions) : Promise\ Checks whether a key exists. This API uses a promise to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.isKeyItemExist9+](#huksiskeyitemexist9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.isKeyItemExist9+](#huksiskeyitemexist9-1). **System capability**: SystemCapability.Security.Huks @@ -2453,7 +2445,7 @@ Checks whether a key exists. This API uses a promise to return the result. | Type | Description | | ----------------- | --------------------------------------- | -| Promise\ | Promise used to return the result. **TRUE** means that the key exists; **FALSE** means the opposite.| +| Promise\ | Promise used to return the result. The value **TRUE** means that the key exists; **FALSE** means the opposite.| **Example** @@ -2472,7 +2464,7 @@ init(keyAlias: string, options: HuksOptions, callback: AsyncCallback\ **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.initSession9+](#huksinitsession9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.initSession9+](#huksinitsession9-1). **System capability**: SystemCapability.Security.Huks @@ -2482,8 +2474,7 @@ Initializes the data for a key operation. This API uses an asynchronous callback | -------- | ---------------------- | ---- | ------------------------------------- | | keyAlias | string | Yes | Alias of the target key.| | options | [HuksOptions](#huksoptions) | Yes | Parameters used for initialization.| -| callback | AsyncCallback\<[HuksHandle](#hukshandle)> | Yes | Callback invoked to return the key operation handle.| - +| callback | AsyncCallback\<[HuksHandle](#hukshandledeprecated)> | Yes | Callback invoked to return the handle obtained through the initialization operation.| ## huks.init(deprecated) @@ -2491,7 +2482,7 @@ init(keyAlias: string, options: HuksOptions) : Promise\ Initializes the data for a key operation. This API uses a promise to return the result. **huks.init**, **huks.update**, and **huks.finish** must be used together. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.initSession9+](#huksinitsession9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.initSession9+](#huksinitsession9-1). **System capability**: SystemCapability.Security.Huks @@ -2506,34 +2497,15 @@ Initializes the data for a key operation. This API uses a promise to return the | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksHandle](#hukshandle)> | Promise used to return the key operation handle.| - +| Promise\<[HuksHandle](#hukshandledeprecated)> | Promise used to return the handle obtained through the initialization operation.| ## huks.update(deprecated) -update(handle: number, options: HuksOptions, callback: AsyncCallback\) : void +update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback\) : void Updates the key operation by segment. This API uses an asynchronous callback to return the result. **huks.init**, **huks.update**, and **huks.finish** must be used together. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.updateSession9+](#huksupdatesession9). - -**System capability**: SystemCapability.Security.Huks - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------- | ---- | -------------------------------------------- | -| handle | number | Yes | Handle of the **Update** operation. | -| options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Update** operation. | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes | Callback invoked to return the result.| - -## huks.update(deprecated) - -update(handle: number, options: HuksOptions, token: Uint8Array, callback: AsyncCallback\) : void - -Updates the key operation by segment. This API uses an asynchronous callback to return the result. **huks.init**, **huks.update**, and **huks.finish** must be used together. - -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.updateSession9+](#huksupdatesession9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.updateSession9+](#huksupdatesession9-1). **System capability**: SystemCapability.Security.Huks @@ -2544,15 +2516,15 @@ Updates the key operation by segment. This API uses an asynchronous callback to | handle | number | Yes | Handle of the **Update** operation. | | token | Uint8Array | No | Token of the **Update** operation. | | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Update** operation. | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes | Callback invoked to return the result.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes | Callback invoked to return the result.| ## huks.update(deprecated) -update(handle: number, options: HuksOptions, token?: Uint8Array) : Promise\ +update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise\; Updates the key operation by segment. This API uses a promise to return the result. **huks.init**, **huks.update**, and **huks.finish** must be used together. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.updateSession9+](#huksupdatesession9-2). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.updateSession9+](#huksupdatesession9-2). **System capability**: SystemCapability.Security.Huks @@ -2568,8 +2540,7 @@ Updates the key operation by segment. This API uses a promise to return the resu | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresult)> | Promise used to return the result.| - +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result.| ## huks.finish(deprecated) @@ -2577,7 +2548,7 @@ finish(handle: number, options: HuksOptions, callback: AsyncCallback\ **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.finishSession9+](#huksfinishsession9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.finishSession9+](#huksfinishsession9). **System capability**: SystemCapability.Security.Huks @@ -2587,8 +2558,7 @@ Completes the key operation and releases resources. This API uses an asynchronou | -------- | ---------------------- | ---- | ------------------------------------- | | handle | number | Yes | Handle of the **Finish** operation.| | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Finish** operation.| -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes| Callback invoked to return the result.| - +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes| Callback invoked to return the result.| ## huks.finish(deprecated) @@ -2596,7 +2566,7 @@ finish(handle: number, options: HuksOptions) : Promise\ Completes the key operation and releases resources. This API uses a promise to return the result. **huks.init**, **huks.update**, and **huks.finish** must be used together. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.finishSession9+](#huksfinishsession9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.finishSession9+](#huksfinishsession9-1). **System capability**: SystemCapability.Security.Huks @@ -2611,8 +2581,7 @@ Completes the key operation and releases resources. This API uses a promise to r | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresult)> | Promise used to return the result.| - +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result.| ## huks.abort(deprecated) @@ -2620,7 +2589,7 @@ abort(handle: number, options: HuksOptions, callback: AsyncCallback\ Aborts the use of the key. This API uses an asynchronous callback to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.abortSession9+](#huksabortsession9). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.abortSession9+](#huksabortsession9). **System capability**: SystemCapability.Security.Huks @@ -2630,7 +2599,7 @@ Aborts the use of the key. This API uses an asynchronous callback to return the | -------- | ---------------------- | ---- | ------------------------------------- | | handle | number | Yes | Handle of the **Abort** operation.| | options | [HuksOptions](#huksoptions) | Yes | Parameters of the **Abort** operation.| -| callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes| Callback invoked to return the result.| +| callback | AsyncCallback\<[HuksResult](#huksresultdeprecated)> | Yes| Callback invoked to return the result.| **Example** @@ -2731,7 +2700,7 @@ abort(handle: number, options: HuksOptions) : Promise\; Aborts the use of the key. This API uses a promise to return the result. -> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.abortSession9+](#huksabortsession9-1). +> **NOTE**
This API is deprecated since API version 9. You are advised to use [huks.abortSession9+](#huksabortsession9-1). **System capability**: SystemCapability.Security.Huks @@ -2746,7 +2715,7 @@ Aborts the use of the key. This API uses a promise to return the result. | Type | Description | | ----------------------------------- | -------------------------------------------------- | -| Promise\<[HuksResult](#huksresult)> | Promise used to return the result.| +| Promise\<[HuksResult](#huksresultdeprecated)> | Promise used to return the result.| **Example** @@ -2847,7 +2816,6 @@ function huksAbort() { } ``` - ## HuksHandle(deprecated) Defines the HUKS handle structure. @@ -2858,8 +2826,7 @@ Defines the HUKS handle structure. | ---------- | ---------------- | ---- | -------- | | errorCode | number | Yes | Error code.| | handle | number | Yes| Value of the handle.| -| token | Uint8Array | No| Challenge obtained after the [init](#huksinit) operation.| - +| token | Uint8Array | No| Challenge obtained after the [init](#huksinitdeprecated) operation.| ## HuksResult(deprecated) @@ -2867,8 +2834,6 @@ Defines the **HuksResult** structure. **System capability**: SystemCapability.Security.Huks - - | Name | Type | Mandatory| Description | | ---------- | ------------------------------- | ---- | ---------------- | | errorCode | number | Yes | Error code. | diff --git a/en/application-dev/reference/apis/js-apis-media.md b/en/application-dev/reference/apis/js-apis-media.md index 6d395fd5f21b8b041f7930ae96002dc430fd650b..3dbcf6121907865d317231e1ddcd58925367996a 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,1082 @@ 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.| +| 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 +1423,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 +1638,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 +1670,911 @@ 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. + +**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** +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -```js -audioRecorder.on('start', () => { // Set the 'start' event callback. - console.log('audio recorder start success'); -}); -audioRecorder.start(); -``` +**Parameters** -### pause +| Name| Type | Mandatory| Description | +| ------ | -------------------------------------- | ---- | -------------------------- | +| config | [AVRecorderConfig](#avrecorderconfig9) | Yes | Audio and video recording parameters to set.| -pause():void +**Return value** -Pauses audio recording. This API can be called only after the [start](#audiorecorder_on) event is triggered. +| Type | Description | +| -------------- | ------------------------------------------ | +| Promise\ | Promise used to return the result.| -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +**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.| + +**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 -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'); +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+ +### reset9+ -getInputSurface(): Promise\; +reset(): 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. +Resets audio and video recording. This API uses a promise to return the result. -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. +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. -This API can be called only after [prepare()](#videorecorder_prepare1) is called. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +**Return value** -**System API**: This is a system API. - -**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 +2582,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 +2717,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 +2762,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+ +### start9+ -Enumerates the video recording states. You can obtain the state through the **state** attribute. +start(): Promise\; + +Starts video recording. This API uses a promise 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. -| 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. | +**Return value** -## VideoRecorderConfig9+ +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| -Describes the video recording parameters. +**Error codes** -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +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 | 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) | +**Parameters** -## AudioSourceType9+ +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback 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 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 | -| ------------------------- | ---- | ---------------------- | -| AUDIO_SOURCE_TYPE_DEFAULT | 0 | Default audio input source.| -| AUDIO_SOURCE_TYPE_MIC | 1 | Mic audio input source. | +**Return value** -## VideoSourceType9+ +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise 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 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 | 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. | +**Parameters** -## VideoRecorderProfile9+ +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback 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 callback. | +| 5400103 | I/O 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); + } +}); +``` + +### resume9+ + +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. -| 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. | +**Return value** -## ContainerFormatType8+ +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise 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 promise. | +| 5400103 | I/O error. Return by promise. | +| 5400105 | Service died. Return by promise. | -## Location +**Example** -Describes the geographical location of the recorded video. +```js +// promise +videoRecorder.resume().then(() => { + console.info('resume videorecorder success'); +}).catch((err) => { + console.info('resume videorecorder failed and catch error is ' + err.message); +}); +``` -**System capability**: SystemCapability.Multimedia.Media.Core +### stop9+ -| Name | Type | Mandatory| Description | -| --------- | ------ | ---- | ---------------- | -| latitude | number | Yes | Latitude of the geographical location.| -| longitude | number | Yes | Longitude of the geographical location.| +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-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 0faa9cf211bbd0a673287c34b8d9ad45d34374e6..cfff9e3b3d9b719ae1e00348f72ba603ef218398 100644 --- a/en/application-dev/reference/apis/js-apis-promptAction.md +++ b/en/application-dev/reference/apis/js-apis-promptAction.md @@ -1,4 +1,4 @@ -# @ohos.promptAction +# @ohos.promptAction (Prompt) The **PromptAction** module provides APIs for creating and showing toasts, dialog boxes, and action menus. @@ -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** @@ -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** @@ -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** @@ -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** @@ -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** 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..9ff197787fb1ce1eaaab9f26f993edef2f364ea3 100644 --- a/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @@ -52,10 +52,10 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9900001 | Caller information verification failed for a transient task. | -| 9900002 | Transient task verification failed. | +| 9900001 | Caller information verification failed. | +| 9900002 | Background task verification failed. | **Example** @@ -100,10 +100,10 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9900001 | Caller information verification failed for a transient task. | -| 9900002 | Transient task verification failed. | +| 9900001 | Caller information verification failed. | +| 9900002 | Background task verification failed. | **Example** @@ -156,10 +156,10 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9900001 | Caller information verification failed for a transient task. | -| 9900002 | Transient task verification failed. | +| 9900001 | Caller information verification failed. | +| 9900002 | Background task verification failed. | **Example** @@ -201,10 +201,10 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9900001 | Caller information verification failed for a transient task. | -| 9900002 | Transient task verification failed. | +| 9900001 | Caller information verification failed. | +| 9900002 | Background task verification failed. | **Example** @@ -247,9 +247,9 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9800005 | Continuous task verification failed. | +| 9800005 | Background task verification failed. | | 9800006 | Notification verification failed. | | 9800007 | Task storage failed. | @@ -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}`); + } } }; ``` @@ -326,9 +330,9 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9800005 | Continuous task verification failed. | +| 9800005 | Background task verification failed. | | 9800006 | Notification verification failed. | | 9800007 | Task storage failed. | @@ -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}`); + } } }; ``` @@ -392,9 +400,9 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9800005 | Continuous task verification failed. | +| 9800005 | Background task verification failed. | | 9800006 | Notification verification failed. | | 9800007 | Task storage failed. | @@ -453,9 +461,9 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 9800005 | Continuous task verification failed. | +| 9800005 | Background task verification failed. | | 9800006 | Notification verification failed. | | 9800007 | Task storage failed. | @@ -506,9 +514,9 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 18700001 | Caller information verification failed when applying for efficiency resources. | +| 18700001 | Caller information verification failed. | **Example** @@ -549,9 +557,9 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er | ---- | --------------------- | | 9800001 | Memory operation failed. | | 9800002 | Parcel operation failed. | -| 9800003 | IPC failed. | | +| 9800003 | Inner transact failed. | | | 9800004 | System service operation failed. | -| 18700001 | Caller information verification failed when applying for efficiency resources. | +| 18700001 | Caller information verification failed. | **Example** 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 0e7ad7e7c38f32e85af6ab3504252da38afb32eb..736335322cef1ebb094100d2ac566b0520adf8c7 100644 --- a/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md +++ b/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md @@ -39,7 +39,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes | 9700001 | Memory operation failed. | | 9700002 | Parcel operation failed. | | 9700003 | System service operation failed. | -| 9700004 | Checking workInfo failed. | +| 9700004 | Check workInfo failed. | | 9700005 | StartWork failed. | @@ -80,7 +80,7 @@ Instructs the **WorkSchedulerService** to stop the specified task. | Name | Type | Mandatory | Description | | ---------- | --------------------- | ---- | ---------- | | work | [WorkInfo](#workinfo) | Yes | Task to stop. | -| needCancel | boolean | Yes | Whether to cancel the task.| +| needCancel | boolean | No | Whether to cancel the task.| **Error codes** @@ -91,7 +91,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes | 9700001 | Memory operation failed. | | 9700002 | Parcel operation failed. | | 9700003 | System service operation failed. | -| 9700004 | Checking workInfo failed. | +| 9700004 | Check workInfo failed. | **Example** @@ -141,7 +141,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes | 9700001 | Memory operation failed. | | 9700002 | Parcel operation failed. | | 9700003 | System service operation failed. | -| 9700004 | Checking workInfo failed. | +| 9700004 | Check workInfo failed. | **Example** @@ -189,7 +189,7 @@ For details about the error codes, see [workScheduler Error Codes](../errorcodes | 9700001 | Memory operation failed. | | 9700002 | Parcel operation failed. | | 9700003 | System service operation failed. | -| 9700004 | Checking workInfo failed. | +| 9700004 | Check workInfo failed. | **Example** diff --git a/en/application-dev/reference/apis/js-apis-router.md b/en/application-dev/reference/apis/js-apis-router.md index 11bb575b307023f70b92935d98f94cab013998ad..c7bdca6daf4aa32755e6602fd17b9de7d6a62fd6 100644 --- a/en/application-dev/reference/apis/js-apis-router.md +++ b/en/application-dev/reference/apis/js-apis-router.md @@ -1,4 +1,4 @@ -# @ohos.router +# @ohos.router (Page Routing) The **Router** module provides APIs to access pages through URLs. You can use the APIs to navigate to a specified page in an application, replace the current page with another one in an application, and return to the previous page or a specified page. @@ -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}`); -}; + } +}, (err) => { + if (err) { + console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); + return; + } + console.info('pushUrl success'); +}); ``` ## 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,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, (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 +492,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 +539,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 +562,7 @@ Describes the page routing options. > **NOTE** + > > The page routing stack supports a maximum of 32 pages. ## RouterMode9+ @@ -636,13 +605,13 @@ 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 @Component struct Index { - async routePage() { + async routePage() { let options = { url: 'pages/second', params: { @@ -745,37 +714,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 +723,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 +742,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-statfs.md b/en/application-dev/reference/apis/js-apis-statfs.md index 975ea9f78454ac498ad22986dfa97b15b292f519..9e3d28d465e097d57055339534152f72d53b95fc 100644 --- a/en/application-dev/reference/apis/js-apis-statfs.md +++ b/en/application-dev/reference/apis/js-apis-statfs.md @@ -1,9 +1,12 @@ # @ohos.statfs (statfs) -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. +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 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> **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 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 @@ -20,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** @@ -51,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** @@ -78,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** @@ -109,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-system-fetch.md b/en/application-dev/reference/apis/js-apis-system-fetch.md index 529dc836e0132e77cae90c08f855d8ecb2c5fe8c..9493227bde6cd57366fc254bcbbf93216271b958 100644 --- a/en/application-dev/reference/apis/js-apis-system-fetch.md +++ b/en/application-dev/reference/apis/js-apis-system-fetch.md @@ -21,8 +21,6 @@ fetch(Object): void Obtains data through a network. -**Required permission**: ohos.permission.INTERNET - **System capability**: SystemCapability.Communication.NetStack **Parameters** @@ -33,7 +31,7 @@ Obtains data through a network. | header | Object | No| Request header.| | method | string | No| Request method. The default value is **GET**. The value can be **OPTIONS**, **GET**, **HEAD**, **POST**, **PUT**, **DELETE **or **TRACE**.| | responseType | string | No| Response type. The return type can be text or JSON. By default, the return type is determined based on **Content-Type** in the header returned by the server. For details, see return values in the **success** callback.| -| success | Function | No| Called when the data is obtained successfully.| +| success | Function | No| Called when the data is obtained successfully. The return value is [FetchResponse](#fetchresponse). | | fail | Function | No| Called when the data failed to be obtained.| | complete | Function | No| Called when the execution is complete.| @@ -46,12 +44,12 @@ Obtains data through a network. | Object | Not set| The default value of **Content-Type** is **application/x-www-form-urlencoded**. The **data** value is encoded based on the URL rule and appended in the request body.| | Object | application/x-www-form-urlencoded | The value of data is encoded based on the URL rule and is used as the request body.| -Return values in the **success** callback +## FetchResponse | Name| Type| Description| | -------- | -------- | -------- | | code | number | Server status code.| -| data | string \| Object | The type of the returned data is determined by **responseType**. For details, see the mapping between **responseType** and **data** in **success** callback.| +| data | string \| Object | The data type is determined by **responseType**. For details, see the mapping between **responseType** and **data** in **success** callback.| | headers | Object | All headers in the response from the server.| **Table 2** Mapping between responseType and data in success callback @@ -87,8 +85,8 @@ export default { ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
-> HTTPS is supported by default. To support HTTP, you need to add **"network"** to the **config.json** file, and set the attribute **"cleartextTraffic"** to **true**. That is: +> **NOTE**
+> HTTPS is supported by default. To support HTTP, you need to add **"network"** to the **config.json** file, and set the attribute **"cleartextTraffic"** to **true**. That is: > > ``` > { diff --git a/en/application-dev/reference/apis/js-apis-system-mediaquery.md b/en/application-dev/reference/apis/js-apis-system-mediaquery.md index 841cebeb1da0380128d3704650a0aaf9ef095d5f..bc415bc3375ebfd278dd218bdec4ab48f0f51694 100644 --- a/en/application-dev/reference/apis/js-apis-system-mediaquery.md +++ b/en/application-dev/reference/apis/js-apis-system-mediaquery.md @@ -1,4 +1,4 @@ -# Media Query +# @system.mediaquery (Media Query) The **mediaquery** module provides different styles for different media types. @@ -12,7 +12,7 @@ The **mediaquery** module provides different styles for different media types. ## Modules to Import -``` +```ts import mediaquery from '@system.mediaquery'; ``` @@ -39,8 +39,8 @@ Creates a **MediaQueryList** object based on the query condition. **Example** -``` -var mMediaQueryList = mediaquery.matchMedia('(max-width: 466)'); +```ts +let mMediaQueryList = mediaquery.matchMedia('(max-width: 466)'); ``` ## MediaQueryEvent @@ -97,7 +97,7 @@ Adds a listener for this **MediaQueryList** object. The listener must be added b **Example** -``` +```ts function maxWidthMatch(e){ if(e.matches){ // do something @@ -123,7 +123,7 @@ Removes the listener for this **MediaQueryList** object. **Example** -``` +```ts function maxWidthMatch(e){ if(e.matches){ // do something diff --git a/en/application-dev/reference/apis/js-apis-system-network.md b/en/application-dev/reference/apis/js-apis-system-network.md index 1bf121889896276a676f177300f341da5fb327fe..5fd92bf9e2e58c360ffcd6d6f27408281a53b22a 100644 --- a/en/application-dev/reference/apis/js-apis-system-network.md +++ b/en/application-dev/reference/apis/js-apis-system-network.md @@ -1,6 +1,6 @@ # Network State -> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** +> **NOTE**
> - The APIs of this module are no longer maintained since API version 7. It is recommended that you use [`@ohos.telephony.observer`](js-apis-observer.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. @@ -33,22 +33,15 @@ Obtains the network type. | Name | Type | Mandatory | Description | | -------- | -------- | -------- | -------- | -| success | Function | No | Called when the execution is successful. | -| fail | Function | No | Called when the operation fails. | -| complete | Function | No | Called when the execution is complete | - -The following value will be returned when the multimedia volume is obtained. - -| Parameter | Type | Description | -| -------- | -------- | -------- | -| metered | boolean | Whether the billing is based on the data volume. | -| type | string | Network type. The value can be **2G**, **3G**, **4G**, **5G**, **WiFi**, or **none**. | +| success | Function | No | Called when the execution is successful. The return value is [FetchResponse](#fetchresponse). | +| fail | Function | No | Called when the operation fails. | +| complete | Function | No | Called when the execution is complete. | One of the following error codes will be returned if the operation fails. -| Error Code | Description | +| Error Code | Description | | -------- | -------- | -| 602 | The current permission is not declared. | +| 602 | The current permission is not declared. | **Example** @@ -80,22 +73,15 @@ Listens to the network connection state. If this method is called multiple times | Name | Type | Mandatory | Description | | -------- | -------- | -------- | -------- | -| success | Function | No | Called when the network connection state changes | -| fail | Function | No | Called when the multimedia volume fails to be obtained. | - -The following value will be returned when the multimedia volume is obtained. - -| Parameter | Type | Description | -| -------- | -------- | -------- | -| metered | boolean | Whether the billing is based on the data volume. | -| type | string | Network type. The value can be **2G**, **3G**, **4G**, **5G**, **WiFi**, or **none**. | +| success | Function | No | Called when the network connection state changes. The return value is [FetchResponse](#fetchresponse). | +| fail | Function | No | Called when the multimedia volume fails to be obtained. | One of the following error codes will be returned if the listening fails. -| Error Code | Description | +| Error Code | Description | | -------- | -------- | -| 602 | The current permission is not declared. | -| 200 | The subscription fails. | +| 602 | The current permission is not declared. | +| 200 | The subscription fails. | **Example** @@ -131,4 +117,12 @@ export default { network.unsubscribe(); }, } -``` \ No newline at end of file +``` + + +## NetworkResponse + +| Name | Type | Description | +| -------- | -------- | -------- | +| metered | boolean | Whether the billing is based on the data volume. | +| type | string | Network type. The value can be **2G**, **3G**, **4G**, **5G**, **WiFi**, or **none**. | \ No newline at end of file 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 e37601dbfa3ec72d13a7722fb4dc56a8b3fe6fef..adab8c23c1c9f1b3f95cf7190a907bb673368006 100644 --- a/en/application-dev/reference/apis/js-apis-system-prompt.md +++ b/en/application-dev/reference/apis/js-apis-system-prompt.md @@ -1,4 +1,6 @@ -# Prompt +# @system.prompt (Prompt) + +The **PromptAction** module provides APIs for creating and showing toasts, dialog boxes, and action menus. > **NOTE** > @@ -73,7 +75,7 @@ export default { }, ], success: function(data) { - console.log('dialog success callback, click button : ' + data.index); + console.log('dialog success callbackclick button : ' + data.index); }, cancel: function() { console.log('dialog cancel callback'); 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 1d47c8883ae8d3cc4be49d19845ce1b3e3d5bb2a..cb6ae5245d9b11ddc267ee326a34a3ab38164f04 100644 --- a/en/application-dev/reference/apis/js-apis-system-router.md +++ b/en/application-dev/reference/apis/js-apis-system-router.md @@ -1,4 +1,4 @@ -# @system.router +# @system.router (Page Routing) The **Router** module provides APIs to access pages through URIs. @@ -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** @@ -136,7 +136,7 @@ Returns to the previous page or a specified page. export default { indexPushPage() { router.push({ - uri: 'pages/detail/detail' + uri: 'pages/detail/detail' }); } } @@ -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 @@ -298,7 +298,7 @@ export default { }, cancel: function() { console.log('cancel'); - } + } }); } } @@ -329,7 +329,7 @@ export default { }, cancel: function() { console.log('cancel'); - } + } }); } } @@ -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-uitest.md b/en/application-dev/reference/apis/js-apis-uitest.md index d4b84b0d938725bb069cc482b29ce94c9c3c3bd4..d8291149c81c71418e57d91bfe6ac2b4569f6843 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-webSocket.md b/en/application-dev/reference/apis/js-apis-webSocket.md index 2b2fa3af70da2fd1725ef0221b8fd7cf5654f531..ae1f200331f1236cf299108ef0e871c4c6dcb6c0 100644 --- a/en/application-dev/reference/apis/js-apis-webSocket.md +++ b/en/application-dev/reference/apis/js-apis-webSocket.md @@ -4,7 +4,7 @@ The **webSocket** module implements WebSocket connection management and operatio > **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. -> + You can use WebSocket to establish a bidirectional connection between a server and a client. Before doing this, you need to use the [createWebSocket](#websocketcreatewebsocket) API to create a [WebSocket](#websocket) object and then use the [connect](#connect) API to connect to the server. If the connection is successful, the client will receive a callback of the [open](#onopen) event. Then, the client can communicate with the server using the [send](#send) API. When the server sends a message to the client, the client will receive a callback of the [message](#onmessage) event. If the client no longer needs this connection, it can call the [close](#close) API to disconnect from the server. Then, the client will receive a callback of the [close](#onclose) event. diff --git a/en/application-dev/reference/apis/js-apis-workScheduler.md b/en/application-dev/reference/apis/js-apis-workScheduler.md deleted file mode 100644 index d897bc91717348ee8addd00751741f83cc77c345..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/apis/js-apis-workScheduler.md +++ /dev/null @@ -1,361 +0,0 @@ -# Work Scheduler - -The **workScheduler** module provides the APIs for registering, canceling, and querying Work Scheduler tasks, which do not have real-time constraints. - -The system executes Work Scheduler tasks at an appropriate time, subject to the storage space, power consumption, temperature, and more. - -> **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 can be used only in the stage model. -> - For details about the constraints on the Work Scheduler usage, see [Work Scheduler Overview](../../task-management/work-scheduler-overview.md). - - -## Modules to Import - -```js -import workScheduler from '@ohos.workScheduler'; -``` - -## workScheduler.startWork -startWork(work: WorkInfo): boolean - -Instructs the **WorkSchedulerService** to add the specified task to the execution queue. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ---- | --------------------- | ---- | -------------- | -| work | [WorkInfo](#workinfo) | Yes | Task to be added to the execution queue.| - -**Return value** - -| Type | Description | -| ------- | -------------------------------- | -| boolean | Returns **true** if the task is added to the execution queue; returns **false** otherwise.| - -**Example** - -```js - let workInfo = { - workId: 1, - batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW, - isRepeat: false, - isPersisted: true, - bundleName: "com.example.myapplication", - abilityName: "MyExtension", - parameters: { - mykey0: 1, - mykey1: "string value", - mykey2: true, - mykey3: 1.5 - } - } - var res = workScheduler.startWork(workInfo); - console.info(`workschedulerLog res: ${res}`); -``` - -## workScheduler.stopWork -stopWork(work: WorkInfo, needCancel?: boolean): boolean - -Instructs the **WorkSchedulerService** to stop the specified task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ---------- | --------------------- | ---- | ---------- | -| work | [WorkInfo](#workinfo) | Yes | Task to stop. | -| needCancel | boolean | Yes | Whether to cancel the task.| - -**Return value** - -| Type | Description | -| ------- | ----------------------- | -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| - -**Example** - -```js - let workInfo = { - workId: 1, - batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW, - isRepeat: false, - isPersisted: true, - bundleName: "com.example.myapplication", - abilityName: "MyExtension", - parameters: { - mykey0: 1, - mykey1: "string value", - mykey2: true, - mykey3: 1.5 - } - } - var res = workScheduler.stopWork(workInfo, false); - console.info(`workschedulerLog res: ${res}`); -``` - -## workScheduler.getWorkStatus -getWorkStatus(workId: number, callback : AsyncCallback\): void - -Obtains the latest task status. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | ------------------------------------- | ---- | ---------------------------------------- | -| workId | number | Yes | Task ID. | -| callback | AsyncCallback\<[WorkInfo](#workinfo)> | Yes | Callback used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; returns **null** otherwise.| - -**Example** - -```js - workScheduler.getWorkStatus(50, (err, res) => { - if (err) { - console.info(`workschedulerLog getWorkStatus failed, because: ${err.code}`); - } else { - for (let item in res) { - console.info(`workschedulerLog getWorkStatus success, ${item} is: ${res[item]}`); - } - } - }); -``` - -## workScheduler.getWorkStatus -getWorkStatus(workId: number): Promise\ - -Obtains the latest task status. This API uses a promise to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | -------- | -| workId | number | Yes | Task ID.| - -**Return value** - -| Type | Description | -| ------------------------------- | ---------------------------------------- | -| Promise\<[WorkInfo](#workinfo)> | Promise used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; returns **null** otherwise.| - -**Example** - -```js - workScheduler.getWorkStatus(50).then((res) => { - for (let item in res) { - console.info(`workschedulerLog getWorkStatus success, ${item} is: ${res[item]}`); - } - }).catch((err) => { - console.info(`workschedulerLog getWorkStatus failed, because: ${err.code}`); - }) -``` - -## workScheduler.obtainAllWorks -obtainAllWorks(callback : AsyncCallback\): Array\ - -Obtains all tasks associated with this application. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | -------------------- | ---- | ------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return all tasks associated with the current application. | - -**Return value** - -| Type | Description | -| ----------------------------- | --------------- | -| Array\<[WorkInfo](#workinfo)> | All tasks associated with the current application.| - -**Example** - -```js - workScheduler.obtainAllWorks((err, res) =>{ - if (err) { - console.info(`workschedulerLog obtainAllWorks failed, because: ${err.code}`); - } else { - console.info(`workschedulerLog obtainAllWorks success, data is: ${JSON.stringify(res)}`); - } - }); -``` - -## workScheduler.obtainAllWorks -obtainAllWorks(): Promise> - -Obtains all tasks associated with this application. This API uses a promise to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Return value** - -| Type | Description | -| -------------------------------------- | ------------------------------ | -| Promise> | Promise used to return all tasks associated with the current application. | - -**Example** - -```js - workScheduler.obtainAllWorks().then((res) => { - console.info(`workschedulerLog obtainAllWorks success, data is: ${JSON.stringify(res)}`); - }).catch((err) => { - console.info(`workschedulerLog obtainAllWorks failed, because: ${err.code}`); - }) -``` - -## workScheduler.stopAndClearWorks -stopAndClearWorks(): boolean - -Stops and cancels all tasks associated with the current application. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Example** - -```js - let res = workScheduler.stopAndClearWorks(); - console.info(`workschedulerLog res: ${res}`); -``` - -## workScheduler.isLastWorkTimeOut -isLastWorkTimeOut(workId: number, callback : AsyncCallback\): boolean - -Checks whether the last execution of the specified task timed out. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | -------------------- | ---- | ---------------------------------------- | -| workId | number | Yes | Task ID. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. Returns **true** if the last execution of the specified task timed out; returns **false** otherwise.| - -**Return value** - -| Type | Description | -| ------- | ---------------------------------------- | -| boolean | Callback used to return the result. Returns **true** if the last execution of the specified task timed out; returns **false** otherwise.| - -**Example** - -```js - workScheduler.isLastWorkTimeOut(500, (err, res) =>{ - if (err) { - console.info(`workschedulerLog isLastWorkTimeOut failed, because: ${err.code}`); - } else { - console.info(`workschedulerLog isLastWorkTimeOut success, data is: ${res}`); - } - }); -``` - -## workScheduler.isLastWorkTimeOut -isLastWorkTimeOut(workId: number): Promise\ - -Checks whether the last execution of the specified task timed out. This API uses a promise to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | -------- | -| workId | number | Yes | Task ID.| - -**Return value** - -| Type | Description | -| ----------------- | ---------------------------------------- | -| Promise\ | Promise used to return the result. Returns **true** if the last execution of the specified task timed out; returns **false** otherwise.| - -**Example** - -```js - workScheduler.isLastWorkTimeOut(500) - .then(res => { - console.info(`workschedulerLog isLastWorkTimeOut success, data is: ${res}`); - }) - .catch(err => { - console.info(`workschedulerLog isLastWorkTimeOut failed, because: ${err.code}`); - }); -``` - -## WorkInfo -Provides detailed information about the task. For details about the constraints on configuring **WorkInfo**, see [Work Scheduler Overview](../../task-management/work-scheduler-overview.md). - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Type | Mandatory | Description | -| --------------- | --------------------------------- | ---- | ---------------- | -| workId | number | Yes | Task ID. | -| bundleName | string | Yes | Name of the Work Scheduler task bundle. | -| abilityName | string | Yes | Name of the component to be notified by a Work Scheduler callback.| -| networkType | [NetworkType](#networktype) | No | Network type. | -| isCharging | boolean | No | Whether the device is charging. | -| chargerType | [ChargingType](#chargingtype) | No | Charging type. | -| batteryLevel | number | No | Battery level. | -| batteryStatus | [BatteryStatus](#batterystatus) | No | Battery status. | -| storageRequest | [StorageRequest](#storagerequest) | No | Storage status. | -| isRepeat | boolean | No | Whether the task is repeated. | -| repeatCycleTime | number | No | Repeat interval. | -| repeatCount | number | No | Number of repeat times. | -| isPersisted | boolean | No | Whether to enable persistent storage for the task. | -| isDeepIdle | boolean | No | Whether the device needs to enter the idle state. | -| idleWaitTime | number | No | Time to wait in the idle state. | -| parameters | {[key: string]: any} | No | Carried parameters. | - -## NetworkType -Enumerates the network types that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| ---------------------- | ---- | ----------------------- | -| NETWORK_TYPE_ANY | 0 | Any network type. | -| NETWORK_TYPE_MOBILE | 1 | Mobile network. | -| NETWORK_TYPE_WIFI | 2 | Wi-Fi network. | -| NETWORK_TYPE_BLUETOOTH | 3 | Bluetooth network.| -| NETWORK_TYPE_WIFI_P2P | 4 | Wi-Fi P2P network. | -| NETWORK_TYPE_ETHERNET | 5 | Ethernet. | - -## ChargingType -Enumerates the charging types that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| ------------------------- | ---- | -------------------- | -| CHARGING_PLUGGED_ANY | 0 | Any charging type.| -| CHARGING_PLUGGED_AC | 1 | DC charging. | -| CHARGING_PLUGGED_USB | 2 | USB charging. | -| CHARGING_PLUGGED_WIRELESS | 3 | Wireless charging. | - -## BatteryStatus -Enumerates the battery states that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| -------------------------- | ---- | -------------------------- | -| BATTERY_STATUS_LOW | 0 | A low battery alert is displayed. | -| BATTERY_STATUS_OKAY | 1 | The battery level is restored from low to normal. | -| BATTERY_STATUS_LOW_OR_OKAY | 2 | The battery level is restored from low to normal, or a low battery alert is displayed.| - -## StorageRequest -Enumerates the storage states that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| ------------------------- | ---- | ------------------------------ | -| STORAGE_LEVEL_LOW | 0 | The storage space is insufficient. | -| STORAGE_LEVEL_OKAY | 1 | The storage space is restored from insufficient to normal. | -| STORAGE_LEVEL_LOW_OR_OKAY | 2 | The storage space is restored from insufficient to normal, or the storage space is insufficient.| diff --git a/en/application-dev/reference/arkui-js/js-components-common-mediaquery.md b/en/application-dev/reference/arkui-js/js-components-common-mediaquery.md index 7706bf2e0bda018d46bbc16bee5b5e4304f81f9c..30d94245e6e41d153dbe15f04e5f650a1f813a2e 100644 --- a/en/application-dev/reference/arkui-js/js-components-common-mediaquery.md +++ b/en/application-dev/reference/arkui-js/js-components-common-mediaquery.md @@ -64,11 +64,11 @@ Media logical operators (and, or, not, and only) are used to implement complex m | Type | Description | | -------- | ---------------------------------------- | -| and | The **and** operator is used to combine multiple media features into a media query, in a logical AND operation. The query is valid only when all media features are true. It can also combine media types and media functions.
For example, **screen and (device-type: wearable) and (max-height: 600)** indicates that the query is valid when the device is a wearable and the maximum height of the application is less than or equal to 600 pixels.| -| not | The **not** operator is used to perform a logical negation for a media query. **true** is returned if the query condition is not met. Otherwise, **false** is returned. In a media query list, logical negation is performed only for the media query using the **not** operator.
For example, **not screen and (min-height: 50) and (max-height: 600)** indicates that the query is valid when the height of the application is less than 50 pixels or greater than 600 pixels.
You must specify the media type when using the **not** operator.| +| and | The **and** operator is used to combine multiple media features into one media query, in a logical AND operation. The query is valid only when all media features are true. It can also combine media types and media functions.
For example, **screen and (device-type: wearable) and (max-height: 600) ** evaluates to true when the device type is wearable and the maximum height of the application is 600 pixel units.| +| not | The **not** operator is used to perform a logical negation for a media query. **true** is returned if the query condition is not met. Otherwise, **false** is returned. In a media query list, logical negation is performed only for the media query using the **not** operator.
For example, **not screen and (min-height: 50) and (max-height: 600) ** evaluates to true when the height of the application is less than 50 pixel units or greater than 600 pixel units.
You must specify the media type when using the **not** operator.| | only | The **only** operator applies the selected style only when the entire expression is matched. It can be used to prevent ambiguity on browsers of earlier versions. The statements that contain both media types and media features produce ambiguity when they are received by some browsers of earlier versions. For example:
screen and (min-height: 50)
The browsers of earlier versions would mislead this sentence into **screen**, causing the fact that the specified style is applied when only the media type is matched. In this case, the **only** operator can be used to avoid this problem.
You must specify the media type when using the **only** operator.| -| ,(comma) | The **or** operator is used to combine multiple media features into one media query, in a logical OR operation. The query is valid if a media feature is true. The effect of a comma operator is equivalent to that of the **or** operator.
For example, **screen and (min-height: 1000), (round-screen: true)** evaluates to true when the application height is greater than or equal to 1000 pixels or the device screen is rounded.| -| or | The **or** operator is used to combine multiple media features into one media query, in a logical OR operation. The query is valid if a media feature is true.
For example, **screen and (max-height: 1000) or (round-screen: true)** evaluates to true when the application height is less than or equal to 1000 pixels or the device screen is rounded.| +| ,(comma) | The **or** operator is used to combine multiple media features into one media query, in a logical OR operation. The query is valid if a media feature is true. The effect of a comma operator is equivalent to that of the **or** operator.
For example, **screen and (min-height: 1000), (round-screen: true) ** evaluates to true when the minimum height of the application is 1000 pixel units or the device screen is round.| +| or | The **or** operator is used to combine multiple media features into one media query, in a logical OR operation. The query is valid if a media feature is true.
For example, **screen and (max-height: 1000) or (round-screen: true)** evaluates to true when the maximum height of the application is 1000 pixel units or the device screen is round.| At MediaQuery Level 4, range query is imported so that you can use the operators including <=, >=, <, and > besides the max- and min-operators. @@ -76,10 +76,10 @@ At MediaQuery Level 4, range query is imported so that you can use the operators | Type | Description | | ----- | ---------------------------------------- | -| <= | Less than or equal to, for example, **screen and (50 <= height)**.| -| >= | Greater than or equal to, for example, **screen and (height >= 600)**.| -| < | Less than, for example, **screen and (50 < height)**.| -| > | Greater than, for example, **screen and (600 > height)**.| +| <= | Less than or equal to, for example, **screen and (height <= 50)**.| +| >= | Greater than or equal to, for example, **screen and (height >= 600)**.| +| < | Less than, for example, **screen and (height < 50)**.| +| > | Greater than, for example, **screen and (height > 600)**.| ## Media Features @@ -92,10 +92,10 @@ At MediaQuery Level 4, range query is imported so that you can use the operators | width | Width of the display area on the application page. | | min-width | Minimum width of the display area on the application page. | | max-width | Maximum width of the display area on the application page. | -| resolution | Resolution of the device. The unit can be dpi, dppx, or dpcm. Where:
- **dpi** indicates the number of physical pixels per inch. 1 dpi ≈ 0.39 dpcm.
- **dpcm** indicates the number of physical pixels per centimeter. 1 dpcm ≈ 2.54 dpi.
- **dppx** indicates the number of physical pixels in each pixel. The unit is 96 px = 1 inch, which is different from the calculation method of the pixel unit on the page. 1 dppx = 96 dpi.| +| resolution | Resolution of the device. The unit can be dpi, dppx, or dpcm.
- **dpi** indicates the number of physical pixels per inch. 1 dpi ≈ 0.39 dpcm.
- **dpcm** indicates the number of physical pixels per centimeter. 1 dpcm ≈ 2.54 dpi.
- **dppx** indicates the number of physical pixels per pixel. (This unit is calculated based on this formula: 96 px = 1 inch, which is different from the calculation method of the px unit on the page.) 1 dppx = 96 dpi. | | min-resolution | Minimum device resolution. | | max-resolution | Maximum device resolution. | -| orientation | Screen orientation.
Options are as follows:
- **orientation: portrait**: portrait screen orientation
- **orientation: landscape**: landscape screen orientation| +| orientation | Screen orientation.
Options are as follows:
- orientation: portrait
- orientation: landscape| | aspect-ratio | Ratio of the width to the height of the display area on the application page.
Example: **aspect-ratio:1/2**| | min-aspect-ratio | Minimum ratio of the width to the height of the display area on the application page. | | max-aspect-ratio | Maximum ratio of the width to the height of the display area on the application page. | @@ -105,13 +105,13 @@ At MediaQuery Level 4, range query is imported so that you can use the operators | device-width | Width of the device. | | min-device-width | Minimum width of the device. | | max-device-width | Maximum width of the device. | -| round-screen | Screen type. The value **true** indicates a circular screen, and **false** indicates a non-circular screen. | +| round-screen | Screen type. The value **true** means that the screen is round, and **false** means the opposite. | | dark-mode6+ | Whether the device is in dark mode. The value **true** means that the device is in dark mode, and **false** means the opposite. | -## Example +## Sample Code for the Common Media Feature -Sample code for the common media feature is as follows: +The number and type of attributes must be the same among **.container** blocks. Otherwise, display errors will occur. ```html 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/en-us_image_0000001194192434.png b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001194192434.png index f5cd637e5bf9db13e3334ca00413e3a91412c813..d2d75c22fdc20c39349b1397b52fb156a454d894 100644 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001194192434.png and b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001194192434.png differ diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001238832405.png b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001238832405.png index f5cd637e5bf9db13e3334ca00413e3a91412c813..d2d75c22fdc20c39349b1397b52fb156a454d894 100644 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001238832405.png and b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001238832405.png 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-canvasrenderingcontext2d.md b/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md index 1e0ce0647f6067d5396e131e6bcc7ac75bc6a718..b198676b1136bc19ff1c4bb0b266162478180339 100644 --- a/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md +++ b/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md @@ -306,9 +306,7 @@ struct CanvasExample { this.context.moveTo(140, 10) this.context.lineTo(140, 160) this.context.stroke() - this.context.font = '18px sans-serif' - this.context.textAlign = 'start' this.context.fillText('textAlign=start', 140, 60) this.context.textAlign = 'end' @@ -351,9 +349,7 @@ struct TextBaseline { this.context.moveTo(0, 120) this.context.lineTo(400, 120) this.context.stroke() - this.context.font = '20px sans-serif' - this.context.textBaseline = 'top' this.context.fillText('Top', 10, 120) this.context.textBaseline = 'bottom' @@ -392,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/en/application-dev/reference/arkui-ts/ts-container-listitem.md b/en/application-dev/reference/arkui-ts/ts-container-listitem.md index 9de0b8a25a4bf88c91c0883561cc9ff61b63c086..dadb0c4d47d81c8708e1a45ef454f9b350c6564d 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,8 +22,8 @@ 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. | -| 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**| +| 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 | boolean \| [EditMode](#editmode) | Whether to enter editing mode, where the list item can be deleted or moved.
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.
| @@ -35,8 +35,8 @@ This API is deprecated since API version 9. You are advised to use [stickyStyle] | Normal | The list item is sticky with no special effects.| | Opacity | The list item is sticky with opacity changes.| -## EditMode(deprecated) -This API is deprecated since API version 9. +## EditMode + | Name | Description | | ------ | --------- | | None | The editing operation is not restricted. | 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-offscreencanvasrenderingcontext2d.md b/en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md index 22e6077c68daf2b9cc835c9af1b514ed7670e57e..0f7d462061595e1d78647dd6e93dbd0b18f6585e 100644 --- a/en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md +++ b/en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md @@ -23,28 +23,27 @@ OffscreenCanvasRenderingContext2D(width: number, height: number, setting: Render ## Attributes -| Name | Type | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| [fillStyle](#fillstyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | Style to fill an area.
- When the type is **string**, this attribute indicates the color of the filling area.
- When the type is **CanvasGradient**, this attribute indicates a gradient object, which is created using the **[createLinearGradient](#createlineargradient)** API.
- When the type is **CanvasPattern**, this attribute indicates a pattern, which is created using the **[createPattern](#createpattern)** API.| -| [lineWidth](#linewidth) | number | Line width. | -| [strokeStyle](#strokestyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | Stroke style.
- When the type is **\**, this parameter indicates the stroke color.
- When the type is **CanvasGradient**, this attribute indicates a gradient object, which is created using the **[createLinearGradient](#createlineargradient)** API.
- When the type is **CanvasPattern**, this attribute indicates a pattern, which is created using the **[createPattern](#createpattern)** API.| -| [lineCap](#linecap) | CanvasLineCap | Style of the line endpoints. The options are as follows:
- **butt**: The endpoints of the line are squared off.
- **round**: The endpoints of the line are rounded.
- **square**: The endpoints of the line are squared off, and each endpoint has added a rectangle whose length is the same as the line thickness and whose width is half of the line thickness.
- Default value: **'butt'**| -| [lineJoin](#linejoin) | CanvasLineJoin | Style of the shape used to join line segments. The options are as follows:
- **round**: The intersection is a sector, whose radius at the rounded corner is equal to the line width.
- **bevel**: The intersection is a triangle. The rectangular corner of each line is independent.
- **miter**: The intersection has a miter corner by extending the outside edges of the lines until they meet. You can view the effect of this attribute in **miterLimit**.
- Default value: **'miter'**| -| [miterLimit](#miterlimit) | number | Maximum miter length. The miter length is the distance between the inner corner and the outer corner where two lines meet.
- Default value: **10**| -| [font](#font) | string | Font style.
Syntax: ctx.font='font-size font-family'
- (Optional) **font-size**: font size and row height. The unit can only be pixels.
(Optional) **font-family**: font family.
Syntax: ctx.font='font-style font-weight font-size font-family'
- (Optional) **font-style**: font style. Available values are **normal** and **italic**.
- (Optional) **font-weight**: font weight. Available values are as follows: **normal**, **bold**, **bolder**, **lighter**, **100**, **200**, **300**, **400**, **500**, **600**, **700**, **800**, **900**.
- (Optional) **font-size**: font size and row height. The unit can only be pixels.
- (Optional) **font-family**: font family. Available values are **sans-serif**, **serif**, and **monospace**.
Default value: **'normal normal 14px sans-serif'**| -| [textAlign](#textalign) | CanvasTextAlign | Text alignment mode. Available values are as follows:
- **left**: The text is left-aligned.
- **right**: The text is right-aligned.
- **center**: The text is center-aligned.
- **start**: The text is aligned with the start bound.
- **end**: The text is aligned with the end bound.
**NOTE**
In the **ltr** layout mode, the value **'start'** equals **'left'**. In the **rtl** layout mode, the value **'start'** equals **'right'**.
- Default value: **'left'**| -| [textBaseline](#textbaseline) | CanvasTextBaseline | Horizontal alignment mode of text. Available values are as follows:
- **alphabetic**: The text baseline is the normal alphabetic baseline.
- **top**: The text baseline is on the top of the text bounding box.
- **hanging**: The text baseline is a hanging baseline over the text.
- **middle**: The text baseline is in the middle of the text bounding box.
**'ideographic'**: The text baseline is the ideographic baseline. If a character exceeds the alphabetic baseline, the ideographic baseline is located at the bottom of the excess character.
- **bottom**: The text baseline is at the bottom of the text bounding box. Its difference from the ideographic baseline is that the ideographic baseline does not consider letters in the next line.
- Default value: **'alphabetic'**| -| [globalAlpha](#globalalpha) | number | Opacity.
**0.0**: completely transparent.
**1.0**: completely opaque. | -| [lineDashOffset](#linedashoffset) | number | Offset of the dashed line. The precision is float.
- Default value: **0.0**| -| [globalCompositeOperation](#globalcompositeoperation) | string | Composition operation type. Available values are as follows: **'source-over'**, **'source-atop'**, **'source-in'**, **'source-out'**, **'destination-over'**, **'destination-atop'**, **'destination-in'**, **'destination-out'**, **'lighter'**, **'copy'**, and **'xor'**.
- Default value: **'source-over'**| -| [shadowBlur](#shadowblur) | number | Blur level during shadow drawing. A larger value indicates a more blurred effect. The precision is float.
- Default value: **0.0**| -| [shadowColor](#shadowcolor) | string | Shadow color. | -| [shadowOffsetX](#shadowoffsetx) | number | X-axis shadow offset relative to the original object. | -| [shadowOffsetY](#shadowoffsety) | number | Y-axis shadow offset relative to the original object. | -| [imageSmoothingEnabled](#imagesmoothingenabled) | boolean | Whether to adjust the image smoothness during image drawing. The value **true** means to enable this feature, and **false** means the opposite.
- Default value: **true**| +| Name | Type | Description | +| ----------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| [fillStyle](#fillstyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | Style to fill an area.
- When the type is **string**, this attribute indicates the color of the filling area.
- When the type is **CanvasGradient**, this attribute indicates a gradient object, which is created using the **[createLinearGradient](#createlineargradient)** API.
- When the type is **CanvasPattern**, this attribute indicates a pattern, which is created using the **[createPattern](#createpattern)** API. | +| [lineWidth](#linewidth) | number | Line width. | +| [strokeStyle](#strokestyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | Stroke style.
- When the type is **\**, this parameter indicates the stroke color.
- When the type is **CanvasGradient**, this attribute indicates a gradient object, which is created using the **[createLinearGradient](#createlineargradient)** API.
- When the type is **CanvasPattern**, this attribute indicates a pattern, which is created using the **[createPattern](#createpattern)** API. | +| [lineCap](#linecap) | CanvasLineCap | Style of the line endpoints. The options are as follows:
- **butt**: The endpoints of the line are squared off.
- **round**: The endpoints of the line are rounded.
- **square**: The endpoints of the line are squared off, and each endpoint has added a rectangle whose length is the same as the line thickness and whose width is half of the line thickness.
- Default value: **'butt'** | +| [lineJoin](#linejoin) | CanvasLineJoin | Style of the shape used to join line segments. The options are as follows:
- **round**: The intersection is a sector, whose radius at the rounded corner is equal to the line width.
- **bevel**: The intersection is a triangle. The rectangular corner of each line is independent.
- **miter**: The intersection has a miter corner by extending the outside edges of the lines until they meet. You can view the effect of this attribute in **miterLimit**.
- Default value: **'miter'** | +| [miterLimit](#miterlimit) | number | Maximum miter length. The miter length is the distance between the inner corner and the outer corner where two lines meet.
- Default value: **10** | +| [font](#font) | string | Font style.
Syntax: ctx.font='font-size font-family'
- (Optional) **font-size**: font size and row height. The unit can only be pixels.
(Optional) **font-family**: font family.
Syntax: ctx.font='font-style font-weight font-size font-family'
- (Optional) **font-style**: font style. Available values are **normal** and **italic**.
- (Optional) **font-weight**: font weight. Available values are as follows: **normal**, **bold**, **bolder**, **lighter**, **100**, **200**, **300**, **400**, **500**, **600**, **700**, **800**, **900**.
- (Optional) **font-size**: font size and row height. The unit can only be pixels.
- (Optional) **font-family**: font family. Available values are **sans-serif**, **serif**, and **monospace**.
Default value: **'normal normal 14px sans-serif'** | +| [textAlign](#textalign) | CanvasTextAlign | Text alignment mode. Available values are as follows:
- **left**: The text is left-aligned.
- **right**: The text is right-aligned.
- **center**: The text is center-aligned.
- **start**: The text is aligned with the start bound.
- **end**: The text is aligned with the end bound.
**NOTE**
In the **ltr** layout mode, the value **'start'** equals **'left'**. In the **rtl** layout mode, the value **'start'** equals **'right'**.
- Default value: **'left'** | +| [textBaseline](#textbaseline) | CanvasTextBaseline | Horizontal alignment mode of text. Available values are as follows:
- **alphabetic**: The text baseline is the normal alphabetic baseline.
- **top**: The text baseline is on the top of the text bounding box.
- **hanging**: The text baseline is a hanging baseline over the text.
- **middle**: The text baseline is in the middle of the text bounding box.
**'ideographic'**: The text baseline is the ideographic baseline. If a character exceeds the alphabetic baseline, the ideographic baseline is located at the bottom of the excess character.
- **bottom**: The text baseline is at the bottom of the text bounding box. Its difference from the ideographic baseline is that the ideographic baseline does not consider letters in the next line.
- Default value: **'alphabetic'** | +| [globalAlpha](#globalalpha) | number | Opacity.
**0.0**: completely transparent.
**1.0**: completely opaque. | +| [lineDashOffset](#linedashoffset) | number | Offset of the dashed line. The precision is float.
- Default value: **0.0** | +| [globalCompositeOperation](#globalcompositeoperation) | string | Composition operation type. Available values are as follows: **'source-over'**, **'source-atop'**, **'source-in'**, **'source-out'**, **'destination-over'**, **'destination-atop'**, **'destination-in'**, **'destination-out'**, **'lighter'**, **'copy'**, and **'xor'**.
- Default value: **'source-over'** | +| [shadowBlur](#shadowblur) | number | Blur level during shadow drawing. A larger value indicates a more blurred effect. The precision is float.
- Default value: **0.0** | +| [shadowColor](#shadowcolor) | string | Shadow color. | +| [shadowOffsetX](#shadowoffsetx) | number | X-axis shadow offset relative to the original object. | +| [shadowOffsetY](#shadowoffsety) | number | Y-axis shadow offset relative to the original object. | +| [imageSmoothingEnabled](#imagesmoothingenabled) | boolean | Whether to adjust the image smoothness during image drawing. The value **true** means to enable this feature, and **false** means the opposite.
- Default value: **true** | > **NOTE** -> > For **fillStyle**, **shadowColor**, and **strokeStyle**, the value format of the string type is 'rgb(255, 255, 255)', 'rgba(255, 255, 255, 1.0)', '\#FFFFFF'. @@ -408,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)' @@ -748,7 +747,7 @@ strokeRect(x: number, y: number, w: number, h: number): void Draws an outlined rectangle on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ------ | ------ | ---- | ---- | ------------ | @@ -757,7 +756,7 @@ Draws an outlined rectangle on the canvas. | width | number | Yes | 0 | Width of the rectangle. | | height | number | Yes | 0 | Height of the rectangle. | -**Example** + **Example** ```ts // xxx.ets @@ -795,7 +794,7 @@ clearRect(x: number, y: number, w: number, h: number): void Clears the content in a rectangle on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ------ | ------ | ---- | ---- | ------------- | @@ -804,7 +803,7 @@ Clears the content in a rectangle on the canvas. | width | number | Yes | 0 | Width of the rectangle. | | height | number | Yes | 0 | Height of the rectangle. | -**Example** + **Example** ```ts // xxx.ets @@ -853,7 +852,7 @@ Draws filled text on the canvas. | y | number | Yes | 0 | Y-coordinate of the lower left corner of the text.| | maxWidth | number | No | - | Maximum width allowed for the text. | -**Example** + **Example** ```ts // xxx.ets @@ -901,7 +900,7 @@ Draws a text stroke on the canvas. | y | number | Yes | 0 | Y-coordinate of the lower left corner of the text.| | maxWidth | number | No | - | Maximum width of the text to be drawn. | -**Example** + **Example** ```ts // xxx.ets @@ -940,13 +939,13 @@ measureText(text: string): TextMetrics Returns a **TextMetrics** object used to obtain the width of specified text. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | ---------- | | text | string | Yes | "" | Text to be measured.| -**Return value** + **Return value** | Type | Description | | ----------- | ------- | @@ -970,7 +969,7 @@ Returns a **TextMetrics** object used to obtain the width of specified text. | hangingBaseline | number | Distance from the horizontal line specified by the **CanvasRenderingContext2D.textBaseline** attribute to the hanging baseline of the line box. The current value is **0**.| | ideographicBaseline | number | Distance from the horizontal line indicated by the **CanvasRenderingContext2D.textBaseline** attribute to the ideographic baseline of the line box. The current value is **0**.| -**Example** + **Example** ```ts // xxx.ets @@ -1010,13 +1009,13 @@ stroke(path?: Path2D): void Strokes a path. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ---------------------------------------- | ---- | ---- | ------------ | | path | [Path2D](ts-components-canvas-path2d.md) | No | null | A **Path2D** path to draw.| -**Example** + **Example** ```ts // xxx.ets @@ -1059,7 +1058,7 @@ beginPath(): void Creates a drawing path. -**Example** + **Example** ```ts // xxx.ets @@ -1102,14 +1101,14 @@ moveTo(x: number, y: number): void Moves a drawing path to a target position on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | --------- | | x | number | Yes | 0 | X-coordinate of the target position.| | y | number | Yes | 0 | Y-coordinate of the target position.| -**Example** + **Example** ```ts // xxx.ets @@ -1150,14 +1149,14 @@ lineTo(x: number, y: number): void Connects the current point to a target position using a straight line. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | --------- | | x | number | Yes | 0 | X-coordinate of the target position.| | y | number | Yes | 0 | Y-coordinate of the target position.| -**Example** + **Example** ```ts // xxx.ets @@ -1198,7 +1197,7 @@ closePath(): void Draws a closed path. -**Example** + **Example** ```ts // xxx.ets @@ -1254,7 +1253,7 @@ Creates a pattern for image filling based on a specified source image and repeti | ------------------------------- | ----------------------- | | [CanvasPattern](#canvaspattern) | Created pattern for image filling based on a specified source image and repetition mode.| -**Example** + **Example** ```ts // xxx.ets @@ -1295,7 +1294,7 @@ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, Draws a cubic bezier curve on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | -------------- | @@ -1306,7 +1305,7 @@ Draws a cubic bezier curve on the canvas. | x | number | Yes | 0 | X-coordinate of the end point on the bezier curve. | | y | number | Yes | 0 | Y-coordinate of the end point on the bezier curve. | -**Example** + **Example** ```ts // xxx.ets @@ -1347,7 +1346,7 @@ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void Draws a quadratic curve on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | ----------- | @@ -1356,7 +1355,7 @@ Draws a quadratic curve on the canvas. | x | number | Yes | 0 | X-coordinate of the end point on the bezier curve.| | y | number | Yes | 0 | Y-coordinate of the end point on the bezier curve.| -**Example** + **Example** ```ts // xxx.ets @@ -1397,7 +1396,7 @@ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, Draws an arc on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---------------- | ------- | ---- | ----- | ---------- | @@ -1408,7 +1407,7 @@ Draws an arc on the canvas. | endAngle | number | Yes | 0 | End radian of the arc. | | counterclockwise | boolean | No | false | Whether to draw the arc counterclockwise.| -**Example** + **Example** ```ts // xxx.ets @@ -1448,7 +1447,7 @@ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void Draws an arc based on the radius and points on the arc. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ------ | ------ | ---- | ---- | --------------- | @@ -1458,7 +1457,7 @@ Draws an arc based on the radius and points on the arc. | y2 | number | Yes | 0 | Y-coordinate of the second point on the arc.| | radius | number | Yes | 0 | Radius of the arc. | -**Example** + **Example** ```ts // xxx.ets @@ -1498,7 +1497,7 @@ ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number Draws an ellipse in the specified rectangular region on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---------------- | ------- | ---- | ----- | ----------------- | @@ -1511,7 +1510,7 @@ Draws an ellipse in the specified rectangular region on the canvas. | endAngle | number | Yes | 0 | Angle of the end point for drawing the ellipse. The unit is radian.| | counterclockwise | boolean | No | false | Whether to draw the ellipse counterclockwise.
**true**: Draw the ellipse counterclockwise.
**false**: Draw the ellipse clockwise. | -**Example** + **Example** ```ts // xxx.ets @@ -1550,7 +1549,7 @@ rect(x: number, y: number, w: number, h: number): void Creates a rectangle on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | ------------- | @@ -1559,7 +1558,7 @@ Creates a rectangle on the canvas. | w | number | Yes | 0 | Width of the rectangle. | | h | number | Yes | 0 | Height of the rectangle. | -**Example** + **Example** ```ts // xxx.ets @@ -1702,7 +1701,7 @@ Sets the current path to a clipping path. | -------- | -------------- | ---- | --------- | ---------------------------------------- | | fillRule | CanvasFillRule | No | "nonzero" | Rule by which to determine whether a point is inside or outside the area to clip.
The options are **"nonzero"** and **"evenodd"**.| -**Example** + **Example** ```ts // xxx.ets @@ -1749,7 +1748,7 @@ Sets a closed path to a clipping path. | path | Path2D | Yes | | A **Path2D** path to clip.| | fillRule | CanvasFillRule | No | "nonzero" | Rule by which to determine whether a point is inside or outside the area to clip.
The options are **"nonzero"** and **"evenodd"**.| -**Example** + **Example** ```ts // xxx.ets @@ -1827,13 +1826,13 @@ rotate(angle: number): void Rotates a canvas clockwise around its coordinate axes. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ----- | ------ | ---- | ---- | ---------------------------------------- | | angle | number | Yes | 0 | Clockwise rotation angle. You can use **Math.PI / 180** to convert the angle to a radian.| -**Example** + **Example** ```ts // xxx.ets @@ -1872,14 +1871,14 @@ scale(x: number, y: number): void Scales the canvas based on scale factors. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | ----------- | | x | number | Yes | 0 | Horizontal scale factor.| | y | number | Yes | 0 | Vertical scale factor.| -**Example** + **Example** ```ts // xxx.ets @@ -1930,7 +1929,7 @@ Defines a transformation matrix. To transform a graph, you only need to set para **Parameters** -| Name | Type | Mandatory | Default Value | Description | +| Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | -------------------- | | a | number | Yes | 0 | X-axis scale. | | b | number | Yes | 0 | X-axis skew. | @@ -1939,7 +1938,7 @@ Defines a transformation matrix. To transform a graph, you only need to set para | e | number | Yes | 0 | X-axis translation.| | f | number | Yes | 0 | Y-axis translation.| -**Example** + **Example** ```ts // xxx.ets @@ -1995,7 +1994,7 @@ Resets the existing transformation matrix and creates a new transformation matri | e | number | Yes | 0 | X-axis translation.| | f | number | Yes | 0 | Y-axis translation.| -**Example** + **Example** ```ts // xxx.ets @@ -2037,14 +2036,14 @@ translate(x: number, y: number): void Moves the origin of the coordinate system. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | -------- | | x | number | Yes | 0 | X-axis translation.| | y | number | Yes | 0 | Y-axis translation.| -**Example** + **Example** ```ts // xxx.ets @@ -2088,7 +2087,7 @@ drawImage(image: ImageBitmap | PixelMap, sx: number, sy: number, sw: number, sh: Draws an image on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ----- | ---------------------------------------- | ---- | ---- | ----------------------------- | @@ -2102,7 +2101,8 @@ Draws an image on the canvas. | dw | number | No | 0 | Width of the drawing area. | | dh | number | No | 0 | Height of the drawing area. | -**Example** + + **Example** ```ts // xxx.ets @@ -2140,7 +2140,7 @@ createImageData(sw: number, sh: number): ImageData Creates an **[ImageData](ts-components-canvas-imagedata.md)** object with the specified dimensions. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | ------------- | @@ -2152,7 +2152,7 @@ createImageData(imageData: ImageData): ImageData Creates an **[ImageData](ts-components-canvas-imagedata.md)** object by copying an existing **ImageData** object. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | --------- | ---------------------------------------- | ---- | ---- | ---------------- | @@ -2170,7 +2170,7 @@ getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap Obtains the **[PixelMap](../apis/js-apis-image.md#pixelmap7)** object created with the pixels within the specified area on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | --------------- | @@ -2192,7 +2192,7 @@ getImageData(sx: number, sy: number, sw: number, sh: number): ImageData Obtains the **[ImageData](ts-components-canvas-imagedata.md)** object created with the pixels within the specified area on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | --------------- | @@ -2207,6 +2207,7 @@ Obtains the **[ImageData](ts-components-canvas-imagedata.md)** object created wi | ---------------------------------------- | ------------- | | [ImageData](ts-components-canvas-imagedata.md) | New **ImageData** object.| + **Example** ```ts @@ -2250,7 +2251,7 @@ putImageData(imageData: Object, dx: number, dy: number, dirtyX: number, dirtyY: Puts an **[ImageData](ts-components-canvas-imagedata.md)** object onto a rectangular area on the canvas. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ----------- | ------ | ---- | ------------ | ----------------------------- | @@ -2262,7 +2263,7 @@ Puts an **[ImageData](ts-components-canvas-imagedata.md)** object onto a rectang | dirtyWidth | number | No | Width of the **ImageData** object| Width of the rectangular area to crop the source image. | | dirtyHeight | number | No | Height of the **ImageData** object| Height of the rectangular area to crop the source image. | -**Example** + **Example** ```ts // xxx.ets @@ -2453,7 +2454,7 @@ imageSmoothingQuality(quality: imageSmoothingQuality) Sets the quality of image smoothing. This API is a void API. -**Parameters** + **Parameters** | Name | Type | Description | | ------- | --------------------- | ---------------------------------------- | @@ -2472,7 +2473,8 @@ Creates an **ImageBitmap** object on the most recently rendered image of the **O | ---------------------------------------- | --------------- | | [ImageBitmap](ts-components-canvas-imagebitmap.md) | Pixel data rendered on the **OffscreenCanvas**.| -**Example** + + **Example** ```ts // xxx.ets @@ -2515,7 +2517,7 @@ restore(): void Restores the saved drawing context. -**Example** + **Example** ```ts // xxx.ets @@ -2556,7 +2558,7 @@ save(): void Saves the current drawing context. -**Example** + **Example** ```ts // xxx.ets @@ -2597,7 +2599,7 @@ createLinearGradient(x0: number, y0: number, x1: number, y1: number): void Creates a linear gradient. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | -------- | @@ -2606,7 +2608,7 @@ Creates a linear gradient. | x1 | number | Yes | 0 | X-coordinate of the end point.| | y1 | number | Yes | 0 | Y-coordinate of the end point.| -**Example** + **Example** ```ts // xxx.ets @@ -2649,7 +2651,7 @@ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, Creates a linear gradient. -**Parameters** + **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---- | ------ | ---- | ---- | ----------------- | @@ -2660,7 +2662,7 @@ Creates a linear gradient. | y1 | number | Yes | 0 | Y-coordinate of the center of the end circle. | | r1 | number | Yes | 0 | Radius of the end circle, which must be a non-negative finite number.| -**Example** + **Example** ```ts // xxx.ets 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-component-id.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md index 079220c606aeb636c21387cc389c41076f6a2e9d..72c361558b417f77d28024abda69e19bc7ad111e 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md @@ -39,7 +39,7 @@ This API is used only for test purposes. ### getInspectorTree9+ -getInspectorTree(): string +getInspectorTree(): Object Obtains the component tree and component attributes. @@ -49,7 +49,7 @@ This API is used only for test purposes. | Type | Description | | ------ | --------------------------- | -| string | JSON string of the component tree and component attribute list.| +| Object | JSON object of the component tree and component attribute list.| ### 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, "") // Send a long-click event to the component whose ID is "longClick". diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md index 7dbd1bb9ae97c46dc51208c9ec57ace60321868c..44ef15dc387f102ead0ba5b5031d0867b746c29e 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md @@ -18,27 +18,27 @@ You can bind a popup to a component, specifying its content, interaction logic, | Name | Type | Mandatory | Description | | -------------------------| ------------------------------------------------| -----| ----------------------------------------- | -| message | string | Yes | Content of the popup message. | -| placementOnTop | boolean | No | Whether to display the popup above the component. The default value is **false**. | -| primaryButton | {
value: string,
action: () => void
} | No | Primary button.
**value**: text of the primary button in the popup.
**action**: callback for clicking the primary button.| -| secondaryButton | {
value: string,
action: () => void
} | No | Secondary button.
**value**: text of the secondary button in the popup.
**action**: callback for clicking the secondary button.| -| onStateChange | (event: { isVisible: boolean }) => void | No | Callback for the popup status change event. The parameter **isVisible** indicates whether the popup is visible. | -| arrowOffset9+ | [Length](ts-types.md#length) | No | Offset of the popup arrow in the popup window. When residing above or below the popup, the arrow is offset to the left by default. When residing on the left or right side of the popup, the arrow is offset to the top by default.| -| showInSubWindow9+ | boolean | No| Whether to show the popup in the subwindow. The default value is **false**.| +| message | string | Yes | Content of the popup message. | +| placementOnTop | boolean | No | Whether to display the popup above the component.
Default value: **false** | +| primaryButton | {
value: string,
action: () => void
} | No | Primary button.
**value**: text of the primary button in the popup.
**action**: callback for clicking the primary button.| +| secondaryButton | {
value: string,
action: () => void
} | No | Secondary button.
**value**: text of the secondary button in the popup.
**action**: callback for clicking the secondary button.| +| onStateChange | (event: { isVisible: boolean }) => void | No | Callback for the popup status change event.
**isVisible**: whether the popup is visible. | +| arrowOffset9+ | [Length](ts-types.md#length) | No | Offset of the popup arrow relative to the popup.
When the arrow is at the top or bottom of the popup: The value 0 indicates that the arrow is located on the leftmost, and any other value indicates the distance from the arrow to the leftmost; the arrow is centered by default.
When the arrow is on the left or right side of the popup: The value indicates the distance from the arrow to the top; the arrow is centered by default.
When the popup is displayed on either edge of the screen, it will automatically deviate leftward or rightward to stay within the safe area. When the value is 0, the arrow always points to the bound component. | +| showInSubWindow9+ | boolean | No | Whether to show the popup in the subwindow.
Default value: **false** | ## CustomPopupOptions8+ | Name | Type | Mandatory | Description | | -------------------------| ------------------------- | ---- | ---------------------------------------------------- | -| builder | [CustomBuilder](ts-types.md#custombuilder8) | Yes | Popup builder. | -| placement | [Placement](ts-appendix-enums.md#placement8) | No | Preferred position of the popup. If the set position is insufficient for holding the popup, it will be automatically adjusted.
Default value: **Placement.Bottom** | -| maskColor | [ResourceColor](ts-types.md#resourcecolor) | No | Color of the popup mask. | -| popupColor | [ResourceColor](ts-types.md#resourcecolor) | No | Color of the popup. | -| enableArrow | boolean | No | Whether to display an arrow.
Since API version 9, if the location set for the popup arrow is not large enough, the arrow will not be displayed. For example, if **placement** is set to **Left** and the popup height is less than the arrow width (32 vp), the arrow will not be displayed.
Default value: **true**| -| autoCancel | boolean | No | Whether to automatically close the popup when an operation is performed on the page.
Default value: **true** | -| onStateChange | (event: { isVisible: boolean }) => void | No | Callback for the popup status change event. The parameter **isVisible** indicates whether the popup is visible.| -| arrowOffset9+ | [Length](ts-types.md#length) | No| Offset of the popup arrow in the popup window. When residing above or below the popup, the arrow is offset to the left by default. When residing on the left or right side of the popup, the arrow is offset to the top by default.| -| showInSubWindow9+ | boolean | No| Whether to show the popup in the subwindow. The default value is **false**.| +| builder | [CustomBuilder](ts-types.md#custombuilder8) | Yes | Popup builder. | +| placement | [Placement](ts-appendix-enums.md#placement8) | No | Preferred position of the popup. If the set position is insufficient for holding the popup, it will be automatically adjusted.
Default value: **Placement.Bottom** | +| maskColor | [ResourceColor](ts-types.md#resourcecolor) | No | Color of the popup mask. | +| popupColor | [ResourceColor](ts-types.md#resourcecolor) | No | Color of the popup. | +| enableArrow | boolean | No | Whether to display an arrow.
Since API version 9, if the position set for the popup is not large enough, the arrow will not be displayed. For example, if **placement** is set to **Left** but the popup height is less than twice the arrow width (64 vp), the arrow will not be displayed.
Default value: **true**| +| autoCancel | boolean | No | Whether to automatically close the popup when an operation is performed on the page.
Default value: **true** | +| onStateChange | (event: { isVisible: boolean }) => void | No | Callback for the popup status change event. The parameter **isVisible** indicates whether the popup is visible.| +| arrowOffset9+ | [Length](ts-types.md#length) | No | Offset of the popup arrow relative to the popup.
When the arrow is at the top or bottom of the popup: The value 0 indicates that the arrow is located on the leftmost, and any other value indicates the distance from the arrow to the leftmost; the arrow is centered by default.
When the arrow is on the left or right side of the popup: The value indicates the distance from the arrow to the top; the arrow is centered by default.
When the popup is displayed on either edge of the screen, it will automatically deviate leftward or rightward to stay within the safe area. When the value is 0, the arrow always points to the bound component. | +| showInSubWindow9+ | boolean | No | Whether to show the popup in the subwindow.
Default value: **false** | ## Example 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/syscap.md b/en/application-dev/reference/syscap.md index c800e185a8bd87029a9c83d4ab63065edcc448ce..03c2f4c42ba8d796582bab4debe536edcfafc3f9 100644 --- a/en/application-dev/reference/syscap.md +++ b/en/application-dev/reference/syscap.md @@ -4,11 +4,11 @@ ### System Capabilities and APIs -SystemCapability (SysCap in short) refers to a standalone feature in the operating system, for example, Bluetooth, Wi-Fi, NFC, or camera. Each SysCap corresponds to a set of APIs, whose availability depends on the support of the target device. Such a set of APIs can be provided in DevEco Studio for association. +SystemCapability (SysCap) refers to a standalone feature in the operating system, for example, Bluetooth, Wi-Fi, NFC, or camera. Each SysCap corresponds to a set of APIs, whose availability depends on the support of the target device. Such a set of APIs can be provided in DevEco Studio for association. ![image-20220326064841782](figures/image-20220326064841782.png) -For details about the SysCap sets in OpenHarmony, see [SysCap List](../reference/syscap-list.md). +For details about the SysCap sets in OpenHarmony, see [SysCap List](syscap-list.md). ### Supported SysCap Set, Associated SysCap Set, and Required SysCap Set @@ -93,19 +93,19 @@ By default, the associated SysCap set of an application is the union of multiple ### Checking Whether an API Is Available -- Method 1: Use the **canIUse** API predefined in OpenHarmony. +- Method 1: Use the **canIUse()** API to check whether a SysCap is supported. - ``` + ```ts if (canIUse("SystemCapability.ArkUI.ArkUI.Full")) { - console.log("This application supports SystemCapability.ArkUI.ArkUI.Full."); + console.log("This device supports SystemCapability.ArkUI.ArkUI.Full."); } else { - console.log("This application does not support SystemCapability.ArkUI.ArkUI.Full".); + console.log("This device does not support SystemCapability.ArkUI.ArkUI.Full."); } ``` - Method 2: Import a module using the **import** API. If the current device does not support the module, the import result is **undefined**. Before using an API, you must make sure the API is available. - ``` + ```ts import geolocation from '@ohos.geolocation'; if (geolocation) { @@ -122,7 +122,7 @@ You can also find out the SysCap to which an API belongs by referring to the API The performance of a SysCap may vary by device type. For example, a tablet is superior to a smart wearable device in terms of the camera capability. -``` +```ts import userAuth from '@ohos.userIAM.userAuth'; const authenticator = userAuth.getAuthenticator(); diff --git a/en/application-dev/security/accesstoken-guidelines.md b/en/application-dev/security/accesstoken-guidelines.md index 17efcb033e26b6e3ee62dfc9fa7be210040d6693..c2f85312639e4bdf40efd4a32dddacae9a51b9e4 100644 --- a/en/application-dev/security/accesstoken-guidelines.md +++ b/en/application-dev/security/accesstoken-guidelines.md @@ -147,7 +147,7 @@ Therefore, before allowing the application to call the API protected by the **oh If the verification result indicates that the application has the permission, the application can access the target API. Otherwise, the application needs to request user authorization and then proceeds based on the authorization result. For details, see [Access Control Overview](accesstoken-overview.md). -> **CAUATION** +> **CAUTION** > > The permission authorized by a user is not permanent, because the user may revoke the authorization at any time. Each time before the API protected by the permission is called, call **requestPermissionsFromUser()** to request the permission. @@ -178,7 +178,8 @@ The procedure for requesting user authorization is as follows: ``` > **NOTE** -> For details about how to use the APIs for the FA model, see [AbilityContext] (../reference/apis/js-apis-ability-context.md). +> +> For details about how to use the APIs for the FA model, see [AbilityContext](../reference/apis/js-apis-ability-context.md). ### Stage Model ```js diff --git a/en/application-dev/security/cert-guidelines.md b/en/application-dev/security/cert-guidelines.md index ed0e3e39a791b5c60055e9e200d764940ecfc12d..dd7238f966ce70ab5f1bbb6315c8e3184d6deada 100644 --- a/en/application-dev/security/cert-guidelines.md +++ b/en/application-dev/security/cert-guidelines.md @@ -71,7 +71,7 @@ let certData = "-----BEGIN CERTIFICATE-----\n" + "I1Lwu6in1ruflZhzseWulXwcITf3bm/Y5X1g1XFWQUH\n" + "-----END CERTIFICATE-----\n"; -// Convert the certificate data form a string to a Uint8Array.. +// Convert the certificate data form a string to a Uint8Array. function stringToUint8Array(str) { var arr = []; for (var i = 0, j = str.length; i < j; i++) { @@ -209,7 +209,7 @@ let crlData = "-----BEGIN X509 CRL-----\n" + "DrAA7hErVgXhtURLbAI=\n" + "-----END X509 CRL-----\n"; -// Convert the certificate data form a string to a Uint8Array.. +// Convert the certificate data form a string to a Uint8Array. function stringToUint8Array(str) { var arr = []; for (var i = 0, j = str.length; i < j; i++) { @@ -260,7 +260,7 @@ function crlSample() { console.log("isRevoked failed, errCode: " + error.code + ", errMsg: " + error.message); } - // Obtain the PubKey instance by using generateKeyPair() or convertKey() of AsyKeyGenerator. The process is omitted here. + // The binary data of the public key needs to be passed to convertKey() of @ohos.security.cryptoFramework to obtain the PubKey object. The process is omitted here. let pubKey = null; // Verify the CRL signature. @@ -441,7 +441,7 @@ function crlEntrySample() { } // Obtain the serial number of the revoked certificate. - let serialNumber = crlEntry.getSerialNumber(); + serialNumber = crlEntry.getSerialNumber(); // Obtain the revocation date of the revoked certificate. try { diff --git a/en/application-dev/security/cryptoFramework-overview.md b/en/application-dev/security/cryptoFramework-overview.md index 9b0248563b33df85f26ff10b33432465ba6cf367..c8b92f162e7186f4a593d220ef0e9acc94d884b9 100644 --- a/en/application-dev/security/cryptoFramework-overview.md +++ b/en/application-dev/security/cryptoFramework-overview.md @@ -1,11 +1,16 @@ # Crypto Framework Overview The cryptographic (crypto for shot) framework shields the implementation differences of third-party cryptographic algorithm libraries and implements encryption and decryption, signing and signature verification, message authentication code (MAC), hashes, and secure random numbers. You can use the APIs provided by this framework to implement cipher development quickly. + +> **NOTE** +> +> The crypto framework provides cryptographic operations on keys, but not key management. It is used when the application keeps the key (for example, temporary session keys are used only in the memory or the application implements secure key storage). If the system is required to provide key management (such as key storage), use the [HUKS](huks-overview.md). + ## Working Principles The crypto framework provides components in the following layers: - Interface layer: provides unified JS interface externally. -- Plugin layer: implements third-party algorithm libraries. -- Framework layer: flexibly loads the plugins in the plugin layer to adapt to third-party algorithm libraries and shields the implementation differences between these libraries. +- Framework layer: implements third-party algorithm libraries. +- Plug-in layer: loads plug-ins at the plug-in layer to adapt to third-party algorithm libraries and shield implementation differences between these libraries. ## Basic Concepts **Symmetric Key** @@ -25,7 +30,7 @@ In the asymmetric cryptography, a private and public key pair is required. The p - RSA key - The security of RSA relies on the factoring problem, that is, the difficulty of factoring the product of two large prime numbers. The keys for the RSA algorithm are generated as follows: + The security of RSA relies on the factoring problem, that is, the difficulty of factoring the product of two large prime numbers. The keys for the RSA algorithm are generated as follows:
1. Generate two large prime numbers **p** and **q**. @@ -33,11 +38,10 @@ In the asymmetric cryptography, a private and public key pair is required. The p **n** is used as the modulus for both the public and private keys, and is released as part of the public key. - 3. Choose an integer **e** such that 1 < **e** < (**p** - 1) x (**q** - 1), that is, **e** and (**p** - 1) x (**q** - 1) are coprime. - - 4. Compute **d**. + 3. Choose an integer **e** such that 1 < **e** < (**p** - 1) x (**q** - 1), that is, **e** and (**p** - 1) x (**q** - 1) are coprime. - **e** x **d** - 1 is a multiple of (**p** - 1) and (**q** - 1). + 4. Compute **d**.
**e** x **d** - 1 is a multiple of (**p** - 1) and (**q** - 1). + The public key consists of the modulus **n** and the public exponent **e**. The private key consists of **n** and the private exponent **d**. @@ -53,57 +57,51 @@ In the asymmetric cryptography, a private and public key pair is required. The p The algorithm library provides the following cipher modes of operation for AES: ECB, CBC, OFB, CFB, CTR, GCM, and CCM. AES is a block cipher, with a fixed block size of 128 bits. In actual applications, the last block of plaintext may be less than 128 bits and needs to be padded. The padding options are as follows: - **NoPadding**: no padding. - - **PKCS5**: pads a block cipher with a block size of 8 bytes. - - **PKCS7**: The PKCS #7 padding scheme is the same as that of PKCS #5 padding except that PKCS #5 padding is defined for 8-byte block sizes, while PKCS #5 padding works for any block size from 1 to 255 bytes. + + - **PKCS5**: pads a block cipher with a block size of 8 bytes - > **NOTE** - > - > In ECB and CBC, the plaintext must be padded if its length is not an integer multiple of 128 bits.
Since the plaintext is padded to the block size, the PKCS #5 and PKCS #7 used in the algorithm library use the block size as the padding length. That is, data is padded to 16 bytes in AES encryption. + - **PKCS7**: The PKCS #7 padding scheme is the same as that of PKCS #5 padding except that PKCS #5 padding is defined for 8-byte block sizes, while PKCS #5 padding works for any block size from 1 to 255 bytes. -- Symmetric 3DES encryption and decryption + + + > **NOTE**
In ECB and CBC, the plaintext must be padded if its length is not an integer multiple of 128 bits.
Since the plaintext is padded to the block size, the PKCS #5 and PKCS #7 used in the algorithm library use the block size as the padding length. That is, data is padded to 16 bytes in AES encryption. + +- **Symmetric 3DES Encryption and Decryption** 3DES encryption and decryption apply the DES cipher three times to each data block to obtain the ciphertext or plaintext. The algorithm library provides the following cipher modes of operation for 3DES encryption and decryption: ECB, CBC, OFB, and CFB. DES is a block cipher, with a fixed block size of 64 bits. In actual applications, the last block of plaintext may be less than 64 bits and needs to be padded. The padding options are as follows: - **NoPadding**: no padding. - - **PKCS5**: pads a block cipher with a block size of 8 bytes. + + - **PKCS5**: pads a block cipher with a block size of 8 bytes + - **PKCS7**: The PKCS #7 padding scheme is the same as that of PKCS #5 padding except that PKCS #5 padding is defined for 8-byte block sizes, while PKCS #5 padding works for any block size from 1 to 255 bytes. - > **NOTE** - > - > In ECB and CBC, the plaintext must be padded if its length is not an integer multiple of 64 bits.
Since the plaintext is padded to the block size, the PKCS #5 and PKCS #7 used in the algorithm library use the block size as the padding length. That is, data is padded to 8 bytes in 3DES encryption. + -- Asymmetric RSA encryption and decryption + > **NOTE**
In ECB and CBC, the plaintext must be padded if its length is not an integer multiple of 64 bits.
Since the plaintext is padded to the block size, the PKCS #5 and PKCS #7 used in the algorithm library use the block size as the padding length. That is, data is padded to 8 bytes in 3DES encryption. - After the RSA public key (n, e) and private key (n, d) are held, the RSA encryption process is as follows: - - Ciphertext = Plaintext ^ **e** mod **n** - - The decryption process is as follows: - - Plaintext = Ciphertext ^ **d** mod **n** +- **Asymmetric RSA Encryption and Decryption** + + After the RSA public key (n, e) and private key (n, d) are held, the RSA encryption process is as follows:
Ciphertext = Plaintext ^ **e** mod **n**
The decryption process is as follows:
Plaintext = Ciphertext ^ **d** mod **n** The algorithm library provides the following modes of operation for RSA encryption and decryption: **PKCS1**, **PKCS1_ OAEP**, and **NoPadding**. RSA is a block cipher, with fixed-length blocks. In actual applications, diverse padding modes are used. The padding options are as follows: - **NoPadding**: No padding is required. The length of the input or output data must be the same as that of the RSA key modulus. + - **PKCS1**: PKCS #1 v1.5 is the default padding mode for RSA encryption and decryption. The length of the input data must be less than or equal to the RSA key modulus minus 11, and the length of the output data must be the same as that of the RSA key modulus. + - **PKCS1_OAEP**: The RSA_PKCS1_OAEP_PADDING is a new padding mode provided by PKCS #1. In this mode, two digests (**md** and **mgf1_md**) must be set. The length of the input data must be less than RSA key modulus length minus the **md** length, **mgf1_md** length, and two. The length of the output data must be the same as that of the RSA key modulus. - > **NOTE** - > - > Length of the RSA key modulus = (Number of RSA bits + 7)/8 + > **NOTE** + > + > Length of the RSA key modulus = (Number of RSA bits + 7)/8 **Signing and Signature Verification** - RSA signing and signature verification - After the RSA public key (n, e) and private key (n, d) are held, the RSA signature is generated as follows: - - Signature = Message ^ **d** mod **n** - - The signature verification process is as follows: - - Message = Signature ^ **d** mod **n** + After the RSA public key (n, e) and private key (n, d) are held, the RSA signature is generated as follows:
Signature = Message ^ **d** mod **n**
The signature verification process is as follows:
Message = Signature ^ **d** mod **n** The sender sends the message and the signature signed by the private key. The receiver decrypts the signature using the public key to verify the signature. Generally, the message sent is longer than the RSA key modulus. Therefore, the crypto framework provides two padding modes to extract the hash value of the message digest before signing the message. The crypto framework provides the following padding modes for signing and signature verification: @@ -129,8 +127,10 @@ When the same digest algorithm is used, the generated digest (hash value) has th - The digest generated is of the fixed length no matter the length of messages. (The digest length is determined by the algorithm used). - It is almost impossible to find two different messages with the same hash value. (The probability still exists, depending on the length of the digest.) -There are three types of message digest algorithms: MD, SHA, and MAC. For details, see section **HMAC**. +There are three types of message digest algorithms: MD, SHA, and MAC. For details, see **HMAC**. + MD algorithms include MD2, MD4, and MD5. + Major SHA algorithms include SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512. **HMAC** @@ -141,63 +141,54 @@ Hash-based Message Authentication Code (HMAC) is a key-based message authenticat Random numbers are mainly used to generate temporary session keys or keys in asymmetric encryption. They are generated by a hardware random number generator or software-based pseudo-random number generator. In encryption and decryption, a secure random number generator must feature randomness, unrepeatability, and unpredictability. The random numbers generated by the Cryptography Secure Random Number Generator (CSPRNG) meet the requirements of cryptography security pseudo-randomness. -- Internal state - - A value in the random number generator memory. The same internal state produces the same sequence of the random number. - -- Seed - - A number used to initialize the internal state of a pseudorandom number generator. The random number generator generates a series of random sequences based on the seeds. +- Internal state
A value in the random number generator memory. The same internal state produces the same sequence of the random number. +- Seed
A number used to initialize the internal state of a pseudorandom number generator. The random number generator generates a series of random sequences based on the seeds. ## Constraints -The crypto framework does not support concurrent operations of multiple threads. +- The crypto framework does not support concurrent operations of multiple threads. +- Currently, the algorithm library supports only OpenSSL. ### Key Generation Specifications **Symmetric Key Generation Specifications** -The following parameters are supported: +- The following parameters are supported: -|Symmetric Key Algorithm|Key Length (Bit)|String Parameter| -|---|---|---| -|3DES|192|3DES192| -|AES|128|AES128| -|AES|192|AES192| -|AES|256|AES256| + |Symmetric Key Algorithm|Key Length (Bit)|String Parameter| + |---|---|---| + |3DES|192|3DES192| + |AES|128|AES128| + |AES|192|AES192| + |AES|256|AES256| - > **NOTE** - > - > **String Parameter** is a combination of **Symmetric Key Algorithm** and **Key Length**. It specifies the key specifications when a symmetric key generator is created. + > **NOTE**
**String Parameter** is a combination of **Symmetric Key Algorithm** and **Key Length**. It specifies the key specifications when a symmetric key generator is created. **Asymmetric Key Generation Specifications** - - **RSA key generation** The following parameters are supported: - |Asymmetric Key Algorithm|Key Length (Bit)|Number of Primes|String Parameter| - |---|---|---|---| - |RSA|512|2|RSA512\|PRIMES_2| - |RSA|768|2|RSA768\|PRIMES_2| - |RSA|1024|2|RSA1024\|PRIMES_2| - |RSA|1024|3|RSA1024\|PRIMES_3| - |RSA|2048|2|RSA2048\|PRIMES_2| - |RSA|2048|3|RSA2048\|PRIMES_3| - |RSA|3072|2|RSA3072\|PRIMES_2| - |RSA|3072|3|RSA3072\|PRIMES_3| - |RSA|4096|2|RSA4096\|PRIMES_2| - |RSA|4096|3|RSA4096\|PRIMES_3| - |RSA|4096|4|RSA4096\|PRIMES_4| - |RSA|8192|2|RSA8192\|PRIMES_2| - |RSA|8192|3|RSA8192\|PRIMES_3| - |RSA|8192|4|RSA8192\|PRIMES_4| - |RSA|8192|5|RSA8192\|PRIMES_5| - - > **NOTE** - > - > When an RSA asymmetric key is generated, the default prime number is 2, and **PRIMES_2** is optional. + |Asymmetric Key Type|Number of Primes|String Parameter| + |---|---|---| + |RSA512|2|RSA512\|PRIMES_2| + |RSA768|2|RSA768\|PRIMES_2| + |RSA1024|2|RSA1024\|PRIMES_2| + |RSA1024|3|RSA1024\|PRIMES_3| + |RSA2048|2|RSA2048\|PRIMES_2| + |RSA2048|3|RSA2048\|PRIMES_3| + |RSA3072|2|RSA3072\|PRIMES_2| + |RSA3072|3|RSA3072\|PRIMES_3| + |RSA4096|2|RSA4096\|PRIMES_2| + |RSA4096|3|RSA4096\|PRIMES_3| + |RSA4096|4|RSA4096\|PRIMES_4| + |RSA8192|2|RSA8192\|PRIMES_2| + |RSA8192|3|RSA8192\|PRIMES_3| + |RSA8192|4|RSA8192\|PRIMES_4| + |RSA8192|5|RSA8192\|PRIMES_5| + + > **NOTE**
When an RSA asymmetric key is generated, the default prime number is 2, and **PRIMES_2** is optional. - **ECC key generation** @@ -214,95 +205,223 @@ The following parameters are supported: **Symmetric Encryption and Decryption** -The following symmetric encryption algorithms are supported: - -|Algorithm|Block Cipher Mode| String Parameter | -|---|---|---| -|3DES|ECB|3DES192\|ECB\|[NoPadding\|PKCS5\|PKCS7]| -|3DES|CBC|3DES192\|CBC\|[NoPadding\|PKCS5\|PKCS7]| -|3DES|OFB|3DES192\|OFB\|[NoPadding\|PKCS5\|PKCS7]| -|3DES|CFB|3DES192\|CFB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|ECB|AES[128\|192\|256]\|ECB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CBC|AES[128\|192\|256]\|CBC\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CTR|AES[128\|192\|256]\|CTR\|[NoPadding\|PKCS5\|PKCS7]| -|AES|OFB|AES[128\|192\|256]\|OFB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CFB|AES[128\|192\|256]\|CFB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|GCM|AES[128\|192\|256]\|GCM\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CCM|AES[128\|192\|256]\|CCM\|[NoPadding\|PKCS5\|PKCS7]| +- The following symmetric encryption algorithms are supported: + + |Algorithm|Block Cipher Mode| String Parameter | + |---|---|---| + |3DES|ECB|3DES192\|ECB\|[NoPadding\|PKCS5\|PKCS7]| + |3DES|CBC|3DES192\|CBC\|[NoPadding\|PKCS5\|PKCS7]| + |3DES|OFB|3DES192\|OFB\|[NoPadding\|PKCS5\|PKCS7]| + |3DES|CFB|3DES192\|CFB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|ECB|AES[128\|192\|256]\|ECB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CBC|AES[128\|192\|256]\|CBC\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CTR|AES[128\|192\|256]\|CTR\|[NoPadding\|PKCS5\|PKCS7]| + |AES|OFB|AES[128\|192\|256]\|OFB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CFB|AES[128\|192\|256]\|CFB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|GCM|AES[128\|192\|256]\|GCM\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CCM|AES[128\|192\|256]\|CCM\|[NoPadding\|PKCS5\|PKCS7]| > **NOTE** +> > - The options included in the square brackets ([]) are mutually exclusive. +> > - **String Parameter** is a combination of **Algorithm** (including the key length), **Block Cipher Mode**, and padding mode. It specifies the symmetric encryption/decryption algorithm specifications when a symmetric encryption/decryption instance is created. **Asymmetric RSA Encryption and Decryption** The crypto framework provides three padding modes for RSA encryption/decryption: **NoPadding**, **PKCS1**, and **PKCS1_OAEP**. -- If **NoPadding** is used, specify the parameter as follows: - - [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|NoPadding - -- If **PKCS1** is used, specify the parameter as follows: - - [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PKCS1 - -- If **PKCS1_OAEP** is used, specify the parameter as follows: - - [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PKCS1_OAEP|[MD5|SHA1|SHA224|SHA256|SHA384|SHA512]|[MGF1_MD5|MGF1_SHA1|MGF1_SHA224|MGF1_SHA256|MGF1_SHA384|MGF1_SHA512] +- Parameters for **NoPadding** + + |Asymmetric Key Type| Padding Mode| String Parameter| + |---|---|---| + |RSA512|NoPadding|RSA512\|NoPadding| + |RSA768|NoPadding|RSA768\|NoPadding| + |RSA1024|NoPadding|RSA1024\|NoPadding| + |RSA2048|NoPadding|RSA2048\|NoPadding| + |RSA3072|NoPadding|RSA3072\|NoPadding| + |RSA4096|NoPadding|RSA4096\|NoPadding| + |RSA8192|NoPadding|RSA8192\|NoPadding| + +- Parameters for **PKCS1** + + |Asymmetric Key Type| Padding Mode| String Parameter| + |---|---|---| + |RSA512|PKCS1|RSA512\|PKCS1| + |RSA768|PKCS1|RSA768\|PKCS1| + |RSA1024|PKCS1|RSA1024\|PKCS1| + |RSA2048|PKCS1|RSA2048\|PKCS1| + |RSA3072|PKCS1|RSA3072\|PKCS1| + |RSA4096|PKCS1|RSA4096\|PKCS1| + |RSA8192|PKCS1|RSA8192\|PKCS1| + +- Parameters for **PKCS1_OAEP** + > **NOTE** + > + > - The options included in the square brackets ([]) are mutually exclusive. The options outside the square brackets are fixed values. + > - Combine the asymmetric key type, padding mode, digest, and mask digest, with a vertical bar (|) in between. For example, **RSA2048|PKCS1_OAEP|SHA256|MGF1_SHA256**. + +| Asymmetric Key Type| Padding Mode| Digest| Mask Digest| +|---|---|---|---| +|RSA512|PKCS1_OAEP|MD5| [MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| +|RSA512|PKCS1_OAEP|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| +|RSA512|PKCS1_OAEP|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| +|RSA512|PKCS1_OAEP|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]| +|RSA768|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA768|PKCS1_OAEP|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA768|PKCS1_OAEP|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA768|PKCS1_OAEP|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| +|RSA768|PKCS1_OAEP|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| +|RSA768|PKCS1_OAEP|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]| +|RSA1024|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA1024|PKCS1_OAEP|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA1024|PKCS1_OAEP|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA1024|PKCS1_OAEP|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA1024|PKCS1_OAEP|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA1024|PKCS1_OAEP|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| +|RSA2048|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA2048|PKCS1_OAEP|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA2048|PKCS1_OAEP|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA2048|PKCS1_OAEP|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA2048|PKCS1_OAEP|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA2048|PKCS1_OAEP|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA3072|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA3072|PKCS1_OAEP|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA3072|PKCS1_OAEP|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA3072|PKCS1_OAEP|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA3072|PKCS1_OAEP|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA3072|PKCS1_OAEP|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA4096|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA4096|PKCS1_OAEP|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA4096|PKCS1_OAEP|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA4096|PKCS1_OAEP|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA4096|PKCS1_OAEP|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA4096|PKCS1_OAEP|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA8192|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA8192|PKCS1_OAEP|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA8192|PKCS1_OAEP|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA8192|PKCS1_OAEP|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512 ]| +|RSA8192|PKCS1_OAEP|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| +|RSA8192|PKCS1_OAEP|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| -> **NOTE** -> -> The options included in the square brackets ([]) are mutually exclusive, and the options outside [] are fixed values. ### Signing and Signature Verification Specifications **RSA Signing and Signature Verification** The crypto framework provides two padding modes for RSA signing and signature verification: **PKCS1** and **PSS**. -- If **PKCS1** is used, specify the parameter as follows: - - [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PKCS1|[MD5|SHA1|SHA224|SHA256|SHA384|SHA512] +- Parameters for **PKCS1** -- If **PSS** is used, specify the parameter as follows: + | Asymmetric Key Type| Padding Mode| Digest| String Parameter| + |---|---|---|---| + |RSA512|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384]|RSA512\|PKCS1\| [MD5\|SHA1\|SHA224\|SHA256\|SHA384]| + |RSA768|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA768\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA1024|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA1024\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA2048|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA2048\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA3072|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA3072\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA4096|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA4096\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA8192|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA8192\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + +- Parameters for **PSS** + > **NOTE** + > + > - The options included in the square brackets ([]) are mutually exclusive. The options outside the square brackets are fixed values. + > + > - Combine the asymmetric key type, padding mode, digest, and mask digest, with a vertical bar (|) in between. For example, **RSA2048|PSS|SHA256|MGF1_SHA256**. - [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PSS|[MD5|SHA1|SHA224|SHA256|SHA384|SHA512]|[MGF1_MD5|MGF1_SHA1|MGF1_SHA224|MGF1_SHA256|MGF1_SHA384|MGF1_SHA512] -> **NOTE** -> -> The options included in the square brackets ([]) are mutually exclusive, and the options outside [] are fixed values. + | Asymmetric Key Type| Padding Mode| Digest| Mask Digest| + |---|---|---|---| + |RSA512|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PSS|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PSS|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PSS|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]|RSA512\|PSS\|SHA256\|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]| + |RSA768|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PSS|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PSS|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PSS|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| + |RSA768|PSS|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA768|PSS|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]| + |RSA1024|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA-512| [MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| + |RSA2048|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA-512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA-1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA-224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA-256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA-384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA-512| [MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| **ECDSA Signing and Signature Verification** -The following ECDSA parameters are supported: +- The following ECDSA parameters are supported: -|Asymmetric Key Algorithm|Supported Type| -|---|---| -|ECC|ECC224| -|ECC|ECC256| -|ECC|ECC384| -|ECC|ECC521| + |Asymmetric Key Algorithm|Supported Type| + |---|---| + |ECC|ECC224| + |ECC|ECC256| + |ECC|ECC384| + |ECC|ECC521| -|Digest Algorithm|Supported Type| -|---|---| -|HASH|SHA-1| -|HASH|SHA-224| -|HASH|SHA-256| -|HASH|SHA-384| -|HASH|SHA-512| + |Digest Algorithm|Supported Type| + |---|---| + |HASH|SHA-1| + |HASH|SHA-224| + |HASH|SHA-256| + |HASH|SHA-384| + |HASH|SHA-512| ### Key Agreement Specifications **ECDH** - The following ECDH parameters are supported: +- The following ECDH parameters are supported: -|Asymmetric Key Algorithm|Supported Type| -|---|---| -|ECC|ECC224| -|ECC|ECC256| -|ECC|ECC384| -|ECC|ECC521| + |Asymmetric Key Algorithm|Supported Type| + |---|---| + |ECC|ECC224| + |ECC|ECC256| + |ECC|ECC384| + |ECC|ECC521| ### MD Algorithm Specifications -The crypto framework supports only MD5. +- The crypto framework supports the following MD algorithm parameters: -### SHA Algorithm Specifications -The crypto framework supports only SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512. + |Digest Algorithm|Supported Type| + |---|---| + |HASH|SHA-1| + |HASH|SHA-224| + |HASH|SHA-256| + |HASH|SHA-384| + |HASH|SHA-512| + |HASH|MD5| + +### HMAC Algorithm Specifications +- The crypto framework supports the following HMAC algorithm parameters: + + |Digest Algorithm|Supported Type| + |---|---| + |HASH|SHA-1| + |HASH|SHA-224| + |HASH|SHA-256| + |HASH|SHA-384| + |HASH|SHA-512| diff --git a/en/application-dev/security/huks-guidelines.md b/en/application-dev/security/huks-guidelines.md index b72be28c24888642d1220779104477d28a170176..e6a18e1bef77969fb5dfde8284a7dc233d3c4254 100644 --- a/en/application-dev/security/huks-guidelines.md +++ b/en/application-dev/security/huks-guidelines.md @@ -6,7 +6,7 @@ OpenHarmony Universal KeyStore (HUKS) provides KeyStore (KS) capabilities for ap > > This document is based on API version 9 and applies only to ArkTS development. -### **Prerequisites** +### Prerequisites The HUKS module must have been imported. @@ -32,14 +32,14 @@ The following lists the mandatory parameters for key generation, including the k | ------------------ | :----------------------------------------------------------- | ------------------------------------------------------------ | | HUKS_ALG_RSA | HUKS_RSA_KEY_SIZE_512 HUKS_RSA_KEY_SIZE_768 HUKS_RSA_KEY_SIZE_1024 HUKS_RSA_KEY_SIZE_2048 HUKS_RSA_KEY_SIZE_3072 HUKS_RSA_KEY_SIZE_4096 | HUKS_KEY_PURPOSE_ENCRYPT HUKS_KEY_PURPOSE_DECRYPT HUKS_KEY_PURPOSE_SIGN HUKS_KEY_PURPOSE_VERIFY | | HUKS_ALG_AES | HUKS_AES_KEY_SIZE_128 HUKS_AES_KEY_SIZE_192 HUKS_AES_KEY_SIZE_256 | HUKS_KEY_PURPOSE_ENCRYPT HUKS_KEY_PURPOSE_DECRYPT HUKS_KEY_PURPOSE_DERIVE | -| HUKS_ALG_ECC | HUKS_ECC_KEY_SIZE_224, HUKS_ECC_KEY_SIZE_256, HUKS_ECC_KEY_SIZE_384, HUKS_ECC_KEY_SIZE_521| HUKS_KEY_PURPOSE_SIGN HUKS_KEY_PURPOSE_VERIFY | +| HUKS_ALG_ECC | HUKS_ECC_KEY_SIZE_224 HUKS_ECC_KEY_SIZE_256 HUKS_ECC_KEY_SIZE_384 HUKS_ECC_KEY_SIZE_521 | HUKS_KEY_PURPOSE_SIGN HUKS_KEY_PURPOSE_VERIFY | | HUKS_ALG_X25519 | HUKS_CURVE25519_KEY_SIZE_256 | HUKS_KEY_PURPOSE_AGREE | | HUKS_ALG_ED25519 | HUKS_CURVE25519_KEY_SIZE_256 | HUKS_KEY_PURPOSE_SIGN HUKS_KEY_PURPOSE_VERIFY | | HUKS_ALG_DSA | HUKS_RSA_KEY_SIZE_1024 | HUKS_KEY_PURPOSE_SIGN HUKS_KEY_PURPOSE_VERIFY | -| HUKS_ALG_DH | HUKS_DH_KEY_SIZE_2048, HUKS_DH_KEY_SIZE_3072, HUKS_DH_KEY_SIZE_4096| HUKS_KEY_PURPOSE_AGREE | -| HUKS_ALG_ECDH | HUKS_ECC_KEY_SIZE_224, HUKS_ECC_KEY_SIZE_256, HUKS_ECC_KEY_SIZE_384, HUKS_ECC_KEY_SIZE_521| HUKS_KEY_PURPOSE_AGREE | +| HUKS_ALG_DH | HUKS_DH_KEY_SIZE_2048 HUKS_DH_KEY_SIZE_3072 HUKS_DH_KEY_SIZE_4096 | HUKS_KEY_PURPOSE_AGREE | +| HUKS_ALG_ECDH | HUKS_ECC_KEY_SIZE_224 HUKS_ECC_KEY_SIZE_256 HUKS_ECC_KEY_SIZE_384 HUKS_ECC_KEY_SIZE_521 | HUKS_KEY_PURPOSE_AGREE | | HUKS_ALG_SM2 | HUKS_SM2_KEY_SIZE_256 | HUKS_KEY_PURPOSE_SIGN HUKS_KEY_PURPOSE_VERIFY | -| HUKS_ALG_SM4 | HUKS_SM4_KEY_SIZE_128 | HUKS_KEY_PURPOSE_ENCRYPT or HUKS_KEY_PURPOSE_DECRYPT | +| HUKS_ALG_SM4 | HUKS_SM4_KEY_SIZE_128 | HUKS_KEY_PURPOSE_ENCRYPT or HUKS_KEY_PURPOSE_DECRYPT | Before you get started, understand the following variables: @@ -2032,7 +2032,9 @@ function deleteKeyItem(keyAlias:string, huksOptions:huks.HuksOptions) { }); } -let signVerifyInData = 'signVerifyInDataForTest'; +let signVerifyInData1 = 'signVerifyInDataForTestFirstText'; +let signVerifyInData2 = 'signVerifyInDataForTestSecondText'; +let signVerifyInData = [signVerifyInData1, signVerifyInData2]; let generateKeyAlias = 'generateKeyAliasForTest'; let importKeyAlias = 'importKeyAliasForTest'; let handle; @@ -2121,8 +2123,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); @@ -2141,8 +2145,10 @@ async function testSm2SignVerify() { 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/en/application-dev/security/permission-list.md b/en/application-dev/security/permission-list.md index 279a3a223407f068f06075e16347f9b472505992..f3e380bbfd572a2bd159801f8fecee60af5e681b 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 diff --git a/en/application-dev/security/permission-verify-guidelines.md b/en/application-dev/security/permission-verify-guidelines.md index cca11b49b4f02be2631b354adf47c83d4d57e2c1..738c6ddb5dd28136cbc50e1faa8982a057b36c75 100644 --- a/en/application-dev/security/permission-verify-guidelines.md +++ b/en/application-dev/security/permission-verify-guidelines.md @@ -2,7 +2,7 @@ ## When to Use -To protect sensitive data and eliminate security threads on core abilities, you can use the permissions in the [App Permission List](permission-list.md) to protect the related API from unauthorized calling. Each time before the API is called, a permission verification is performed to check whether the caller has the required permission. +To protect sensitive data and eliminate security threads on core abilities, you can use the permissions in the [Application Permission List](permission-list.md) to protect the related API from unauthorized calling. Each time before the API is called, a permission verification is performed to check whether the caller has the required permission. ## Available APIs @@ -18,8 +18,14 @@ The table below lists only the API used in this guide. For more information, see The procedure is as follows: 1. Obtain the caller's identity (**tokenId**). + + > **NOTE**
+ > Use **getCallingTokenId** to obtain the caller's **tokenId**. For details, see [RPC](../reference/apis/js-apis-rpc.md#getcallingtokenid8). + 2. Determine the permission to verify, which is **ohos.permission.PERMISSION** in this example. + 3. Call **verifyAccessToken()** to perform a permission verification of the caller. + 4. Proceed based on the permission verification result. ```js @@ -42,5 +48,3 @@ The procedure is as follows: } ``` -> **NOTE**
-> You can use **getCallingTokenId** to obtain the caller's **tokenId**. For details, see [RPC](../reference/apis/js-apis-rpc.md#getcallingtokenid8). diff --git a/en/application-dev/task-management/workscheduler-extensionability.md b/en/application-dev/task-management/workscheduler-extensionability.md index 9f7547fcb317389dcb4791190ef3d5bcd211ec32..f33f3be98868dc3c8d7890eb50ba127133749d98 100644 --- a/en/application-dev/task-management/workscheduler-extensionability.md +++ b/en/application-dev/task-management/workscheduler-extensionability.md @@ -44,7 +44,7 @@ To create a WorkScheduler project in DevEco Studio, perform the following steps: Import the module. ```ts - import WorkSchedulerExtensionAbility from '@ohos.WorkSchedulerExtensionAbility' + import WorkSchedulerExtensionAbility from '@ohos.WorkSchedulerExtensionAbility'; ``` Implement the lifecycle callbacks for the WorkSchedulerExtensionAbility. @@ -53,27 +53,27 @@ To create a WorkScheduler project in DevEco Studio, perform the following steps: export default class workAbility extends WorkSchedulerExtensionAbility { // Callback invoked when the Work Scheduler task starts. onWorkStart(workInfo) { - console.log(`onWorkStart CommonEvent publish start ${JSON.stringify(workInfo)}`) + console.log(`onWorkStart CommonEvent publish start ${JSON.stringify(workInfo)}`); // Publish an upgrade notification. - let notificationRequest = notification.getNotificationContentBasic('upgrade', upgradeMessage, '') + let notificationRequest = notification.getNotificationContentBasic('upgrade', upgradeMessage, ''); notification.publish(notificationRequest, (err) => { if (err) { - console.log(`onWorkStart notification publish err ${JSON.stringify(err)}`) + console.log(`onWorkStart notification publish err ${JSON.stringify(err)}`); } - console.log(`onWorkStart notification publish success`) - }) + console.log(`onWorkStart notification publish success`); + }); } // Callback invoked when the Work Scheduler task stops. onWorkStop(workInfo) { // Publish an upgrade completion notification. - let notificationRequest = notification.getNotificationContentBasic('upgrade', 'upgrade success', '') + let notificationRequest = notification.getNotificationContentBasic('upgrade', 'upgrade success', ''); notification.publish(notificationRequest, (err) => { if (err) { - console.log(`onWorkStop notification publish err ${JSON.stringify(err)}`) + console.log(`onWorkStop notification publish err ${JSON.stringify(err)}`); } - console.log(`onWorkStop notification publish success`) - }) + console.log(`onWorkStop notification publish success`); + }); } } ``` @@ -82,25 +82,25 @@ To create a WorkScheduler project in DevEco Studio, perform the following steps: Import the module. - ```ts - import { workAbility } from '@ohos/library' - ``` + ```ts + import { workAbility } from '@ohos/library'; + ``` Inherit from **workAbility** and implement the lifecycle callbacks for the WorkSchedulerExtensionAbility. - ```ts + ```ts export default class WorkTest extends workAbility { onWorkStart(workInfo) { - console.log(`onWorkStartTest start ${JSON.stringify(workInfo)}`) - super.onWorkStart(workInfo) + console.log(`onWorkStartTest start ${JSON.stringify(workInfo)}`); + super.onWorkStart(workInfo); } - - onWorkStopTest(workInfo) { - super.onWorkStop(workInfo) - console.log(`onWorkStop value`) + + onWorkStopTest(workInfo) { + super.onWorkStop(workInfo); + console.log(`onWorkStop value`); } } - ``` + ``` ### Implementing Work Scheduler @@ -109,7 +109,7 @@ Inherit from **workAbility** and implement the lifecycle callbacks for the WorkS Import the module. ```ts - import workScheduler from '@ohos.resourceschedule.workScheduler' + import workScheduler from '@ohos.resourceschedule.workScheduler'; ``` Encapsulate the APIs for starting and stopping Work Scheduler tasks. @@ -124,13 +124,13 @@ Inherit from **workAbility** and implement the lifecycle callbacks for the WorkS } // Start the Work Scheduler task. startWork(bundleName: string, abilityName: string) { - this.workInfo.bundleName = bundleName - this.workInfo.abilityName = abilityName + this.workInfo.bundleName = bundleName; + this.workInfo.abilityName = abilityName; try { - workScheduler.startWork(this.workInfo) - console.log(`startWork success`) + workScheduler.startWork(this.workInfo); + console.log(`startWork success`); } catch (error) { - Logger.error(TAG, `startWork startwork failed. code is ${error.code} message is ${error.message}`) + Logger.error(TAG, `startWork startwork failed. code is ${error.code} message is ${error.message}`); prompt.showToast({ message: `${error.message}` }) @@ -139,10 +139,10 @@ Inherit from **workAbility** and implement the lifecycle callbacks for the WorkS // Stop the Work Scheduler task. stopWork(bundleName: string, abilityName: string) { - this.workInfo.bundleName = bundleName - this.workInfo.abilityName = abilityName - workScheduler.stopWork(this.workInfo, false) - console.log(`stopWork`) + this.workInfo.bundleName = bundleName; + this.workInfo.abilityName = abilityName; + workScheduler.stopWork(this.workInfo, false); + console.log(`stopWork`); } } ``` @@ -152,7 +152,7 @@ Inherit from **workAbility** and implement the lifecycle callbacks for the WorkS Import the module. ```ts - import { workAbility } from '@ohos/library' + import { workAbility } from '@ohos/library'; ``` Add the **Upgrade** button, which, when being clicked, will call the API encapsulated in **library** to start the Work Scheduler task. In the API, **bundleName** and **abilityName** are passed in, where the value of **abilityName** is **WorkTest**. @@ -163,7 +163,7 @@ Inherit from **workAbility** and implement the lifecycle callbacks for the WorkS .height(40) .fontSize(30) .onClick(() => { - this.work.startWork('ohos.samples.workscheduler', 'WorkTest') + this.work.startWork('ohos.samples.workscheduler', 'WorkTest'); }) ``` @@ -171,7 +171,7 @@ Inherit from **workAbility** and implement the lifecycle callbacks for the WorkS ```ts aboutToDisappear() { - this.work.stopWork('ohos.samples.workscheduler', 'WorkTest') + this.work.stopWork('ohos.samples.workscheduler', 'WorkTest'); } ``` 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/device-dev/device-test/xdevice.md b/en/device-dev/device-test/xdevice.md index 0b33efa70e1d06c45673c287a4c0373f1db6f8cc..dd65022b37a1397978e714f0d90c425aafa50bc3 100644 --- a/en/device-dev/device-test/xdevice.md +++ b/en/device-dev/device-test/xdevice.md @@ -476,7 +476,7 @@ Check whether xDevice runs properly. The COM port whose **type** is **cmd** corresponds to the AT command serial port on the board. The port is used to send commands to the device. In the example, the **ChA(COM20)** serial port is used. - L0-1 + ![L0-1](figures/L0-1.PNG) IP camera devices have two connection modes. One is to connect through the local serial port, and the other is to connect through the IP address of the local area network. @@ -492,7 +492,7 @@ Check whether xDevice runs properly. Add an NFS sharing path, for example, **D:\HS\NFS_Share_File -public –alldirs**. Note that the FTP IP address 192.168.1.10 is the IP address of the development board. - + ![](figures/NFS-2.PNG) 3. Stop the NFS server and restart the NFS server to make the added sharing path take effect. diff --git a/en/device-dev/get-code/sourcecode-acquire.md b/en/device-dev/get-code/sourcecode-acquire.md index 08809554460c986eae58f3d0a0ece2b6bb58904d..fabdaf59165ce21b79f602a063f7b401a4438289 100644 --- a/en/device-dev/get-code/sourcecode-acquire.md +++ b/en/device-dev/get-code/sourcecode-acquire.md @@ -168,28 +168,28 @@ You must install **Node.js** and HPM on your local PC. The installation procedur To ensure the download performance, you are advised to download the source code or the corresponding solution from the image library of the respective site listed in the table below. -The table below provides only the sites for downloading the latest OpenHarmony LTS code. For details about how to obtain the source code of earlier versions, see the [Release Notes]([Release Notes](../../release-notes/Readme.md). +The table below provides only the sites for downloading the latest OpenHarmony LTS code. For details about how to obtain the source code of earlier versions, see the [Release Notes](../../release-notes/Readme.md). **Table 1** Sites for acquiring source code -| **LTS Code**| **Version Information**| **Site**| **SHA-256 Verification Code**| -| -------- | -------- | -------- | -------- | -| Full code base (for mini, small, and standard systems)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz.sha256)| -| Standard system solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz.sha256)| -| Hi3861 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz.sha256)| -| Hi3518 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz.sha256)| -| Hi3516 solution-LiteOS (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz)| -| Hi3516 solution-Linux (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz.sha256) | -| Release Notes | 3.0 | [Download](https://gitee.com/openharmony/docs/blob/OpenHarmony-3.0-LTS/en/release-notes/OpenHarmony-v3.0-LTS.md)| - | -| **Source code of the Latest Release**| **Version Information**| **Site**| **SHA-256 Verification Code**| -| Full code base (for mini, small, and standard systems)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/code-v3.2-Beta3.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/code-v3.2-Beta3.tar.gz.sha256)| -| RK3568 standard system solution (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/standard_rk3568.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.1.1/standard_rk3568.tar.gz.sha256)| -| Hi3861 solution (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_pegasus.tar.gz.sha256) | -| Hi3516 solution-LiteOS (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_taurus.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta3/hispark_taurus_LiteOS.tar.gz.sha256)| -| Hi3516 solution-Linux (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta3/hispark_taurus_Linux.tar.gz.sha256)| -| Release Notes | 3.2 Beta3 | [Download](../../release-notes/OpenHarmony-v3.2-beta3.md)| - | -| **Compiler Toolchain**| **Version Information**| **Site**| **SHA-256 Verification Code**| -| Compiler toolchain| - | [Download](https://repo.huaweicloud.com/openharmony/os/2.0/tool_chain/)| - | +| **LTS Code**| **Version**| **Site**| **SHA-256 Checksum**| **Software Package Size**| +| -------- | -------- | -------- | -------- | -------- | +| Full code base (for mini, small, and standard systems)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz.sha256)| 7.0 GB | +| Standard system solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz.sha256)| 973.7 MB | +| Hi3861 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz.sha256)| 16.5 MB | +| Hi3518 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz.sha256)| 158.1 MB | +| Hi3516 solution-LiteOS (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz)| 248.9 MB | +| Hi3516 solution-Linux (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz.sha256) | 418.1 MB | +| RELEASE-NOTES | 3.0 | [Download](https://gitee.com/openharmony/docs/blob/OpenHarmony-3.0-LTS/en/release-notes/OpenHarmony-v3.0-LTS.md)| - | - | +| **Source Code of the Latest Release**| **Version**| **Site**| **SHA-256 Checksum**| **Software Package Size**| +| Full code base (for mini, small, and standard systems)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz.sha256) | 19.0 GB | +| RK3568 standard system solution (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz.sha256) | 3.2 GB | +| Hi3861 solution (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz.sha256) | 22.6 MB | +| Hi3516 solution-LiteOS (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz.sha256)| 293.9 MB | +| Hi3516 solution-Linux (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_Linux.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_Linux.tar.gz.sha256)| 173.2 MB | +| RELEASE-NOTES | 3.2 Beta4 | [Download](../../release-notes/OpenHarmony-v3.2-beta4.md)| - | - | +| **Compiler Toolchain**| **Version**| **Site**| **SHA-256 Checksum**| **Software Package Size**| +| Compiler toolchain| - | [Download](https://repo.huaweicloud.com/openharmony/os/2.0/tool_chain/)| - | - | ## Method 4: Acquiring Source Code from the GitHub Image Repository @@ -219,82 +219,19 @@ The following table describes the OpenHarmony source code directories. **Table 2** Source code directories - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Name

-

Description

-

applications

-

Application samples, for example, camera

-

base

-

Basic software service subsystem set and hardware service subsystem set

-

build

-

Bundle-based compilation, build, and configuration scripts

-

docs

-

Reference documents

-

domains

-

Enhanced software service subsystem set

-

drivers

-

Driver subsystem

-

foundation

-

Basic system capability subsystem set

-

kernel

-

Kernel subsystem

-

prebuilts

-

Compiler and toolchain subsystem

-

test

-

Testing subsystem

-

third_party

-

Open-source third-party software

-

utils

-

Commonly used development tools

-

vendor

-

Vendor-provided software

-

build.py

-

Compilation script file

-
+| Directory| Description| +| -------- | -------- | +| applications | Application samples, for example, **camera**.| +| base | Basic software service subsystem set and hardware service subsystem set.| +| build | Bundle-based compilation, building, and configuration scripts.| +| docs | Reference documents.| +| domains | Enhanced software service subsystem set.| +| drivers | Driver subsystem.| +| foundation | Basic system capability subsystem set.| +| kernel | Kernel subsystem.| +| prebuilts | Compiler and tool chain subsystem.| +| test | Test subsystem.| +| third_party | Open-source third-party software.| +| utils | Commonly used development utilities.| +| vendor | Vendor-provided software.| +| build.py | Build script file.| diff --git a/en/device-dev/kernel/Readme-EN.md b/en/device-dev/kernel/Readme-EN.md index 243ae9fb87332aa7ba04b381fecc814f610ffb93..47a8e490fe57fad8be004c3cfeba2dec9d729b5f 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) @@ -43,19 +44,19 @@ - Memory Management - [Heap Memory Management](kernel-small-basic-memory-heap.md) - [Physical Memory Management](kernel-small-basic-memory-physical.md) - - [Virtual Memory Management](kernel-small-basic-memory-virtual.md) - - [Virtual-to-Physical Mapping](kernel-small-basic-inner-reflect.md) + - [Virtual Memory Management](kernel-small-basic-memory-virtual.md) + - [Virtual-to-Physical Mapping](kernel-small-basic-inner-reflect.md) - Kernel Communication Mechanisms - [Event](kernel-small-basic-trans-event.md) - - [Semaphore](kernel-small-basic-trans-semaphore.md) - - [Mutex](kernel-small-basic-trans-mutex.md) + - [Semaphore](kernel-small-basic-trans-semaphore.md) + - [Mutex](kernel-small-basic-trans-mutex.md) - [Queue](kernel-small-basic-trans-queue.md) - [RW Lock](kernel-small-basic-trans-rwlock.md) - [Futex](kernel-small-basic-trans-user-mutex.md) - [Signal](kernel-small-basic-trans-user-signal.md) - [Time Management](kernel-small-basic-time.md) - - [Software Timer](kernel-small-basic-softtimer.md) - - [Atomic Operation](kernel-small-basic-atomic.md) + - [Software Timer](kernel-small-basic-softtimer.md) + - [Atomic Operation](kernel-small-basic-atomic.md) - Extension Components - [System Call](kernel-small-bundles-system.md) - [Dynamic Loading and Linking](kernel-small-bundles-linking.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/figures/futex-design.jpg b/en/device-dev/kernel/figures/futex-design.jpg index f6c83d6434f3c68d1baecbf42db9a3df21568b49..a7ab34d091c5d6bd1a983d1aedbf9ea7a5617feb 100644 Binary files a/en/device-dev/kernel/figures/futex-design.jpg and b/en/device-dev/kernel/figures/futex-design.jpg differ 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-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-atomic.md b/en/device-dev/kernel/kernel-small-basic-atomic.md index 12045b51bfb493d204ddde26a55c9f8bc29a28d7..2e90511144127670e55af081dc07d6e10fd76cf3 100644 --- a/en/device-dev/kernel/kernel-small-basic-atomic.md +++ b/en/device-dev/kernel/kernel-small-basic-atomic.md @@ -3,216 +3,98 @@ ## Basic Concepts -In an OS that supports multiple tasks, modifying data in a memory area requires three steps: read data, modify data, and write data. However, data in a memory area may be simultaneously accessed by multiple tasks. If the data modification is interrupted by another task, the execution result of the operation is unpredictable. +In an OS that supports multiple tasks, modifying data in memory involves three steps: read data, modify data, and write data. However, the data may be simultaneously accessed by multiple tasks. If the data modification is interrupted by another task, an unexpected result will be caused. -Although you can enable or disable interrupts to ensure that the multi-task execution results meet expectations, the system performance is affected. +Although you can enable or disable interrupts to ensure expected results of multiple tasks, the system performance is affected. -The ARMv6 architecture has introduced the **LDREX** and **STREX** instructions to support more discreet non-blocking synchronization of the shared memory. The atomic operations implemented thereby can ensure that the "read-modify-write" operations on the same data will not be interrupted, that is, the operation atomicity is ensured. +The ARMv6 architecture has introduced the **LDREX** and **STREX** instructions to support more discreet non-blocking synchronization of the shared memory. The atomic operations implemented thereby can ensure that the "read-modify-write" operations on the same data will not be interrupted, that is, the operation atomicity is ensured. -## Working Principles - -The OpenHarmony system has encapsulated the **LDREX** and **STREX** in the ARMv6 architecture to provide a set of atomic operation APIs. - -- LDREX Rx, \[Ry\] - - Reads the value in the memory and marks the exclusive access to the memory segment. - - Reads the 4-byte memory data pointed by the register **Ry** and saves the data to the **Rx** register. - - Adds an exclusive access flag to the memory area pointed by **Ry**. - -- STREX Rf, Rx, \[Ry\] - - Checks whether the memory has an exclusive access flag. If yes, the system updates the memory value and clears the flag. If no, the memory is not updated. +## Working Principles - - If there is an exclusive access flag, the system: - - Updates the **Rx** register value to the memory pointed to by the **Ry** register. - - Sets the **Rf** register to **0**. +OpenHarmony has encapsulated the **LDREX** and **STREX** in the ARMv6 architecture to provide a set of atomic operation APIs. - - If there is no exclusive access flag: - - The memory is not updated. - - The system sets the **Rf** register to **1**. +- LDREX Rx, [Ry] + Reads the value in the memory and marks the exclusive access to the memory segment. + - Reads the 4-byte memory data pointed by the register **Ry** and saves the data to the **Rx** register. + - Adds an exclusive access flag to the memory area pointed by **Ry**. +- STREX Rf, Rx, [Ry] + Checks whether the memory has an exclusive access flag. If yes, the system updates the memory value and clears the flag. If no, the memory is not updated. + - If there is an exclusive access flag, the system: + - Updates the **Rx** register value to the memory pointed to by the **Ry** register. + - Sets the **Rf** register to **0**. + - If there is no exclusive access flag: + - The memory is not updated. + - The system sets the **Rf** register to **1**. -- Flag register - - If the flag register is **0**, the system exits the loop and the atomic operation is complete. - - If the flag register is **1**, the system continues the loop and performs the atomic operation again. +- Flag register + - If the flag register is **0**, the system exits the loop and the atomic operation is complete. + - If the flag register is **1**, the system continues the loop and performs the atomic operation again. ## Development Guidelines + ### Available APIs -The following table describes the APIs available for the OpenHarmony LiteOS-A kernel atomic operation module. For more details about the APIs, see the API reference. - -**Table 1** Atomic operation APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Read

-

LOS_AtomicRead

-

Reads 32-bit atomic data.

-

LOS_Atomic64Read

-

Reads 64-bit atomic data.

-

Write

-

LOS_AtomicSet

-

Sets 32-bit atomic data.

-

LOS_Atomic64Set

-

Sets 64-bit atomic data.

-

Add

-

LOS_AtomicAdd

-

Adds 32-bit atomic data.

-

LOS_Atomic64Add

-

Adds 64-bit atomic data.

-

LOS_AtomicInc

-

Adds 1 to 32-bit atomic data.

-

LOS_Atomic64Inc

-

Adds 1 to 64-bit atomic data.

-

LOS_AtomicIncRet

-

Adds 1 to 32-bit atomic data and returns the data.

-

LOS_Atomic64IncRet

-

Adds 1 to 64-bit atomic data and returns the data.

-

Subtract

-

LOS_AtomicSub

-

Performs subtraction on 32-bit atomic data.

-

LOS_Atomic64Sub

-

Performs subtraction on 64-bit atomic data.

-

LOS_AtomicDec

-

Subtracts 1 from 32-bit atomic data.

-

LOS_Atomic64Dec

-

Subtracts 1 from 64-bit atomic data.

-

LOS_AtomicDecRet

-

Subtracts 1 from 32-bit atomic data and returns the result.

-

LOS_Atomic64DecRet

-

Subtracts 1 from 64-bit atomic data and returns the result.

-

Swap

-

LOS_AtomicXchgByte

-

Swaps 8-bit memory data.

-

LOS_AtomicXchg16bits

-

Swaps 16-bit memory data.

-

LOS_AtomicXchg32bits

-

Swaps 32-bit memory data.

-

LOS_AtomicXchg64bits

-

Swaps 64-bit memory data.

-

Compare and swap

-

LOS_AtomicCmpXchgByte

-

Compares and swaps 8-bit memory data.

-

LOS_AtomicCmpXchg16bits

-

Compares and swaps 16-bit memory data.

-

LOS_AtomicCmpXchg32bits

-

Compares and swaps 32-bit memory data.

-

LOS_AtomicCmpXchg64bits

-

Compares and swaps 64-bit memory data.

-
+The following table describes the APIs available for the OpenHarmony LiteOS-A kernel atomic operation module. + +**Table 1** APIs for atomic operations + +| Category | API | Description | +| ------------ | ----------------------- | --------------------------- | +| Read | LOS_AtomicRead | Reads 32-bit atomic data. | +| Read | LOS_Atomic64Read | Reads 64-bit atomic data. | +| Write | LOS_AtomicSet | Sets 32-bit atomic data. | +| Write | LOS_Atomic64Set | Sets 64-bit atomic data. | +| Add | LOS_AtomicAdd | Adds 32-bit atomic data. | +| Add | LOS_Atomic64Add | Adds 64-bit atomic data. | +| Add | LOS_AtomicInc | Adds 1 to 32-bit atomic data. | +| Add | LOS_Atomic64Inc | Adds 1 to 64-bit atomic data. | +| Add | LOS_AtomicIncRet | Adds 1 to 32-bit atomic data and returns the data. | +| Add | LOS_Atomic64IncRet | Adds 1 to 64-bit atomic data and returns the data. | +| Subtract | LOS_AtomicSub | Performs subtraction on 32-bit atomic data. | +| Subtract | LOS_Atomic64Sub | Performs subtraction on 64-bit atomic data. | +| Subtract | LOS_AtomicDec | Subtracts 1 from 32-bit atomic data. | +| Subtract | LOS_Atomic64Dec | Subtracts 1 from 64-bit atomic data. | +| Subtract | LOS_AtomicDecRet | Subtracts 1 from 32-bit atomic data and returns the result. | +| Subtract | LOS_Atomic64DecRet | Subtracts 1 from 64-bit atomic data and returns the result. | +| Swap | LOS_AtomicXchgByte | Swaps 8-bit memory data. | +| Swap | LOS_AtomicXchg16bits | Swaps 16-bit memory data. | +| Swap | LOS_AtomicXchg32bits | Swaps 32-bit memory data. | +| Swap | LOS_AtomicXchg64bits | Swaps 64-bit memory data. | +| Compare and swap| LOS_AtomicCmpXchgByte | Compares and swaps 8-bit memory data. | +| Compare and swap| LOS_AtomicCmpXchg16bits | Compares and swaps 16-bit memory data.| +| Compare and swap| LOS_AtomicCmpXchg32bits | Compares and swaps 32-bit memory data.| +| Compare and swap| LOS_AtomicCmpXchg64bits | Compares and swaps 64-bit memory data.| + ### How to Develop When multiple tasks perform addition, subtraction, and swap operations on the same memory data, use atomic operations to ensure predictability of results. ->![](../public_sys-resources/icon-note.gif) **NOTE**
->Atomic operation APIs support only integer data. +> **NOTE**
+> Atomic operation APIs support only integers. + -### Development Example +### Development Example -Example Description +**Example Description** Call the atomic operation APIs and observe the result. -1. Create two tasks. - - Task 1: Call **LOS\_AtomicInc** to add the global variables 100 times. - - Task 2: Call **LOS\_AtomicDec** to subtract the global variables 100 times. +1. Create two tasks. + - Task 1: Call **LOS_AtomicInc** to add a global variable 100 times. + - Task 2: Call **LOS_AtomicDec** to subtract a global variable 100 times. -2. After the subtasks are complete, print the values of the global variables in the main task. +2. After the subtasks are complete, print the values of the global variable in the main task. **Sample Code** The sample code is as follows: + ``` #include "los_hwi.h" #include "los_atomic.h" @@ -275,7 +157,7 @@ UINT32 Example_AtomicTaskEntry(VOID) **Verification** + ``` g_sum = 0 ``` - 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-softtimer.md b/en/device-dev/kernel/kernel-small-basic-softtimer.md index daa7ca000027e5723cb9e905b55aa9449ce537c9..959b895ab2949151b18fb1262a767b0879cb831c 100644 --- a/en/device-dev/kernel/kernel-small-basic-softtimer.md +++ b/en/device-dev/kernel/kernel-small-basic-softtimer.md @@ -1,133 +1,119 @@ # Software Timer -## Basic Concepts +## Basic Concepts -The software timer is a software-simulated timer based on system tick interrupts. When the preset tick counter value has elapsed, the user-defined callback will be invoked. The timing precision is related to the cycle of the system tick clock. Due to the limitation in hardware, the number of hardware timers cannot meet users' requirements. Therefore, the OpenHarmony LiteOS-A kernel provides the software timer function. The software timer allows more timing services to be created, increasing the number of timers. +The software timer is a software-simulated timer based on system tick interrupts. When the preset tick counter value has elapsed, the user-defined callback will be invoked. The timing precision is related to the cycle of the system tick clock. + +Due to the limitation in hardware, the number of hardware timers cannot meet users' requirements. The OpenHarmony LiteOS-A kernel provides the software timer function. + +The software timer allows more timing services to be created, increasing the number of timers. The software timer supports the following functions: -- Disabling the software timer using a macro -- Creating a software timer -- Starting a software timer -- Stopping a software timer -- Deleting a software timer -- Obtaining the number of remaining ticks of a software timer +- Disabling the software timer using a macro -## Working Principles +- Creating a software timer -The software timer is a system resource. When modules are initialized, a contiguous section of memory is allocated for software timers. The maximum number of timers supported by the system is configured by the **LOSCFG\_BASE\_CORE\_SWTMR\_LIMIT** macro in **los\_config.h**. Software timers use a queue and a task resource of the system. The software timers are triggered based on the First In First Out \(FIFO\) rule. For the timers set at the same time, the timer with a shorter value is always closer to the queue head than the timer with a longer value, and is preferentially triggered. The software timer counts time in ticks. When a software timer is created and started, the OpenHarmony system determines the timer expiry time based on the current system time \(in ticks\) and the timing interval set by the user, and adds the timer control structure to the global timing list. +- Starting a software timer + +- Stopping a software timer + +- Deleting a software timer + +- Obtaining the number of remaining ticks of a software timer -When a tick interrupt occurs, the tick interrupt handler scans the global timing list for expired timers. If such timers are found, the timers are recorded. -When the tick interrupt handling function is complete, the software timer task \(with the highest priority\) is woken up. In this task, the timeout callback function for the recorded timer is called. +## Working Principles -Timer States +The software timer is a system resource. When modules are initialized, a contiguous section of memory is allocated for software timers. The maximum number of timers supported by the system is configured by the **LOSCFG_BASE_CORE_SWTMR_LIMIT** macro in **los_config.h**. -- OS\_SWTMR\_STATUS\_UNUSED +Software timers use a queue and a task resource of the system. The software timers are triggered based on the First In First Out (FIFO) rule. For the timers set at the same time, the timer with a shorter value is always closer to the queue head than the timer with a longer value, and is preferentially triggered. - The timer is not in use. When the timer module is initialized, all timer resources in the system are set to this state. +The software timer counts time in ticks. When a software timer is created and started, the OpenHarmony system determines the timer expiry time based on the current system time (in ticks) and the timing interval set by the user, and adds the timer control structure to the global timing list. -- OS\_SWTMR\_STATUS\_CREATED +When a tick interrupt occurs, the tick interrupt handler scans the global timing list for expired timers. If such timers are found, the timers are recorded. + +When the tick interrupt handler is complete, the software timer task (with the highest priority) will be woken up. In this task, the timeout callback for the recorded timer is called. - The timer is created but not started or the timer is stopped. When **LOS\_SwtmrCreate** is called for a timer that is not in use or **LOS\_SwtmrStop** is called for a newly started timer, the timer changes to this state. +A software timer can be in any of the following states: -- OS\_SWTMR\_STATUS\_TICKING +- OS_SWTMR_STATUS_UNUSED + + The timer is not in use. When the timer module is initialized, all timer resources in the system are set to this state. + +- OS_SWTMR_STATUS_CREATED - The timer is running \(counting\). When **LOS\_SwtmrStart** is called for a newly created timer, the timer enters this state. + The timer is created but not started or the timer is stopped. When **LOS_SwtmrCreate** is called for a timer that is not in use or **LOS_SwtmrStop** is called for a newly started timer, the timer changes to this state. +- OS_SWTMR_STATUS_TICKING -Timer Modes + The timer is running (counting). When **LOS_SwtmrStart** is called for a newly created timer, the timer enters this state. -The OpenHarmony provides three types of software timers: +OpenHarmony provides three types of software timers: - One-shot timer: Once started, the timer is automatically deleted after triggering only one timer event. - Periodic timer: This type of timer periodically triggers timer events until it is manually stopped. - One-shot timer deleted by calling an API -## Development Guidelines - -### Available APIs - -The following table describes APIs available for the OpenHarmony LiteOS-A software timer module. For more details about the APIs, see the API reference. - -**Table 1** Software timer APIs - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Creating or deleting timers

-

LOS_SwtmrCreate

-

Creates a software timer.

-

LOS_SwtmrDelete

-

Deletes a software timer.

-

Starting or stopping timers

-

LOS_SwtmrStart

-

Starts a software timer.

-

LOS_SwtmrStop

-

Stops a software timer.

-

Obtaining remaining ticks of a software timer

-

LOS_SwtmrTimeGet

-

Obtains the number of remaining ticks of a software timer.

-
- -### How to Develop + +## Development Guidelines + + +### Available APIs + +The following table describes the APIs of the software timer module of the OpenHarmony LiteOS-A kernel. + +**Table 1** APIs for software timers + +| Category | Description | +| ---------------------- | ------------------------------------------------------------ | +| Creating or deleting a timer | **LOS_SwtmrCreate**: creates a software timer.
**LOS_SwtmrDelete**: deletes a software timer.| +| Starting or stopping a timer | **LOS_SwtmrStart**: starts a software timer.
**LOS_SwtmrStop**: stops a software timer.| +| Obtaining remaining ticks of a software timer| **LOS_SwtmrTimeGet**: obtains the remaining ticks of a software timer. | + + +### How to Develop The typical development process of software timers is as follows: -1. Configure the software timer. - - Check that **LOSCFG\_BASE\_CORE\_SWTMR** and **LOSCFG\_BASE\_IPC\_QUEUE** are enabled. - - Configure **LOSCFG\_BASE\_CORE\_SWTMR\_LIMIT** \(maximum number of software timers supported by the system\). - - Configure **OS\_SWTMR\_HANDLE\_QUEUE\_SIZE** \(maximum length of the software timer queue\). +1. Configure the software timer. + - Check that **LOSCFG_BASE_CORE_SWTMR** and **LOSCFG_BASE_IPC_QUEUE** are enabled. + - Configure **LOSCFG_BASE_CORE_SWTMR_LIMIT** (maximum number of software timers supported by the system). + - Configure **OS_SWTMR_HANDLE_QUEUE_SIZE** (maximum length of the software timer queue). + +2. Call **LOS_SwtmrCreate** to create a software timer. + - Create a software timer with the specified timing duration, timeout handling function, and triggering mode. + - Return the function execution result (success or failure). + +3. Call **LOS_SwtmrStart** to start the software timer. -2. Call **LOS\_SwtmrCreate** to create a software timer. - - Create a software timer with the specified timing duration, timeout handling function, and triggering mode. - - Return the function execution result \(success or failure\). +4. Call **LOS_SwtmrTimeGet** to obtain the remaining number of ticks of the software timer. -3. Call **LOS\_SwtmrStart** to start the software timer. -4. Call **LOS\_SwtmrTimeGet** to obtain the remaining number of ticks of the software timer. -5. Call **LOS\_SwtmrStop** to stop the software timer. -6. Call **LOS\_SwtmrDelete** to delete the software timer. +5. Call **LOS_SwtmrStop** to stop the software timer. ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- Avoid too many operations in the callback function of the software timer. Do not use APIs or perform operations that may cause task suspension or blocking. ->- The software timers use a queue and a task resource of the system. The priority of the software timer tasks is set to **0** and cannot be changed. ->- The number of software timer resources that can be configured in the system is the total number of software timer resources available to the entire system, not the number of software timer resources available to users. For example, if the system software timer occupies one more resource, the number of software timer resources available to users decreases by one. ->- If a one-shot software timer is created, the system automatically deletes the timer and reclaims resources after the timer times out and the callback function is executed. ->- For a one-shot software timer that will not be automatically deleted after expiration, you need to call **LOS\_SwtmrDelete** to delete it and reclaim the timer resource to prevent resource leakage. +6. Call **LOS_SwtmrDelete** to delete the software timer. -### Development Example +> **NOTE**
+> +> - Avoid too many operations in the callback of the software timer. Do not use APIs or perform operations that may cause task suspension or blocking. +> +> - The software timers use a queue and a task resource of the system. The priority of the software timer tasks is set to **0** and cannot be changed. +> +> - The number of software timer resources that can be configured in the system is the total number of software timer resources available to the entire system, not the number of software timer resources available to users. For example, if the system software timer occupies one more resource, the number of software timer resources available to users decreases by one. +> +> - If a one-shot software timer is created, the system automatically deletes the timer and reclaims resources after the timer times out and the callback is invoked. +> +> - For a one-shot software timer that will not be automatically deleted after expiration, you need to call **LOS_SwtmrDelete** to delete it and reclaim the timer resource to prevent resource leakage. -Prerequisites: -- In **los\_config.h**, **LOSCFG\_BASE\_CORE\_SWTMR** is enabled. -- The maximum number of software timers supported by the system \(**LOSCFG\_BASE\_CORE\_SWTMR\_LIMIT**\) is configured. -- The maximum length of the software timer queue \(**OS\_SWTMR\_HANDLE\_QUEUE\_SIZE**\) is configured. +### Development Example + +**Prerequisites** + +- In **los_config.h**, **LOSCFG_BASE_CORE_SWTMR** is enabled. +- The maximum number of software timers supported by the system (**LOSCFG_BASE_CORE_SWTMR_LIMIT**) is configured. +- The maximum length of the software timer queue (**OS_SWTMR_HANDLE_QUEUE_SIZE**) is configured. **Sample Code** @@ -164,14 +150,14 @@ void Timer_example(void) UINT16 id2; // timer id UINT32 uwTick; - /* Create a one-shot software timer, with the number of ticks set to 1000. When the number of ticks reaches 1000, callback function 1 is executed. */ + /* Create a one-shot software timer, with the number of ticks set to 1000. Callback 1 will be invoked when the number of ticks reaches 1000. */ LOS_SwtmrCreate (1000, LOS_SWTMR_MODE_ONCE, Timer1_Callback, &id1, 1); - - /* Create a periodic software timer and execute callback function 2 every 100 ticks. */ + + /* Create a periodic software timer and invoke callback 2 every 100 ticks. */ LOS_SwtmrCreate(100, LOS_SWTMR_MODE_PERIOD, Timer2_Callback, &id2, 1); PRINTK("create Timer1 success\n"); - LOS_SwtmrStart (id1); // Start the one-shot software timer. + LOS_SwtmrStart(id1); // Start the one-shot software timer. dprintf("start Timer1 success\n"); LOS_TaskDelay(200); // Delay 200 ticks. LOS_SwtmrTimeGet(id1, &uwTick); // Obtain the number of remaining ticks of the one-short software timer. @@ -196,6 +182,7 @@ void Timer_example(void) **Output** + ``` create Timer1 success start Timer1 success @@ -226,4 +213,3 @@ tick_last1=2101 g_timercount2 =10 tick_last1=2201 ``` - diff --git a/en/device-dev/kernel/kernel-small-basic-time.md b/en/device-dev/kernel/kernel-small-basic-time.md index c58c25a6c467881bee6b9d4ef72ed8c2d379d8d3..749c684b822f5cb1663f2c1496021832927c6ff6 100644 --- a/en/device-dev/kernel/kernel-small-basic-time.md +++ b/en/device-dev/kernel/kernel-small-basic-time.md @@ -3,85 +3,64 @@ ## Basic Concepts -Time management provides all time-related services for applications based on the system clock. The system clock is generated by the interrupts triggered by the output pulse of a timer or counter. The system clock is generally defined as an integer or a long integer. The period of an output pulse is a "clock tick". The system clock is also called time scale or tick. The duration of a tick can be configured statically. People use second or millisecond as the time unit, while the operating system uses tick. When operations such as suspending a task or delaying a task are performed, the time management module converts time between ticks and seconds or milliseconds. +Time management is performed based on the system clock. It provides time-related services for applications. The system clock is generated by the interrupts triggered by the output pulse of a timer or counter. The system clock is generally defined as an integer or a long integer. The period of an output pulse is a "clock tick". + +The system clock is also called time scale or tick. The duration of a tick can be configured statically. People use second or millisecond as the time unit, while the operating system uses tick. When operations such as suspending a task or delaying a task are performed, the time management module converts time between ticks and seconds or milliseconds. The mapping between ticks and seconds can be configured. -- **Cycle** +- Cycle + + Cycle is the minimum time unit in the system. The cycle duration is determined by the system clock frequency, that is, the number of cycles per second. + +- Tick - Cycle is the minimum time unit in the system. The cycle duration is determined by the system clock frequency, that is, the number of cycles per second. + Tick is the basic time unit of the operating system and is determined by the number of ticks per second configured by the user. +The OpenHarmony time management module provides time conversion, statistics, and delay functions. -- **Tick** - Tick is the basic time unit of the operating system and is determined by the number of ticks per second configured by the user. +## Development Guidelines +Before you start, learn about the system time and the APIs for time management. -The OpenHarmony time management module provides time conversion, statistics, and delay functions to meet users' time requirements. -## Development Guidelines +### Available APIs -The time management module provides APIs to implement conversion between the system running time, ticks, and seconds/milliseconds. +The following table describes APIs for OpenHarmony LiteOS-A time management. For more details about the APIs, see the API reference. -### Available APIs +**Table 1** APIs for time management + +| Category| API Description | +| -------- | ------------------------------------------------------------ | +| Time conversion| **LOS_MS2Tick**: converts milliseconds to ticks.
**LOS_Tick2MS**: converts ticks to milliseconds. | +| Time statistics| **LOS_TickCountGet**: obtains the number of current ticks.
**LOS_CyclePerTickGet**: obtains the number of cycles of each tick.| -The following table describes APIs available for the OpenHarmony LiteOS-A time management. For more details about the APIs, see the API reference. - -**Table 1** APIs of the time management module - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Time conversion

-

LOS_MS2Tick

-

Converts milliseconds into ticks.

-

LOS_Tick2MS

-

Converts ticks into milliseconds.

-

Time statistics

-

LOS_TickCountGet

-

Obtains the current number of ticks.

-

LOS_CyclePerTickGet

-

Obtains the number of cycles per tick.

-
### How to Develop -1. Call APIs to convert time. -2. Call APIs to perform time statistics. +1. Call APIs to convert time. + +2. Call APIs to perform time statistics. + +> **NOTE** +> +> - The system tick count can be obtained only after the system clock is enabled. +> +> - The time management module depends on **OS_SYS_CLOCK** and **LOSCFG_BASE_CORE_TICK_PER_SECOND** in **los_config.h**. +> +> - The number of system ticks is not counted when the interrupt feature is disabled. Therefore, the number of ticks cannot be used as the accurate time. ->![](public_sys-resources/icon-note.gif) **NOTE**
->- The system tick count can be obtained only after the system clock is enabled. ->- The time management module depends on **OS\_SYS\_CLOCK** and **LOSCFG\_BASE\_CORE\_TICK\_PER\_SECOND** in **los\_config.h**. ->- The number of system ticks is not counted when the interrupt feature is disabled. Therefore, the number of ticks cannot be used as the accurate time. ### Development Example -**Prerequisites**
+**Prerequisites** + The following parameters are configured: -- **LOSCFG\_BASE\_CORE\_TICK\_PER\_SECOND**: number of ticks per second in the system. The value range is (0, 1000]. -- **OS\_SYS\_CLOCK**: system clock, in Hz. +- **LOSCFG_BASE_CORE_TICK_PER_SECOND**: number of ticks/second. The value range is (0, 1000). + +- **OS_SYS_CLOCK**: system clock, in Hz. **Sample Code** @@ -92,15 +71,16 @@ VOID Example_TransformTime(VOID) { UINT32 uwMs; UINT32 uwTick; - uwTick = LOS_MS2Tick(10000);// Convert 10000 ms into ticks. + uwTick = LOS_MS2Tick(10000); // Convert 10000 ms to ticks. PRINTK("uwTick = %d \n",uwTick); - uwMs= LOS_Tick2MS(100); // Convert 100 ticks into ms. + uwMs= LOS_Tick2MS(100); // Convert 100 ticks to ms. PRINTK("uwMs = %d \n",uwMs); } ``` Time statistics and delay: + ``` VOID Example_GetTime(VOID) { @@ -133,6 +113,7 @@ The result is as follows: Time conversion: + ``` uwTick = 10000 uwMs = 100 @@ -140,9 +121,9 @@ uwMs = 100 Time statistics and delay: + ``` LOS_CyclePerTickGet = 49500 -LOS_TickCountGet = 5042 -LOS_TickCountGet after delay = 5242 +LOS_TickCountGet = 347931 +LOS_TickCountGet after delay = 348134 ``` - 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..890215f8ec70319ae7875c34180e03ce769e9e24 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,114 @@ # 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 +- LOS_MUX_PRIO_NONE + + Do not inherit or protect the priority of the task requesting the mutex. - Do not inherit or protect the priority of the task requesting the mutex. +- LOS_MUX_PRIO_INHERIT + + 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. + + 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: - 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_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\_PRIO\_PROTECT +- LOS_MUX_RECURSIVE + + 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. - 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. +- 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. -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: +## Working Principles -- LOS\_MUX\_NORMAL +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. - 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. +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. -- LOS\_MUX\_RECURSIVE +**Figure 1** Mutex working mechanism for the small system - 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. +![](figures/mutex-working-mechanism-for-small-systems.png "mutex-working-mechanism-for-small-systems") -- LOS\_MUX\_ERRORCHECK - 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. +## Development Guidelines -## Working Principles +### Available APIs -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. + **Table 1** APIs of the mutex module -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. +| 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. | -**Figure 1** Mutex working mechanism for small systems -![](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 +### 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. + +- 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. + +3. Call **LOS_MuxUnlock** to release 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. -3. Call **LOS\_MuxUnlock** to release a mutex. +- If no task is blocked by the specified mutex, the mutex is released successfully. -- 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. +4. Call **LOS_MuxDestroy** to destroy a mutex. -4. Call **LOS\_MuxDestroy** to destroy a mutex. +> **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. ->![](../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. -### Development Example +### Development Example -Example Description +#### 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. -**Sample Code** +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 + +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 +117,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 +125,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 +177,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 +191,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 +203,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 +218,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-basic-trans-user-mutex.md b/en/device-dev/kernel/kernel-small-basic-trans-user-mutex.md index 423e46492a8944ddacf62b5d332de1f3ed9a219b..2af0a2c3b9b746f3cfd619baecac38a9c08308d8 100644 --- a/en/device-dev/kernel/kernel-small-basic-trans-user-mutex.md +++ b/en/device-dev/kernel/kernel-small-basic-trans-user-mutex.md @@ -1,62 +1,39 @@ # Futex -## Basic Concepts +## Basic Concepts -Fast userspace mutex \(futex\) is a system call capability provided by the kernel. It is a basic component that combines with user-mode lock logic to form a user-mode lock. It is a lock working in both user mode and kernel mode, for example, userspace mutex, barrier and cond synchronization lock, and RW lock. The user-mode part implements lock logic, and the kernel-mode part schedules locks. +Fast userspace mutex (futex) is a system call capability provided by the kernel. It is a basic component that combines with user-mode lock logic to form a user-mode lock. It is a lock working in both user mode and kernel mode, for example, userspace mutex, barrier and cond synchronization lock, and RW lock. The user-mode part implements lock logic, and the kernel-mode part schedules locks. When a user-mode thread requests a lock, the lock status is first checked in user space. If no lock contention occurs, the user-mode thread acquires the lock directly. If lock contention occurs, the futex system call is invoked to request the kernel to suspend the thread and maintain the blocking queue. When a user-mode thread releases a lock, the lock status is first checked in user space. If no other thread is blocked by the lock, the lock is directly released in user space. If there are threads blocked by the lock, the futex system call is invoked to request the kernel to wake up the threads in the blocking queue. -## Working Principles + + +## Working Principles When thread scheduling is required to resolve lock contention or lock release in user space, the futex system call is invoked to pass the user-mode lock address to the kernel. The user-mode locks are distinguished by lock address in the futex of the kernel. The available virtual address space in user space is 1 GiB. To facilitate search and management of lock addresses, the kernel futex uses hash buckets to store the user-mode locks. -There are 80 hash buckets. Buckets 0 to 63 are used to store private locks \(hashed based on virtual addresses\), and buckets 64 to 79 are used to store shared locks \(hashed based on physical addresses\). The private/shared attributes are determined by initialization of user-mode locks and the input parameters in the futex system call. +There are 80 hash buckets used to store shared locks (hashed based on physical addresses). The private/shared attributes are determined by initialization of user-mode locks and the input parameters in the futex system call. + +## Futex Design + +**Figure 1** Futex design -**Figure 1** Futex design ![](figures/futex-design.jpg "futex-design") -As shown in the above figure, each futex hash bucket stores the futex nodes with the same hash value linked in a futex\_list. Each futex node corresponds to a suspended task. The key value of a node uniquely identifies a user-mode lock. The nodes with the same key value added to a queue\_list indicate a queue of tasks blocked by the same lock. - -The following table describes the APIs available for the futex module. - -**Table 1** Futex module APIs - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Putting a thread to wait

-

OsFutexWait

-

Inserts a node representing a blocked thread into the futex list.

-

Waking up a thread

-

OsFutexWake

-

Wakes up a thread that is blocked by a specified lock.

-

Modifying the lock address

-

OsFutexRequeue

-

Adjusts the position of a specified lock in the futex list.

-
- ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->The futex system call and user-mode logic form a user-mode lock. Therefore, you are advised to use the locks via the user-mode POSIX APIs. +As shown in the above figure, each futex hash bucket stores the futex nodes with the same hash value linked in a futex_list. Each futex node corresponds to a suspended task. The key value of a node uniquely identifies a user-mode lock. The nodes with the same key value added to a queue_list indicate a queue of tasks blocked by the same lock. + +## Available APIs + +APIs of the futex module + +| Category | API | Description | +| -------------- | -------------- | ------------------------------------- | +| Putting a thread to wait | OsFutexWait | Inserts a node representing a blocked thread into the futex list.| +| Waking up a thread| OsFutexWake | Wakes up a thread that is blocked by a specified lock. | +| Modifying the lock address | OsFutexRequeue | Adjusts the position of a specified lock in the futex list. | +> **NOTE**
+> The futex system call and user-mode logic form a user-mode lock. Therefore, you are advised to use the locks via the user-mode POSIX APIs. diff --git a/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md b/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md index ee8d9eae741239fc9edaf45df50014ec8bcc0412..3ac3e5f80143ece60043a9180abf0abad092545a 100644 --- a/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md +++ b/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md @@ -1,84 +1,64 @@ # Signal -## Basic Concepts +## Basic Concepts -Signal is a common inter-process asynchronous communication mechanism. It uses software-simulated interrupt signals. When a process needs to communicate with another process, it sends a signal to the kernel. The kernel then transfers the signal to the destination process. The destination process does not need to wait for the signal. +Signal is a common asynchronous communication mechanism between processes. It uses software-simulated interrupt signals. When a process needs to communicate with another process, it sends a signal to the kernel. The kernel transfers the signal to the target process. The target process does not need to wait for the signal. -## Working Principles -The following table describes the APIs available for signal operations. +## Working Principles -**Table 1** Signal operation process and APIs \(user-mode APIs\) +The following table describes the APIs for signal operations. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Registering the signal callback

-

signal

-

Registers the main signal entry, and registers and unregisters the callback function of a signal.

-

sigaction

-

Same as signal. This API is added with configuration options related to signal transmission. Currently, only some parameters in the SIGINFO structure are supported.

-

Sending signals

-

kill

-

Sends a signal to a process or sends messages to a thread in a process, and sets signal flags for threads in a process.

-

pthread_kill

-

raise

-

alarm

-

abort

-

Triggering a callback

-

None

-

Triggered by a system call or an interrupt. Before the switching between the kernel mode and user mode, the specified function in user mode is entered, and the corresponding callbacks are processed. After that, the original user-mode program continues to run.

-
+ **Table 1** Signal APIs (user-mode APIs) ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->The signal mechanism enables communication between user-mode programs. The user-mode POSIX APIs listed in the above table are recommended. ->Register a callback function. ->``` ->void *signal(int sig, void (*func)(int))(int); ->``` ->a. Signal 31 is used to register the handling entry of the process callback. Repeated registration is not allowed. ->b. Signals 0 to 30 are used to register and unregister callbacks. ->Register a callback. ->``` ->int sigaction(int, const struct sigaction *__restrict, struct sigaction *__restrict); ->``` ->You can obtain and modify the configuration of signal registration. Currently, only the **SIGINFO** options are supported. For details, see the description of the **sigtimedwait** API. ->Transmit a signal. ->a. Among the default signal-receiving behaviors, the process does not support **STOP**, **CONTINUE**, and **COREDUMP** defined in the POSIX standard. ->b. The **SIGSTOP**, **SIGKILL**, and **SIGCONT** signals cannot be shielded. ->c. If a process killed is not reclaimed by its parent process, the process becomes a zombie process. ->d. A process will not call back the signal received until the process is scheduled. ->e. When a process is killed, **SIGCHLD** is sent to its parent process. The signal sending action cannot be canceled. ->f. A process in the DELAY state cannot be woken up by a signal. +| Category | API | Description | +| ---------------- | --------------------------------------------------- | ------------------------------------------------------------ | +| Registering/Unregistering a signal callback| signal | Registers the main signal entry, and registers or unregisters a callback for a signal. | +| Registering a signal callback| sigaction | Same as **signal**. This API is added with configuration options related to signal transmission. Currently, only some parameters in the **SIGINFO** structure are supported.| +| Sending a signal | kill
pthread_kill
raise
alarm
abort | Sends a signal to a process or sends a message to a thread in a process, and sets the signal flag for a thread in a process. | +| Invoking a callback | NA | Called by a system call or an interrupt. Before the switching between the kernel mode and user mode, the callback in the specified function in user mode is processed. After that, the original user-mode program continues to run.| +> **NOTE**
+> The signal mechanism enables communication between user-mode programs. The user-mode POSIX APIs listed in the above table are recommended. +> +> **Registering a Callback** +> +> +> ``` +> void *signal(int sig, void (*func)(int))(int); +> ``` +> +> - Signal 31 is used to register the handling entry of the process callback. Repeated registration is not allowed. +> +> +> - Signals 0 to 30 are used to register and unregister callbacks. +> +> +> **Registering a Callback** +> +> +> ``` +> int sigaction(int, const struct sigaction ***restrict, struct sigaction ***restrict); +> ``` +> +> You can obtain and modify the configuration of signal registration. Currently, only the **SIGINFO** options are supported. For details, see the description of the **sigtimedwait** API. +> +> **Sending a Signal** +> +> - Among the default signal-receiving behaviors, the process does not support **STOP**, **COTINUE**, and **COREDUMP** defined in POSIX. +> +> +> - The **SIGSTOP**, **SIGKILL**, and **SIGCONT** signals cannot be shielded. +> +> +> - If a process killed is not reclaimed by its parent process, the process becomes a zombie process. +> +> +> - A process will not call back the signal received until the process is scheduled. +> +> +> - When a process is killed, **SIGCHLD** is sent to its parent process. The signal sending action cannot be canceled. +> +> +> - A process in the DELAY state cannot be woken up by a signal. diff --git a/en/device-dev/kernel/kernel-small-bundles-ipc.md b/en/device-dev/kernel/kernel-small-bundles-ipc.md index cdde2e4e602dfe73c76158b2fd9119fcfc4d347b..50d3f5e7f61b76ffebcd43ea79a953ba4f7c86da 100644 --- a/en/device-dev/kernel/kernel-small-bundles-ipc.md +++ b/en/device-dev/kernel/kernel-small-bundles-ipc.md @@ -1,65 +1,38 @@ # LiteIPC -## Basic Concepts - -LiteIPC is a new inter-process communication \(IPC\) mechanism provided by the OpenHarmony LiteOS-A kernel. Different from the traditional System V IPC, LiteIPC is designed for Remote Procedure Call \(RPC\). In addition, it provides APIs for the upper layer through device files, not through traditional API functions. - -LiteIPC has two important concepts: ServiceManager and Service. The entire system can have one ServiceManager and multiple Services. ServiceManager is responsible for registering and unregistering Services, and managing Service access permission \(only authorized tasks can send IPC messages to corresponding Services\). - -## Working Principles - -ServiceManager registers the task that needs to receive IPC messages as a Service, and sets the access permission for the Service task \(specifies the tasks that can send IPC messages to the Service\). LiteIPC maintains an IPC message queue for each Service task in kernel mode. The message queue provides the upper-layer user-mode programs with the read operation \(receiving IPC messages\) and the write operations \(sending IPC messages\) through LiteIPC device files. - -## Development Guidelines - -### Available APIs - -**Table 1** LiteIPC module APIs \(for LiteOS-A internal use only\) - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Module initialization

-

OsLiteIpcInit

-

Initializes the LiteIPC module.

-

IPC message memory pool

-

LiteIpcPoolInit

-

Initializes the IPC message memory pool of processes.

-

LiteIpcPoolReInit

-

Re-initializes the IPC message memory pool of processes.

-

LiteIpcPoolDelete

-

Releases the IPC message memory pool of processes.

-

Service management

-

LiteIpcRemoveServiceHandle

-

Deletes the specified Service.

-
- ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->LiteIPC module APIs are used for LiteOS-A internal use only. +## Basic Concepts +LiteIPC is a new inter-process communication (IPC) mechanism provided by the OpenHarmony LiteOS-A kernel. Different from the traditional System V IPC, LiteIPC is designed for Remote Procedure Call (RPC). In addition, it provides APIs for the upper layer through device files, not through traditional API functions. + +LiteIPC has two important concepts: ServiceManager and Service. The entire system can have one ServiceManager and multiple Services. + +ServiceManager provides the following functions: + +- Registers and deregisters services. + +- Manages the access permission of services. Only authorized tasks can send IPC messages to the service. + + +## Working Principles + +ServiceManager registers the task that needs to receive IPC messages as a Service, and sets the access permission for the Service task (specifies the tasks that can send IPC messages to the Service). + +LiteIPC maintains an IPC message queue for each Service task in kernel mode. The message queue provides the upper-layer user-mode programs with the read operation (receiving IPC messages) and the write operations (sending IPC messages) through LiteIPC device files. + + +## Development Guidelines + + +### Available APIs + + **Table 1** APIs of the LiteIPC module (applicable to LiteOS-A only) + +| Category | API Description | +| ------------- | ------------------------------------------------------------ | +| Module initialization | **OsLiteIpcInit**: initializes the LiteIPC module. | +| IPC message memory pool| - **LiteIpcPoolInit**: initializes the IPC message memory pool of a process.
- **LiteIpcPoolReInit**: reinitializes the IPC message memory pool of a process.
- **LiteIpcPoolDelete**: releases the IPC message memory pool of a process. | +| Service management | **LiteIpcRemoveServiceHandle**: deletes a service. | + +> **NOTE**
+> The APIs of the LiteIPC module are dedicated for LiteOS-A internal use only. diff --git a/en/device-dev/kernel/kernel-small-bundles-linking.md b/en/device-dev/kernel/kernel-small-bundles-linking.md index 78a6076a0239d6fa922c470425dccdf96990117a..2fc0d538c9f29b4699c655471c5ddb7c0c4d9241 100644 --- a/en/device-dev/kernel/kernel-small-bundles-linking.md +++ b/en/device-dev/kernel/kernel-small-bundles-linking.md @@ -1,59 +1,58 @@ # Dynamic Loading and Linking -## Basic Concepts + +## Basic Concepts The OpenHarmony dynamic loading and linking mechanism includes a kernel loader and a dynamic linker. The kernel loader loads application programs and the dynamic linker. The dynamic linker loads the shared library on which the application programs depend, and performs symbol relocation for the application programs and shared libraries. Compared with static linking, dynamic linking is a mechanism for delaying the linking of applications and dynamic libraries to run time. **Advantages of Dynamic Linking** -1. Dynamic linking allows multiple applications to share code. The minimum loading unit is page. Dynamic linking saves disk and memory space than static linking. -2. When a shared library is upgraded, the new shared library overwrites the earlier version \(the APIs of the shared library are downward compatible\). You do not need to re-link the shared library. -3. The loading address can be randomized to prevent attacks and ensure security. +- Dynamic linking allows multiple applications to share code. The minimum loading unit is page. Dynamic linking saves disk and memory space than static linking. + +- When a shared library is upgraded, the new shared library overwrites the earlier version (the APIs of the shared library are downward compatible). You do not need to re-link the shared library. + +- The loading address can be randomized to prevent attacks and ensure security. + + +## Working Principles -## Working Principles +**Figure 1** Dynamic loading process -**Figure 1** Dynamic loading process ![](figures/dynamic-loading-process.png "dynamic-loading-process") -1. The kernel maps the **PT\_LOAD** section in the ELF file of the application to the process space. For files of the ET\_EXEC type, fixed address mapping is performed based on **p\_vaddr** in the **PT\_LOAD** section. For files of the ET\_DYN type \(position-independent executable programs, obtained through the compile option **-fPIE**\), the kernel selects the **base** address via **mmap** for mapping \(load\_addr = base + p\_vaddr\). -2. If the application is statically linked \(static linking does not support the compile option **-fPIE**\), after the stack information is set, the system redirects to the address specified by **e\_entry** in the ELF file of the application and runs the application. If the program is dynamically linked, the application ELF file contains the **PT\_INTERP** section, which stores the dynamic linker path information \(ET\_DYN type\). The dynamic linker of musl is a part of the **libc-musl.so**. The entry of **libc-musl.so** is the entry of the dynamic linker. The kernel selects the **base** address for mapping via the **mmap** API, sets the stack information, redirects to the **base + e\_entry** \(entry of the dynamic linker\) address, and runs the dynamic linker. -3. The dynamic linker bootstraps and searches for all shared libraries on which the application depends, relocates the imported symbols, and finally redirects to the **e\_entry** \(or **base + e\_entry**\) of the application to run the application. +1. The kernel maps the **PT_LOAD** section in the ELF file of the application to the process space. For files of the ET_EXEC type, fixed address mapping is performed based on **p_vaddr** in the **PT_LOAD** section. For files of the ET_DYN type (position-independent executable programs, obtained through **-fPIE**), the kernel selects the **base** address via **mmap** for mapping (load_addr = base + p_vaddr). + +2. If the application is statically linked (static linking does not support **-fPIE**), after the stack information is set, the system redirects to the address specified by **e_entry** in the ELF file of the application and runs the application. If the program is dynamically linked, the application ELF file contains the **PT_INTERP** section, which stores the dynamic linker path information (ET_DYN type). The dynamic linker of musl is a part of the **libc-musl.so**. The entry of **libc-musl.so** is the entry of the dynamic linker. The kernel selects the **base** address for mapping via the **mmap** API, sets the stack information, redirects to the **base + e_entry** (entry of the dynamic linker) address, and runs the dynamic linker. + +3. The dynamic linker bootstraps and searches for all shared libraries on which the application depends, relocates the imported symbols, and finally redirects to the **e_entry** (or **base + e_entry**) of the application to run the application. + +**Figure 2** Program execution process -**Figure 2** Program execution process ![](figures/program-execution-process.png "program-execution-process") -1. The loader and linker call **mmap** to map the **PT\_LOAD** section. -2. The kernel calls **map\_pages** to search for and map the existing PageCache. -3. If there is no physical memory for mapping in the virtual memory region during program execution, the system triggers a page missing interrupt, which allows the ELF file to be read into the physical memory and adds the memory block to the pagecache. -4. Map the physical memory blocks of the file read to the virtual address region. -5. The program continues to run. - -## Development Guidelines - -### Available APIs - -**Table 1** APIs of the kernel loader module - - - - - - - - - - - - -

Function

-

API

-

Description

-

Module initialization

-

LOS_DoExecveFile

-

Executes the specified user program based on the input parameters.

-
- -### How to Develop - -The kernel cannot directly call the **LOS\_DoExecveFile** API to start a new process. This API is generally called through the **exec\(\)** API to create a new process using the system call mechanism. +1. The loader and linker call **mmap** to map the **PT_LOAD** section. + +2. The kernel calls **map_pages** to search for and map the existing PageCache. + +3. If there is no physical memory for mapping in the virtual memory region during program execution, the system triggers a page missing interrupt, which allows the ELF file to be read into the physical memory and adds the memory block to the pagecache. + +4. Map the physical memory blocks of the file read to the virtual address region. + +5. The program continues to run. + + +## Development Guidelines + + +### Available APIs + +**Table 1** API of the kernel loader module + +| Category | API | Description | +| ---------- | ---------------- | -------------------------------- | +| Starting initialization| LOS_DoExecveFile | Executes the specified user program based on the input parameters.| + + +### How to Develop +The kernel cannot directly call the **LOS_DoExecveFile** API to start a new process. This API is generally called through the **exec()** API to create a new process using the system call mechanism. diff --git a/en/device-dev/kernel/kernel-small-bundles-share.md b/en/device-dev/kernel/kernel-small-bundles-share.md index 23f6b68a3e4601e0dc4d10783f15bb4616caee88..0414d8bc7730cfebe26b1c5a1f2eb915f98eaefa 100644 --- a/en/device-dev/kernel/kernel-small-bundles-share.md +++ b/en/device-dev/kernel/kernel-small-bundles-share.md @@ -1,21 +1,24 @@ # Virtual Dynamic Shared Object -## Basic Concepts -Different from a common dynamic shared library, which stores its .so files in the file system, the virtual dynamic shared object \(VDSO\) has its .so files stored in the system image. The kernel determines the .so files needed and provides them to the application program. That is why the VDSO is called a virtual dynamic shared library. +## Basic Concepts -The VDSO mechanism allows OpenHarmony user-mode programs to quickly obtain kernel-related data. It can accelerate certain system calls and implement quick read of non-sensitive data \(hardware and software configuration\). +Different from a common dynamic shared library, which stores its .so files in the file system, the virtual dynamic shared object (VDSO) has its .so files stored in the system image. The kernel determines the .so files needed and provides them to the application program. That is why the VDSO is called a virtual dynamic shared library. -## Working Principles +The VDSO mechanism allows OpenHarmony user-mode programs to quickly obtain kernel-related data. It can accelerate certain system calls and implement quick read of non-sensitive data (hardware and software configuration). -The VDSO can be regarded as a section of memory \(read-only\) maintained by the kernel and mapped to the address space of the user-mode applications. By linking **vdso.so**, the applications can directly access this mapped memory instead of invoking system calls, accelerating application execution. + +## Working Principles + +The VDSO can be regarded as a section of memory (read-only) maintained by the kernel and mapped to the address space of the user-mode applications. By linking **vdso.so**, the applications can directly access this mapped memory instead of invoking system calls, accelerating application execution. VDSO can be divided into: -- Data page: provides the kernel-time data mapped to the user process. -- Code page: provides the logic for shielding system calls. +- Data page: provides the kernel-time data mapped to the user process. +- Code page: provides the logic for shielding system calls. + +**Figure 1** VDSO system design -**Figure 1** VDSO system design ![](figures/vdso-system-design.jpg "vdso-system-design") The VDSO mechanism involves the following steps: @@ -30,7 +33,7 @@ The VDSO mechanism involves the following steps: 5. Binds the VDSO symbols when the user program creates dynamic linking. -6. The VDSO code page intercepts specific system calls \(for example, **clock\_gettime\(CLOCK\_REALTIME\_COARSE, &ts\)**\). +6. The VDSO code page intercepts specific system calls (for example, **clock_gettime(CLOCK_REALTIME_COARSE, &ts)**). 7. The VDSO code page allows direct read of the mapped VDSO data page rather than invoking a system call. @@ -38,7 +41,10 @@ The VDSO mechanism involves the following steps: 9. Returns the data obtained from the VDSO data page to the user program. ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- The VDSO mechanism supports the **CLOCK\_REALTIME\_COARSE** and **CLOCK\_MONOTONIC\_COARSE** functions of the **clock\_gettime** API in the LibC library. For details about how to use the **clock\_gettime** API, see the POSIX standard. You can call **clock\_gettime\(CLOCK\_REALTIME\_COARSE, &ts\)** or **clock\_gettime\(CLOCK\_MONOTONIC\_COARSE, &ts\)** of the LibC library to use the VDSO. ->- When VDSO is used, the time precision is the same as that of the tick interrupt of the system. The VDSO mechanism is applicable to the scenario where there is no demand for high time precision and **clock\_gettime** or **gettimeofday** is frequently triggered in a short period of time. The VDSO mechanism is not recommended for the system demanding high time precision. - +> **NOTE**
+> +> - The VDSO mechanism supports the **CLOCK_REALTIME_COARSE** and **CLOCK_MONOTONIC_COARSE** functions of the **clock_gettime** API in the LibC library. For details about how to use the **clock_gettime** API, see the POSIX standard. +> +> - You can call **clock_gettime(CLOCK_REALTIME_COARSE, &ts)** or **clock_gettime(CLOCK_MONOTONIC_COARSE, &ts)** of the Libc library to use the VDSO. +> +> - When VDSO is used, the time precision is the same as that of the tick interrupt of the system. The VDSO mechanism is applicable to the scenario where there is no demand for high time precision and **clock_gettime** or **gettimeofday** is frequently triggered in a short period of time. The VDSO mechanism is not recommended for the system demanding high time precision. 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-shell-cmd-cpup.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-cpup.md index 746b920933106047cb22d223404e4b090425fe9f..ac22848f4fce6660fbadb46f091d4134cb87a44f 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-cpup.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-cpup.md @@ -1,55 +1,41 @@ # cpup -## Command Function +## Command Function -This command is used to query the CPU usage \(CPU percent\) of the system. +This command is used to query the CPU percent (CPUP) of the system. -## Syntax -cpup \[_mode_\] \[_taskID_\] +## Syntax -## Parameters +cpup [_mode_] [_taskID_] -**Table 1** Parameter description - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

mode

-
  • Displays the CPU usage of the system within the last 10 seconds by default.
  • 0: displays the CPU usage within the last 10 seconds.
  • 1: displays the CPU usage within the last 1 second.
  • Other value: displays the total CPU usage since the system is started.
-

[0,0xFFFFFFFF]

-

taskID

-

Specifies the task ID.

-

[0,0xFFFFFFFF]

-
+## Parameters -## Usage +**Table 1** Parameter description -- If no parameter is specified, the CPU usage of the system within the last 10 seconds is displayed. -- If only **mode** is specified, the CPU usage within the specified period is displayed. -- If both **mode** and **taskID** are specified, the CPU usage of the specified task within the given period is displayed. +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| mode | Displays the CPUP of the system within the last 10 seconds by default.
- **0**: displays the CPUP within the last 10 seconds.
- **1**: displays the CPUP within the last 1 second.
- Other numbers: display the total CPUP since the system starts.| [0, 0xFFFFFFFF] | +| taskID | Specifies the task ID.| [0, 0xFFFFFFFF] | -## Example -Run **cpup 1 5**. +## Usage Guidelines -## Output +- If no parameter is specified, the CPU usage of the system within the last 10 seconds is displayed. + +- If only **mode** is specified, the CPU usage within the specified period is displayed. + +- If both **mode** and **taskID** are specified, the CPU usage of the specified task within the given period is displayed. + + +## Example + +Run **cpup 1 5**. + + +## Output CPU usage of task 5 in the last one second: @@ -58,4 +44,3 @@ OHOS # cpup 1 5pid 5 CpuUsage in 1s: 0.0 ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-date.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-date.md index b232540382d344f2a18fb8424665e759f6301013..33a4f5d76af4afa3facc3503a1e400ce05b911f1 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-date.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-date.md @@ -1,69 +1,56 @@ # date -## Command Function + +## Command Function This command is used to query the system date and time. -## Syntax - -- date -- date --help -- date +\[_Format_\] -- date -u - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays help information.

-

N/A

-

+Format

-

Prints the date and time in the specified Format.

-

Placeholders listed in --help

-

-u

-

Displays UTC instead of the current time zone.

-

N/A

-
- -## Usage - -- If no parameter is specified, the system UTC date and time are displayed by default. -- The **--help**, **+Format**, and **-u** parameters are mutually exclusive. -- Currently, this command cannot be used to set the time or date. - -## Example - -Run **date +%Y--%m--%d**. - -## Output + +## Syntax + +- date + +- date --help + +- date +[_Format_] + +- date -u + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| ------- | ------------------------------ | ---------------------- | +| --help | Displays help information. | N/A | +| +Format | Prints the date and time in the specified format.| Placeholders listed in **--help**| +| -u | Displays UTC (not the current time zone). | N/A | + + +## Usage Guidelines + +- If no parameter is specified, the system date and time in UTC format are displayed by default. + +- The **--help**, **+Format**, and **-u** parameters are mutually exclusive. + +- Currently, this command cannot be used to set the time or date. + +## Note + +The shell does not support **date -u**. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example + +Run **date +%Y--%m--%d**. + + +## Output System date in the specified format: + ``` OHOS:/$ date +%Y--%m--%d 1970--01--01 ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-dmesg.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-dmesg.md index 71950cfa70ab6e746e2f958a9d59bc5612698a3c..492d6017b621fe36de23bfc1ec199b6a320d910a 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-dmesg.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-dmesg.md @@ -1,108 +1,61 @@ # dmesg -## Command Function + +## Command Function This command is used to display system boot and running information. -## Syntax + +## Syntax dmesg -dmesg \[_-c/-C/-D/-E/-L/-U_\] - -dmesg -s \[_size_\] - -dmesg -l \[_level_\] - -dmesg \> \[_fileA_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-c

-

Prints content in the buffer and clears the buffer.

-

N/A

-

-C

-

Clears the buffer.

-

N/A

-

-D/-E

-

Disables or enables printing to the console.

-

N/A

-

-L/-U

-

Disables or enables printing via the serial port.

-

N/A

-

-s size

-

Sets the size of the buffer.

-

N/A

-

-l level

-

Sets the buffering level.

-

0 - 5

-

> fileA

-

Writes the content in the buffer to the specified file.

-

N/A

-
- -## Usage - -- This command depends on **LOSCFG\_SHELL\_DMESG**. Before using this command, select **Enable Shell dmesg** on **menuconfig**. - - Debug ---\> Enable a Debug Version ---\> Enable Shell ---\> Enable Shell dmesg - -- If no parameter is specified, all content in the buffer is printed. -- The parameters followed by hyphens \(-\) are mutually exclusive. - 1. Before writing content to a file, ensure that the file system has been mounted. - 2. Disabling the serial port printing will adversely affect shell. You are advised to set up a connection using Telnet before disabling the serial port. - - -## Example - -Run **dmesg\> dmesg.log**. - -## Output - -Writing the content in the buffer to the **dmesg.log** file: +dmesg [_-c/-C/-D/-E/-L/-U_] + +dmesg -s [_size_] + +dmesg -l [_level_] + +dmesg > [_fileA_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| --------------- | ---------------------------------------- | --------------- | +| -c | Prints content in the buffer and clears the buffer. | N/A | +| -C | Clears the buffer. | N/A | +| -D/-E | Disables or enables printing to the console. | N/A | +| -L/-U | Disables or enables printing via the serial port. | N/A | +| -s size | Sets the size of the buffer. size specifies the buffer size to set.| N/A | +| -l level | Sets the buffering level. | [0, 5] | +| > fileA | Writes the content in the buffer to a file. | N/A | + + +## Usage Guidelines + +- This command can be used only after **LOSCFG_SHELL_DMESG** is enabled. To enable **LOSCFG_SHELL_DMESG**, run the **make menuconfig** command in **kernel/liteos_a**. In the displayed dialog box, locate the **Debug** option and set **Enable Shell dmesg** to **Yes**. + Debug ---> Enable a Debug Version ---> Enable Shell ---> Enable Shell dmesg + +- If no parameter is specified, all content in the buffer is printed. + +- The parameters followed by hyphens (-) are mutually exclusive. + 1. Before writing content to a file, ensure that the file system has been mounted. + 2. Disabling the serial port printing will adversely affect shell. You are advised to set up a connection using Telnet before disabling the serial port. + + +## Example + +Run **dmesg> dmesg.log**. + + +## Output + +Write the content in the buffer to the **dmesg.log** file. ``` OHOS # dmesg > dmesg.log Dmesg write log to dmesg.log success ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-exec.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-exec.md index d928f722e2a0dd97883b1305b601d4198d345bf6..bcd235842be3f23326f6845ee8b90d01ae4f1323 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-exec.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-exec.md @@ -1,54 +1,42 @@ # exec -## Command Function +## Command Function -This command is a built-in shell command used to execute user-mode programs. +This command is a built-in shell command used to execute basic user-mode programs. -## Syntax -exec <_executable-file_\> +## Syntax -## Parameters +exec <*executable-file*> -**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

executable-file

-

Indicates a valid executable file.

-

N/A

-
+## Parameters -## Usage +**Table 1** Parameter description + +| Parameter | Description | +| --------------- | ------------------ | +| executable-file | Specifies a valid executable file.| + + +## Usage Guidelines Currently, this command supports only valid binary programs. The programs are successfully executed and then run in the background by default. However, the programs share the same device with the shell. As a result, the output of the programs and the shell may be interlaced. -## Example -Example: +## Example -Run **exec helloworld**. +Run **exec helloworld**. + + +## Output -## Output ``` OHOS # exec helloworld OHOS # hello world! ``` ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->After the executable file is executed, the prompt **OHOS \#** is printed first. The shell **exec** command is executed in the background, causing the prompt to be printed in advance. - +> **NOTE**
+> After the executable file is executed, the prompt **OHOS #** is printed first. The shell **exec** command is executed in the background, causing the prompt to be printed in advance. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-free.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-free.md index 7922bd0a47ef4172d90aacdea2061f45eac7f9c9..936df019edf15824d1996fa0ee28288a2b88b547 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-free.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-free.md @@ -1,87 +1,43 @@ # free -## Command Function + +## Command Function This command is used to display the memory usage in the system. -## Syntax - -free \[_-b | -k | -m | -g | -t_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

No parameter

-

Displays the memory usage in bytes.

-

N/A

-

--help/-h

-

Displays the parameters supported by the free command.

-

N/A

-

-b

-

Displays the memory usage in bytes.

-

N/A

-

-k

-

Displays the memory usage in KiB.

-

N/A

-

-m

-

Displays the memory usage in MiB.

-

N/A

-

-g

-

Displays the memory usage in GiB.

-

N/A

-

-t

-

Displays the memory usage in TiB.

-

N/A

-
- -## Usage - -None - -## Example - -Run **free**, **free -k**, and **free -m**, respectively. - -## Output + +## Syntax + +free [_-b | -k | -m | -g | -t_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description | +| -------- | -------- | +| No parameter| Displays the memory usage in bytes.| +| --help/-h | Displays the parameters supported by the **free** command.| +| -b | Displays the memory usage in bytes.| +| -k | Display the memory waterline in KiB.| +| -m | Display the memory waterline in MiB.| +| -g | Displays the memory usage in GiB.| +| -t | Displays the memory usage in TiB.| + + +## Usage Guidelines + +None. + + +## Example + +Run **free**, **free -k**, and **free -m**, respectively. + + +## Output + ``` OHOS:/$ free @@ -101,40 +57,13 @@ Mem: 2 2 0 0 0 Swap: 0 0 0 ``` -**Table 2** Output - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

total

-

Total size of the dynamic memory pool

-

used

-

Size of the used memory

-

free

-

Size of the unallocated memory

-

shared

-

Size of the shared memory

-

buffers

-

Size of the buffer

-
+**Table 2** Output description + +| Parameter| Description| +| -------- | -------- | +| total | Total size of the dynamic memory pool.| +| used | Size of the used memory.| +| free | Size of the unallocated memory.| +| shared | Size of the shared memory.| +| buffers | Size of the buffer.| diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-help.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-help.md index afdf6852c2381d5d2ba09920016a197611c85fcc..e36d6a784f5629eb90e622f7b4ee166bb6243b9e 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-help.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-help.md @@ -1,36 +1,43 @@ # help -## Command Function + +## Command Function This command is used to display all commands in the OS and some Toybox commands. -## Syntax + +## Syntax help -## Parameters -None +## Parameters + +None. + -## Usage +## Usage Guidelines -You can run **help** to display all commands in the current OS. +You can run **help** to display all commands in the current OS. -## Example -Run **help**. +## Example -## Output +Run **help**. + + +## Output All commands in the system: + ``` After shell prompt "OHOS # ": Use ` [args ...]` to run built-in shell commands listed above. Use `exec [args ...]` or `./ [args ...]` to run external commands. OHOS:/$ help -*******************shell commands:************************* +***shell commands:* arp cat cat_logmpp cd chgrp chmod chown cp cpup date dhclient dmesg dns format free help hi3881 hwi @@ -44,11 +51,10 @@ watch writeproc After shell prompt "OHOS # ": Use ` [args ...]` to run built-in shell commands listed above. Use `exec [args ...]` or `./ [args ...]` to run external commands. -*******************toybox commands:************************ +***toybox commands: chgrp chmod chown cp date du free help ifconfig kill ls mkdir mount mv ping ps reboot rm rmdir top touch umount uname Use `toybox help [command]` to show usage information for a specific command. Use `shell` to enter interactive legacy shell. Use `alias` to display command aliases. ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-hwi.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-hwi.md index 52854b1cfa54f3aa3607f9ca2e43ac506d2edfce..c9f9cca164a3b251e34e95f2ca4608537b49d8f8 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-hwi.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-hwi.md @@ -1,155 +1,120 @@ # hwi -## Command Function + +## Command Function This command is used to query information about interrupts. -## Syntax -hwi +## Syntax -## Parameters - -None - -## Usage - -- Run **hwi** to display the interrupt IDs, count of interrupts, and registered interrupt names of the system. -- If **LOSCFG\_CPUP\_INCLUDE\_IRQ** is enabled, the interrupt handling time \(ATime\), CPU usage, and type of each interrupt are also displayed. - -## Example - -Run **hwi**. - -## Output - -- Interrupt information \(**LOSCFG\_CPUP\_INCLUDE\_IRQ** disabled\): - - ``` - OHOS # hwi - InterruptNo Count Name - 0: 0: - 1: 1025641: - 2: 0: - 29: 824049: - 37: 0: rtc_alarm - 38: 24: uart_pl011 - 48: 3: GPIO - 59: 0: - 62: 530: MMC_IRQ - 63: 70: MMC_IRQ - 64: 280: ETH - 67: 58: tde - 68: 0: JPGE_0 - 69: 0: IVE - 70: 0: VGS - 72: 0: VEDU_0 - 73: 0: nnie0 - 74: 0: nnie_gdc0 - 75: 0: VPSS - 76: 0: VI_PROC0 - 77: 0: JPEGD_0 - 83: 49455: HIFB_SOFT_INT - 87: 0: AIO interrupt - 88: 0: VI_CAP0 - 89: 0: MIPI_RX - 90: 49455: VO int - 91: 49456: HIFB Int - 96: 17601: MMC_IRQ - 100: 0: SPI_HI35XX - 101: 0: SPI_HI35XX - 102: 0: SPI_HI35XX - ``` - -- Interrupt information \(**LOSCFG\_CPUP\_INCLUDE\_IRQ** enabled\): - - ``` - OHOS # hwi - InterruptNo Count ATime(us) CPUUSE CPUUSE10s CPUUSE1s Mode Name - 0: 0 0 0.0 0.0 0.0 normal - 1: 937031 0 0.1 0.1 0.1 normal - 2: 0 0 0.0 0.0 0.0 normal - 29: 726166 5 0.54 0.57 0.59 normal - 37: 0 0 0.0 0.0 0.0 normal rtc_alarm - 38: 17 5 0.0 0.0 0.0 normal uart_pl011 - 48: 3 4 0.0 0.0 0.0 normal GPIO - 59: 0 0 0.0 0.0 0.0 normal - 62: 531 1 0.0 0.0 0.0 normal MMC_IRQ - 63: 69 1 0.0 0.0 0.0 normal MMC_IRQ - 64: 292 2 0.0 0.0 0.0 normal ETH - 67: 54 76 0.0 0.0 0.0 shared tde - 68: 0 0 0.0 0.0 0.0 shared JPGE_0 - 69: 0 0 0.0 0.0 0.0 shared IVE - 70: 0 0 0.0 0.0 0.0 shared VGS - 72: 0 0 0.0 0.0 0.0 shared VEDU_0 - 73: 0 0 0.0 0.0 0.0 shared nnie0 - 74: 0 0 0.0 0.0 0.0 shared nnie_gdc0 - 75: 0 0 0.0 0.0 0.0 shared VPSS - 76: 0 0 0.0 0.0 0.0 shared VI_PROC0 - 77: 0 0 0.0 0.0 0.0 shared JPEGD_0 - 83: 45529 8 0.5 0.5 0.5 shared HIFB_SOFT_INT - 87: 0 0 0.0 0.0 0.0 shared AIO interrupt - 88: 0 0 0.0 0.0 0.0 shared VI_CAP0 - 89: 0 0 0.0 0.0 0.0 shared MIPI_RX - 90: 45534 11 0.6 0.7 0.7 shared VO int - 91: 45533 2 0.1 0.1 0.1 shared HIFB Int - 96: 17383 2 0.0 0.0 0.0 normal MMC_IRQ - 100: 0 0 0.0 0.0 0.0 normal SPI_HI35XX - 101: 0 0 0.0 0.0 0.0 normal SPI_HI35XX - 102: 0 0 0.0 0.0 0.0 normal SPI_HI35XX - ``` - - **Table 1** Output - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

InterruptNo

-

Interrupt ID

-

Count

-

Number of interrupts

-

Name

-

Registered interrupt name

-

ATime

-

Interrupt handling time

-

CPUUSE

-

CPU usage

-

CPUUSE10s

-

CPU usage within the last 10 seconds

-

CPUUSE1s

-

CPU usage within the last 1 second

-

mode

-

Interrupt type, which can be any of the following:

-
  • normal: non-shared interrupt.
  • shared: shared interrupt.
-
+hwi +## Parameters + +None. + + +## Usage Guidelines + +- Run **hwi** to display the interrupt IDs, count of interrupts, and registered interrupt names of the system. + +- If **LOSCFG_CPUP_INCLUDE_IRQ** is enabled, the interrupt handling time (ATime), CPU usage, and type of each interrupt are also displayed. + + +## Example + +Run **hwi**. + + +## Output + +- Interrupt information (**LOSCFG_CPUP_INCLUDE_IRQ** disabled): + + ``` + OHOS # hwi + InterruptNo Count Name + 0: 0: + 1: 1025641: + 2: 0: + 29: 824049: + 37: 0: rtc_alarm + 38: 24: uart_pl011 + 48: 3: GPIO + 59: 0: + 62: 530: MMC_IRQ + 63: 70: MMC_IRQ + 64: 280: ETH + 67: 58: tde + 68: 0: JPGE_0 + 69: 0: IVE + 70: 0: VGS + 72: 0: VEDU_0 + 73: 0: nnie0 + 74: 0: nnie_gdc0 + 75: 0: VPSS + 76: 0: VI_PROC0 + 77: 0: JPEGD_0 + 83: 49455: HIFB_SOFT_INT + 87: 0: AIO interrupt + 88: 0: VI_CAP0 + 89: 0: MIPI_RX + 90: 49455: VO int + 91: 49456: HIFB Int + 96: 17601: MMC_IRQ + 100: 0: SPI_HI35XX + 101: 0: SPI_HI35XX + 102: 0: SPI_HI35XX + ``` + +- Interrupt information (**LOSCFG_CPUP_INCLUDE_IRQ** enabled): + + ``` + OHOS # hwi + InterruptNo Count ATime(us) CPUUSE CPUUSE10s CPUUSE1s Mode Name + 0: 0 0 0.0 0.0 0.0 normal + 1: 937031 0 0.1 0.1 0.1 normal + 2: 0 0 0.0 0.0 0.0 normal + 29: 726166 5 0.54 0.57 0.59 normal + 37: 0 0 0.0 0.0 0.0 normal rtc_alarm + 38: 17 5 0.0 0.0 0.0 normal uart_pl011 + 48: 3 4 0.0 0.0 0.0 normal GPIO + 59: 0 0 0.0 0.0 0.0 normal + 62: 531 1 0.0 0.0 0.0 normal MMC_IRQ + 63: 69 1 0.0 0.0 0.0 normal MMC_IRQ + 64: 292 2 0.0 0.0 0.0 normal ETH + 67: 54 76 0.0 0.0 0.0 shared tde + 68: 0 0 0.0 0.0 0.0 shared JPGE_0 + 69: 0 0 0.0 0.0 0.0 shared IVE + 70: 0 0 0.0 0.0 0.0 shared VGS + 72: 0 0 0.0 0.0 0.0 shared VEDU_0 + 73: 0 0 0.0 0.0 0.0 shared nnie0 + 74: 0 0 0.0 0.0 0.0 shared nnie_gdc0 + 75: 0 0 0.0 0.0 0.0 shared VPSS + 76: 0 0 0.0 0.0 0.0 shared VI_PROC0 + 77: 0 0 0.0 0.0 0.0 shared JPEGD_0 + 83: 45529 8 0.5 0.5 0.5 shared HIFB_SOFT_INT + 87: 0 0 0.0 0.0 0.0 shared AIO interrupt + 88: 0 0 0.0 0.0 0.0 shared VI_CAP0 + 89: 0 0 0.0 0.0 0.0 shared MIPI_RX + 90: 45534 11 0.6 0.7 0.7 shared VO int + 91: 45533 2 0.1 0.1 0.1 shared HIFB Int + 96: 17383 2 0.0 0.0 0.0 normal MMC_IRQ + 100: 0 0 0.0 0.0 0.0 normal SPI_HI35XX + 101: 0 0 0.0 0.0 0.0 normal SPI_HI35XX + 102: 0 0 0.0 0.0 0.0 normal SPI_HI35XX + ``` + +**Table 1** Output description + +| Parameter| Description| +| -------- | -------- | +| InterruptNo | Interrupt number.| +| Count | Number of interrupts.| +| Name | Registered interrupt name.| +| ATime | Interrupt handling time.| +| CPUUSE | CPU usage.| +| CPUUSE10s | CPU usage in the last 10s.| +| CPUUSE1s | CPU usage in the last 1s.| +| mode | Interrupt type, which can be any of the following:
- **normal**: non-shared interrupt.
- **shared**: shared interrupt.| diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-kill.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-kill.md index 841bcc90ac36ced0dc75a32e52defdcb89d51aff..4a68f5b68c533902900407f3c0e3769ee898b8ce 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-kill.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-kill.md @@ -1,125 +1,101 @@ # kill -## Command Function - -This command is used to send a signal to a specified process. - -## Syntax - -kill \[-l \[_signo_\] | _-s signo_ | _-signo_\] _pid..._ - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the kill command.

-

N/A

-

-l

-

Lists the names and numbers of signals.

-

N/A

-

-s

-

Sends signals

-

N/A

-

signo

-

Specifies the signal number.

-

[1,30]

-

pid

-

Specifies the process ID.

-

[1,MAX_INT]

-
- ->![](../public_sys-resources/icon-notice.gif) **NOTICE:** ->The value range of **signo** is \[0, 64\]. The recommended value range is \[1, 30\], and other values in the value range are reserved. - -## Usage - -- The **signo** and **pid** parameters are mandatory. -- The **pid** value range varies depending on the system configuration. For example, if the maximum **pid** value supported by the system is **256**, this value range is \[1-256\]. - -## Example - -- Query the process list before killing process 42. - - ``` - OHOS:/$ ps - allCpu(%): 4.67 sys, 195.33 idle - PID PPID PGID UID Status VirtualMem ShareMem PhysicalMem CPUUSE10s PName - 1 -1 1 0 Pending 0x33b000 0xbb000 0x4db02 0.0 init - 2 -1 2 0 Pending 0xdabc08 0 0xdabc08 1.14 KProcess - 3 1 3 7 Pending 0x72e000 0x1a3000 0x1d24c2 0.0 foundation - 4 1 4 8 Pending 0x362000 0xbb000 0x5c6ff 0.0 bundle_daemon - 5 1 5 1 Pending 0xdfa000 0x2e7000 0x1484f0 0.0 appspawn - 6 1 6 0 Pending 0x688000 0x137000 0x11bca0 0.0 media_server - 7 1 7 0 Pending 0x9d2000 0x103000 0xa1cdf 0.88 wms_server - 8 1 8 2 Pending 0x1f5000 0x48000 0x47dc2 0.2 mksh - 12 1 12 0 Pending 0x4d4000 0x112000 0xe0882 0.0 deviceauth_service - 13 1 13 0 Pending 0x34f000 0xbd000 0x51799 0.0 sensor_service - 14 1 14 2 Pending 0x34e000 0xb3000 0x52184 0.0 ai_server - 15 1 15 0 Pending 0x61f000 0x13b000 0x168071 0.45 softbus_server - 42 8 42 2 Pending 0x1c1000 0x3a000 0x1106a 0.9 test_demo - 43 8 43 2 Running 0x1d7000 0x3a000 0x1e577 0.0 toybox - ``` - -- Send signal 9 \(the default action of **SIGKILL** is to immediately terminate the process\) to process 42 test\_demo \(a user-mode process\). Then, check the current process list. The commands **kill -s 9 42** and **kill -9 42** have the same effect. - - ``` - OHOS:/$ kill -s 9 42 - OHOS:/$ - [1] + Killed ./nfs/test_demo - OHOS:/$ ps - allCpu(%): 4.73 sys, 195.27 idle - PID PPID PGID UID Status VirtualMem ShareMem PhysicalMem CPUUSE10s PName - 1 -1 1 0 Pending 0x33b000 0xbb000 0x4e01c 0.0 init - 2 -1 2 0 Pending 0xda5fa4 0 0xda5fa4 1.14 KProcess - 3 1 3 7 Pending 0x72e000 0x1a3000 0x1d29dc 0.0 foundation - 4 1 4 8 Pending 0x362000 0xbb000 0x5cc19 0.0 bundle_daemon - 5 1 5 1 Pending 0xdfa000 0x2e7000 0x148a0a 0.0 appspawn - 6 1 6 0 Pending 0x688000 0x137000 0x11c1ba 0.0 media_server - 7 1 7 0 Pending 0x9d2000 0x103000 0xa21f9 0.89 wms_server - 8 1 8 2 Pending 0x1f5000 0x48000 0x482dc 0.2 mksh - 12 1 12 0 Pending 0x4d4000 0x112000 0xe0d9c 0.0 deviceauth_service - 13 1 13 0 Pending 0x34f000 0xbd000 0x51cb3 0.0 sensor_service - 14 1 14 2 Pending 0x34e000 0xb3000 0x5269e 0.0 ai_server - 15 1 15 0 Pending 0x61f000 0x13b000 0x16858b 0.51 softbus_server - 45 8 45 2 Running 0x1d7000 0x3a000 0x1e9f5 0.0 toybox - ``` - -- Run the **kill -100 31** command. - -## Output - -**Example 1**: The signal is successfully sent to process 42. + +## Command Function + +This command is used to send a signal to a process to terminate the abnormal application. + + +## Syntax + +kill [-l [_signo_] | _-s signo_ | _-signo_] *pid...* + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| ------ | -------------------------- | ----------- | +| --help | Displays the parameters supported by the **kill** command.| N/A | +| -l | Lists the names and numbers of signals. | N/A | +| -s | Sends a signal. | N/A | +| signo | Specifies the signal number. | [1, 30] | +| pid | Specifies the process ID. | [1, MAX_INT] | + +> **NOTICE**
+> The value range of **signo** is [0, 64]. The recommended value range is [1, 30], and other values in the value range are reserved. + + +## Usage Guidelines + +- The **signo** and **pid** parameters are mandatory. + +- The **pid** value range varies depending on the system configuration. For example, if the maximum **pid** value supported by the system is **256**, this value range is [1, 256]. + +## Note + +The **kill** command is not supported by the shell. mksh supports it. To switch to mksh, run **cd bin;** and **./mksh**. + +## Example + +- Query the process list before killing process 42. + + ``` + OHOS:/$ ps + allCpu(%): 4.67 sys, 195.33 idle + PID PPID PGID UID Status VirtualMem ShareMem PhysicalMem CPUUSE10s PName + 1 -1 1 0 Pending 0x33b000 0xbb000 0x4db02 0.0 init + 2 -1 2 0 Pending 0xdabc08 0 0xdabc08 1.14 KProcess + 3 1 3 7 Pending 0x72e000 0x1a3000 0x1d24c2 0.0 foundation + 4 1 4 8 Pending 0x362000 0xbb000 0x5c6ff 0.0 bundle_daemon + 5 1 5 1 Pending 0xdfa000 0x2e7000 0x1484f0 0.0 appspawn + 6 1 6 0 Pending 0x688000 0x137000 0x11bca0 0.0 media_server + 7 1 7 0 Pending 0x9d2000 0x103000 0xa1cdf 0.88 wms_server + 8 1 8 2 Pending 0x1f5000 0x48000 0x47dc2 0.2 mksh + 10 5 5 101 Pending 0x11ec000 0x2f9000 0x206047 0.93 com.example.launcher + 12 1 12 0 Pending 0x4d4000 0x112000 0xe0882 0.0 deviceauth_service + 13 1 13 0 Pending 0x34f000 0xbd000 0x51799 0.0 sensor_service + 14 1 14 2 Pending 0x34e000 0xb3000 0x52184 0.0 ai_server + 15 1 15 0 Pending 0x61f000 0x13b000 0x168071 0.45 softbus_server + 42 8 42 2 Pending 0x1c1000 0x3a000 0x1106a 0.9 test_demo + 43 8 43 2 Running 0x1d7000 0x3a000 0x1e577 0.0 toybox + ``` + +- Send signal 9 (the default action of **SIGKILL** is to immediately terminate the process) to process 42 test_demo (a user-mode process). Then, check the current process list. The commands **kill -s 9 42** and **kill -9 42** have the same effect. + + ``` + OHOS:/$ kill -s 9 42 + OHOS:/$ + [1] + Killed ./nfs/test_demo + OHOS:/$ ps + allCpu(%): 4.73 sys, 195.27 idle + PID PPID PGID UID Status VirtualMem ShareMem PhysicalMem CPUUSE10s PName + 1 -1 1 0 Pending 0x33b000 0xbb000 0x4e01c 0.0 init + 2 -1 2 0 Pending 0xda5fa4 0 0xda5fa4 1.14 KProcess + 3 1 3 7 Pending 0x72e000 0x1a3000 0x1d29dc 0.0 foundation + 4 1 4 8 Pending 0x362000 0xbb000 0x5cc19 0.0 bundle_daemon + 5 1 5 1 Pending 0xdfa000 0x2e7000 0x148a0a 0.0 appspawn + 6 1 6 0 Pending 0x688000 0x137000 0x11c1ba 0.0 media_server + 7 1 7 0 Pending 0x9d2000 0x103000 0xa21f9 0.89 wms_server + 8 1 8 2 Pending 0x1f5000 0x48000 0x482dc 0.2 mksh + 10 5 5 101 Pending 0x11ec000 0x2f9000 0x206561 0.93 com.example.launcher + 12 1 12 0 Pending 0x4d4000 0x112000 0xe0d9c 0.0 deviceauth_service + 13 1 13 0 Pending 0x34f000 0xbd000 0x51cb3 0.0 sensor_service + 14 1 14 2 Pending 0x34e000 0xb3000 0x5269e 0.0 ai_server + 15 1 15 0 Pending 0x61f000 0x13b000 0x16858b 0.51 softbus_server + 45 8 45 2 Running 0x1d7000 0x3a000 0x1e9f5 0.0 toybox + ``` + +- Run the **kill -100 31** command. + + +## Output + +The command output is as follows: + +Example 1: The signal is successfully sent to process 42. + ``` OHOS:/$ kill -s 9 42 @@ -131,10 +107,10 @@ Process 42 is killed. **Example 2**: The signal fails to be sent to process 31. + ``` OHOS:/$ kill -100 31 kill: Unknown signal '(null)' ``` -**Unknown signal '\(null\)'** is displayed because the **signo** value **100** exceeds the value range \[0, 64\]. - +**Unknown signal '(null)'** is displayed because the **signo** value **100** exceeds the value range [0, 64]. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-log.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-log.md index 9809d169a35146e4a886a8706dbb30fb56162322..21f7dd52765eeda6b59b5896144446ec15aca850 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-log.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-log.md @@ -1,71 +1,62 @@ # log -## Command Function + +## Command Function This command is used to set and query log configuration. -## Syntax -log level \[_levelNum_\] +## Syntax + +log level [_levelNum_] + + -## Parameters +## Parameters -**Table 1** Parameter description +**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

levelNum

-

Specifies the level of logs to print.

-

[0,5]

-
+| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| levelNum | Specifies the level of logs to print.| [0, 5] | -## Usage -- This command depends on **LOSCFG\_SHELL\_LK**. Before using this command, select **Enable Shell lk** on **menuconfig**. +## Usage Guidelines - **Debug** ---\> **Enable a Debug Version** ---\> **Enable Shell** ---\> **Enable Shell lK** +- This command can be used only after **LOSCFG_SHELL_LK** is enabled. Before using this command, set **Enable Shell lk** to **Yes** on **menuconfig**. + **Debug** ---> **Enable a Debug Version** ---> **Enable Shell** ---> **Enable Shell lK** -- The **log level** command is used to set the log level, which can be any of the following: +- The **log level** command sets the log level, which can be any of the following: + TRACE_EMG = 0, - TRACE\_EMG = 0, + TRACE_COMMON = 1, - TRACE\_COMMON = 1, + TRACE_ERROR = 2, - TRACE\_ERROR = 2, + TRACE_WARN = 3, - TRACE\_WARN = 3, + TRACE_INFO = 4, - TRACE\_INFO = 4, + TRACE_DEBUG = 5 - TRACE\_DEBUG = 5 + If the log level specified is not within the value range, a message will be displayed. - If the log level specified is not within the value range, a message will be displayed. +- If **[levelNum]** is not specified, this command displays the current log level and how to use it. -- If **\[levelNum\]** is not specified, this command queries the current log level. The usage method is also displayed. -- If the log level is set to **4** or **5** in the source code of the open-source small system, a large number of logs will be printed. +- If the log level is set to **4** or **5** in the source code of an OpenHarmony small system, a large number of logs will be printed. -## Example -Run **log level 3**. +## Example -## Output +Run **log level 3**. + + +## Output + +The log print level is set to WARN. -Setting the log print level to WARN: ``` OHOS # log level 3 Set current log level WARN ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-memcheck.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-memcheck.md index 673393acbf78cce8379196dc0b8436565c4a9c2d..62e0005ebec2cc6d3f9cf34cbd4165d09074700e 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-memcheck.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-memcheck.md @@ -1,36 +1,45 @@ # memcheck -## Command Function + +## Command Function This command is used to check whether the dynamically allocated memory block is complete and whether nodes in the memory pool are damaged due to out-of-bounds memory access. -## Syntax + +## Syntax memcheck -## Parameters -None +## Parameters + +None. + + +## Usage Guidelines -## Usage +- If all nodes in the memory pool are complete, "system memcheck over, all passed!" is displayed. -- If all nodes in the memory pool are complete, "system memcheck over, all passed!" is displayed. -- If a node in the memory pool is incomplete, information about the memory block of the corrupted node is displayed. +- If a node in the memory pool is incomplete, information about the memory block of the corrupted node is displayed. -## Example -Run **memcheck**. +## Example -## Output +Run **memcheck**. -Example 1: All nodes in the memory pool are complete. +Run **memcheck**, and memory overwriting occurs. + + +## Output + +Example 1: No error is detected. ``` OHOS # memcheck system memcheck over, all passed! ``` -Example 2: Out-of-bounds memory access is detected. +Example 2: Memory overwriting is detected. ``` [L0S DLnkCheckMenl 349, memory check @@ -43,7 +52,7 @@ puмExcBuffAddr pc = 0x803ad7a4 puwExcBuffAddr lr = 0x803ad7a4 puwExcBuffAddr sp = 0х80cb7de0 puwExcBuffAddr fp = 0x80cb7dec -*******backtrace begin******* +***backtrace begin*** traceback 0 -- lr = 0х8037cb84 traceback 0 -- fp = 0х80cb7e1c traceback 1 -- lr = 0х8037033c @@ -55,4 +64,3 @@ traceback 3 -- fp = 0х80cb7ea4 traceback 4 -- lr = 0x803ad9e8 traceback 4 -- fp = 9x11111111 ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-oom.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-oom.md index 9372b8ae18ee255fba9f5abd8c9ca7c1a3a3946b..e9b1c0e806c3e05c83d1188a86f7e1dc67e075cc 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-oom.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-oom.md @@ -1,82 +1,56 @@ # oom -## Command Function + +## Command Function This command is used to query and set the low memory threshold and the PageCache reclaim threshold. -## Syntax + +## Syntax oom -oom -i \[_interval_\] +oom -i [_interval_] -oom -m \[_mem byte_\] +oom -m [_mem byte_] -oom -r \[_mem byte_\] +oom -r [_mem byte_] oom -h | --help -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-i [interval]

-

Sets the interval (in ms) for checking the Out Of Memory (OOM) thread task.

-

100 to 10000

-

-m [mem byte]

-

Sets the low memory threshold (in MB).

-

0 (disables the low memory check) to 1

-

-r [mem byte]

-

Sets the PageCache reclaim threshold.

-

Ranging from the low memory threshold to the maximum available system memory

-

-h | --help

-

Displays help information.

-

N/A

-
- -## Usage - -If no parameter is specified, this command displays the current OOM configuration. - ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->If the system memory is insufficient, the system displays a message indicating the insufficiency. - -## Example + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| ----------------------- | ------------------------------- | ------------------------------------------------------------ | +| -i [interval] | Sets the interval (in ms) for checking the Out Of Memory (OOM) thread task.| [100, 10000] | +| -m [mem byte] | Sets the low memory threshold (in MB). | 0 to 1
The value **0** means not to perform the low memory threshold check. | +| -r [mem byte] | Sets the PageCache reclaim threshold. | Low memory threshold to the maximum available memory of the system
Generally, the size of a PageCache is 4 KB. Sometimes, it is 16 KB to 64 KB. | +| -h \| --help | Displays help information. | N/A | + + +## Usage Guidelines + + If no parameter is specified, this command displays the current OOM configuration. + +> **NOTE**
+> If the system memory is insufficient, the system displays a message indicating the insufficiency. + + +## Example Run the following commands: -- oom -- oom -i 100 +- oom +- oom -i 100 + -## Output +## Output + +Example 1: The OOM configuration is displayed by default. -Example 1: displaying OOM configuration ``` OHOS:/$ oom @@ -88,6 +62,7 @@ OHOS:/$ oom Information displayed when the system memory is insufficient: + ``` T:20 Enter:IT MEM 00M 001 [oom] OS is in low memory state @@ -124,7 +99,7 @@ R10 = 0xa0a0a0a R11 = 0x20e20c8c R12 = 0х0 CPSR = 0х80000010 -*******backtrace beain******* +***backtrace beain*** traceback 0 -- lr = 0x9242e1c fp = 0х20e20cc4 lr in /usr/bin/testsuits apr 0x4be1c traceback 1 -- 1r = 0х92430cc fp = 0x20e20cdc lr in /usr/bin/testsuits app --> 0x4c0cc traceback 2 -- 1r = 0x9396ab0 fp = 0x20e20cec lr in /usr/bin/testsuits app -> 0х19fab0 @@ -133,49 +108,23 @@ traceback 4 -- lr = 0x92427d4 fp = 0x20e20d44 lr in /usr/bin/testsuits app --> 0 traceback 5 -- 1r = 0x20c4df50 fp = 0хb0b0b0b 1r in /1ib/libc.so - -> 0x62f50 ``` -Example 2: setting the OOM check interval to 100 ms + +Example 2: The OOM check interval is set to 100 ms. + + ``` OHOS:/$ oom -i 100 [oom] set oom check interval (100)ms successful ``` -**Table 2** Output - - - - - - - - - - - - - - - - - - - - - - -

Output

-

Description

-

[oom] OS is in low memory state

-

total physical memory: 0x1bcf000(byte), used: 0x1b50000(byte), free: 0x7f000(byte), low memory threshold: 0x80000(byte)

-

The operating system has low memory.

-

The available physical memory in the operating system is 0x1bcf000 bytes, 0x1b50000 bytes have been used, and 0x7f000 bytes are available. The current low memory threshold is 0x80000 bytes.

-

[oom] candidate victim process init pid: 1, actual phy mem byte: 82602

-

Memory usage of each process. The physical memory occupied by the init process is 82602 bytes.

-

[oom] candidate victim process UserProcess12 pid: 12, actual phy mem byte: 25951558

-

The actual memory used by the UserProcess12 process is 25951558 bytes.

-

[oom] max phy mem used process UserProcess12 pid: 12, actual phy mem: 25951558

-

The process that uses the most memory currently is UserProcess12.

-

excFrom: User!

-

The system memory is low, and the UserProcess12 process fails to apply for memory and exits.

-
+**Table 2** Output description + +| Parameter | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | +| [oom] OS is in low memory state
total physical memory: 0x1bcf000(byte), used: 0x1b50000(byte), free: 0x7f000(byte), low memory threshold: 0x80000(byte) | The OS has low memory.
The total physical memory is **0x1bcf000** bytes, **0x1b50000** bytes are used, and **0x7f000** bytes are left.
The current lower memory threshold is **0x80000** bytes. | +| [oom] candidate victim process init pid: 1, actual phy mem byte: 82602 | The memory occupied by the **init** process is 82602 bytes. | +| [oom] candidate victim process UserProcess12 pid: 12, actual phy mem byte: 25951558 | The memory used by the **UserProcess12** process is **25951558** bytes. | +| [oom] max phy mem used process UserProcess12 pid: 12, actual phy mem: 25951558 | The process that uses the most memory currently is **UserProcess12**. | +| excFrom: User! | The system memory is low, and the **UserProcess12** process fails to apply for memory and exits. | diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-pmm.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-pmm.md index ffa823db63ab1ff65a94f364c5f461e158b20096..18b86951a2c522947589659e795aa783d8f2a54b 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-pmm.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-pmm.md @@ -1,26 +1,32 @@ # pmm -## Command Function + +## Command Function This command is used to check the usage of the physical pages of the system memory and the page cache. -## Syntax + +## Syntax pmm -## Parameters -None +## Parameters + +None. + + +## Usage Guidelines + +This command is available only in the **Debug** version. -## Usage -This command is available only in the **Debug** version. +## Example -## Example +Run **pmm**. -Run **pmm**. -## Output +## Output Usage of physical pages: @@ -49,62 +55,17 @@ Vnode number = 67 Vnode memory size = 10720(B) ``` -**Table 1** Output - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

phys_seg

-

Address of the physical page control block

-

base

-

First physical page address, that is, start address of the physical page memory

-

size

-

Size of the physical page memory

-

free_pages

-

Number of free physical pages

-

active anon

-

Number of active anonymous pages in the page cache

-

inactive anon

-

Number of inactive anonymous pages in the page cache

-

active file

-

Number of active file pages in the page cache

-

inactive file

-

Number of inactive file pages in the page cache

-

pmm pages

-

total: total number of physical pages.

-

used: number of used physical pages.

-

free: number of free physical pages.

-
+**Table 1** Output description + +| Parameter| Description| +| -------- | -------- | +| phys_seg | Address of the physical page control block.| +| base | First physical page address, that is, start address of the physical page memory.| +| size | Size of the physical page memory.| +| free_pages | Number of free physical pages.| +| active anon | Number of active anonymous pages in the page cache.| +| inactive anon | Number of inactive anonymous pages in the page cache.| +| active file | Number of active file pages in the page cache.| +| inactive file | Number of inactive file pages in the page cache.| +| pmm pages | **total** indicates the total number of physical pages.
**used** indicates the number of used physical pages.
**free** indicates the number of idle physical pages. | diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-reboot.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-reboot.md index 000cc3873b7069ad2711a73b818a5330ebb775c3..1946b80351426b884b1a6c5e18e649e5c3b153ca 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-reboot.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-reboot.md @@ -1,26 +1,31 @@ # reboot -## Command Function + +## Command Function This command is used to restart a device. -## Syntax + +## Syntax reboot -## Parameters -None +## Parameters + +None. + + +## Usage Guidelines -## Usage +After the **reboot** command is executed, the device restarts immediately. -After the **reboot** command is executed, the device restarts immediately. -## Example +## Example reboot -## Output -None +## Output +None. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-reset.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-reset.md index 7fca8b04a7cebdd6fb998c3f8472c7b1950faa3e..d8e9151e3b61ea9ec08674c5dff9ced753d16a44 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-reset.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-reset.md @@ -1,26 +1,31 @@ # reset -## Command Function + +## Command Function This command is used to restart a device. -## Syntax + +## Syntax reset -## Parameters -None +## Parameters + +None. + + +## Usage Guidelines -## Usage +After the **reset** command is executed, the device restarts immediately. -After the **reset** command is executed, the device restarts immediately. -## Example +## Example -Run **reset**. +Run **reset**. -## Output -None +## Output +None. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md index 61e9c5cce389ef7a90eb244f224ded03f00664d1..b079f1880ad5a4f2dc289a0497997694db7b5562 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md @@ -1,58 +1,44 @@ # sem -## Command Function + +## Command Function This command is used to query information about kernel semaphores. -## Syntax -sem \[_ID__ / fulldata_\] +## Syntax + +sem [_ID__ / fulldata_] + + +## Parameters + +**Table 1** Parameter description -## Parameters +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| ID | Specifies the semaphore ID.| [0, 1023] or [0x0, 0x3FF]| +| fulldata | Displays information about all semaphores in use.
The displayed information includes **SemID**, **Count**, **Original Count**, **Creator TaskEntry**, and **Last Access Time**. | N/A | -**Table 1** Parameter description - - - - - - - - - - - - - - - -

Parameter

-

Parameters

-

Value Range

-

ID

-

Specifies the semaphore ID.

-

[0, 1023] or [0x0, 0x3FF]

-

fulldata

-

Queries information about all the semaphores in use. The information includes SemID, Count, OriginalCount, Creator(TaskEntry), and LastAccessTime.

-

N/A

-
+## Usage Guidelines -## Usage +- If no parameter is specified, this command displays the semaphore IDs and the number of times that each semaphore is used. -- If no parameter is specified, this command displays the semaphore IDs and the number of times that each semaphore is used. -- If **ID** is specified, the use of the specified semaphore is displayed. -- The **fulldata** parameter depends on **LOSCFG\_DEBUG\_SEMAPHORE**. Before using this parameter, select **Enable Semaphore Debugging** on **menuconfig**. +- If **ID** is specified, the use of the specified semaphore is displayed. - Debug ---\> Enable a Debug Version ---\> Enable Debug LiteOS Kernel Resource ---\> Enable Semaphore Debugging +- The **fulldata** parameter depends on **LOSCFG_DEBUG_SEMAPHORE**. Before using this parameter, set **Enable Semaphore Debugging** to **Yes** on **menuconfig**. + **Debug** ---> **Enable a Debug Version** ---> **Enable Debug LiteOS Kernel Resource** ---> E**nable Semaphore Debugging** -## Example +## Example -- Run **sem**. -- Configure **LOSCFG\_DEBUG\_SEMAPHORE** and run **sem fulldata**. +- Run **sem**. -## Output +- Configure **LOSCFG_DEBUG_SEMAPHORE** and run **sem fulldata**. + + +## Output Example 1: brief semaphore information @@ -81,31 +67,17 @@ OHOS # sem 0x00000006 0 ``` -**Table 2** Output - - - - - - - - - - - - - -

Parameter

-

Description

-

SemID

-

Semaphore ID

-

Count

-

Number of times that the semaphore is used

-
- ->![](../public_sys-resources/icon-note.gif) **NOTE** ->The **ID** value can be in decimal or hexadecimal format. ->When **ID** is a value within \[0, 1023\], semaphore information of the specified ID is displayed. If the specified semaphore is not used, a message is displayed to inform you of this case. For other values, a message is displayed indicating that the parameter is incorrect. +**Table 2** Output description + +| Parameter| Description| +| -------- | -------- | +| SemID | Semaphore ID.| +| Count | Number of times that the semaphore is used.| + +> **NOTE**
+> The **ID** value can be in decimal or hexadecimal format. +> +> When **ID** is a value within [0, 1023], semaphore information of the specified ID is displayed. If the specified semaphore is not used, a message is displayed to inform you of this case. For other values, a message is displayed indicating that the parameter is incorrect. Example 2: detailed semaphore information @@ -141,40 +113,12 @@ Used Semaphore List: 0x38 0x1 0x1 0x404978fc 0x395 ``` -**Table 3** Output description - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

SemID

-

Semaphore ID

-

Count

-

Number of times that the semaphore is used

-

OriginalCount

-

Original count of the semaphore

-

Creator

-

Address of the entry function of the thread used to create the semaphore

-

LastAccessTime

-

Last time when the semaphore was accessed

-
+**Table 3** Output description +| Parameter| Description| +| -------- | -------- | +| SemID | Semaphore ID.| +| Count | Number of times that the semaphore is used.| +| OriginalCount | Original count of the semaphore.| +| Creator | Address of the entry function of the thread used to create the semaphore.| +| LastAccessTime | Last time when the semaphore was accessed.| diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-stack.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-stack.md index da1aad64eac9f0e54ce8fe75f41a8da78ef344ef..9f04a4e979c0789f75b62c9adc36ac7f6ec520e5 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-stack.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-stack.md @@ -1,27 +1,32 @@ # stack -## Command Function +## Command Function This command is used to check the usage of each stack in the system. -## Syntax + +## Syntax stack -## Parameters -None +## Parameters + +None. + + +## Usage Guidelines + +None. -## Usage -None +## Example -## Example +Run **stack**. -Run **stack**. -## Output +## Output System stack usage: @@ -35,40 +40,12 @@ OHOS # stack exc_stack 0 0x405c9000 0x1000 0x0 ``` -**Table 1** Output - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

stack name

-

Name of the stack

-

cpu id

-

CPU ID

-

stack addr

-

Stack address

-

total size

-

Total stack size

-

used size

-

Size of the stack used

-
+**Table 1** Output description +| Parameter| Description| +| -------- | -------- | +| stack name | Name of the stack.| +| cpu id | CPU number.| +| stack addr | Stack address.| +| total size | Total stack size.| +| used size | Size of the stack used.| diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-su.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-su.md index 7e23b3b60dcd0ee80701d5d42b0f4ac267e444d2..479daa7ece87d057cba58783ce7aa50ff223a930 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-su.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-su.md @@ -1,56 +1,43 @@ # su -## Command Function + +## Command Function This command is used to switch the user account. -## Syntax -su \[_uid_\] \[_gid_\] +## Syntax + +su [_uid_] [_gid_] + + +## Parameters + +**Table 1** Parameter description -## Parameters +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| uid | Specifies the ID of the target user.| - Left blank
- [0, 60000] | +| gid | Specifies the ID of the target user group.| - Left blank
- [0, 60000] | -**Table 1** Parameter description - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

uid

-

Specifies the ID of the target user.

-
  • Left blank
  • [0,60000]
-

gid

-

Specifies the ID of the target user group.

-
  • Left blank
  • [0,60000]
-
+## Usage Guidelines -## Usage +- If no parameter is specified, the **su** command switches to user **root** by default. The **uid** and **gid** for user **root** are both **0**. -- If no parameter is specified, the **su** command switches to user **root** by default. The **uid** and **gid** for user **root** are both **0**. -- If **uid** and **gid** are specified, this command allows commands to be executed as the user with the specified **uid** and **gid**. -- If the input parameter is out of the range, an error message will be printed. +- If **uid** and **gid** are specified, this command allows commands to be executed as the user with the specified **uid** and **gid**. -## Example +- If the input parameter is out of the range, an error message will be printed. -Run **su 1000 1000**. -## Output +## Example -Switching to the user with both **uid** and **gid** of **1000**: +Run **su 1000 1000**. + + +## Output + +The user with both **uid** and **gid** of **1000** is switched. ``` OHOS # ls @@ -63,4 +50,3 @@ Directory /data/system/param: -rw-r--r-- O u:1000 g:1000 hello 2.txt -гw-r--r-- 0 u:0 g:0 hello_1.txt ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-swtmr.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-swtmr.md index a764d66fc83e1d7d8b2e2eabacfbefc3a61462f7..b436a80e4911073c6df1db96ff6b56e4752d13b0 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-swtmr.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-swtmr.md @@ -1,50 +1,42 @@ # swtmr -## Command Function +## Command Function This command is used to query information about system software timers. -## Syntax -swtmr \[_ID_\] +## Syntax -## Parameters +swtmr [_ID_] -**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

ID

-

Specifies the ID of a software timer.

-

[0,0xFFFFFFFF]

-
+## Parameters -## Usage +**Table 1** Parameter description -- If no parameter is specified, information about all software timers is displayed. -- If the **ID** parameter is specified, information about the specified software timer is displayed. +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| ID | Specifies the ID of a software timer.| [0, 0xFFFFFFFF] | -## Example + +## Usage Guidelines + +- If no parameter is specified, information about all software timers is displayed. + +- If the **ID** parameter is specified, information about the specified software timer is displayed. + + +## Example Run the following commands: -- swtmr -- swtmr 1 +- swtmr + +- swtmr 1 -## Output + +## Output Example 1: information about all software timers @@ -76,56 +68,19 @@ SwTmrID State Mode Interval Count Arg handlerAddr 0x00000001 Ticking Period 1000 841 0x00000000 0x4037fc04 ``` -**Table 2** Output - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

SwTmrID

-

ID of the software timer

-

State

-

Status of the software timer

-

The value can be UnUsed, Created, or Ticking.

-

Mode

-

Mode of the software timer

-

The value can be Once, Period, or NSD (one-shot timer that will not be automatically deleted after the timer has expired).

-

Interval

-

Number of ticks for the software timer

-

Count

-

Number of times that the software timer has been used

-

Arg

-

Input parameter

-

handlerAddr

-

Address of the callback

-
- ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- The **ID** value can be in decimal or hexadecimal format. ->- If the **ID** value is within the range of \[0, _Number of current software timers - 1_\], the status of the specified software timer is returned. For other values, an error message is displayed. - + **Table 2** Output description + +| Parameter| Description| +| -------- | -------- | +| SwTmrID | ID of the software timer.| +| State | Status of the software timer.
The status may be **UnUsed**, **Created**, or **Ticking**.| +| Mode | Mode of the software timer.
The value can be **Once**, **Period**, or **NSD** (one-shot timer that will not be automatically deleted after the timer has expired).| +| Interval | Number of ticks for the software timer.| +| Count | Number of times that the software timer has been used.| +| Arg | Input parameter.| +| handlerAddr | Address of the callback.| + +> **NOTE**
+> - The **ID** value can be in decimal or hexadecimal format. +> +> - If the **ID** value is within the range of [0, *Number of current software timers - 1*], the status of the specified software timer is returned. Otherwise, an error code is returned. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-sysinfo.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-sysinfo.md index c1a81444f8b4af508906bd02a7ca500a36e7c0ad..b476c06d33d370470e0d291593a99a516b92ea4a 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-sysinfo.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-sysinfo.md @@ -1,26 +1,32 @@ # systeminfo -## Command Function + +## Command Function This command is used to display the resource usage of the current operating system, including tasks, semaphores, mutexes, queues, and software timers. -## Syntax + +## Syntax systeminfo -## Parameters -None +## Parameters + +None. + -## Usage +## Usage Guidelines -None +None. -## Example -Run **systeminfo**. +## Example -## Output +Run **systeminfo**. + + +## Output Usage of system resources: @@ -34,60 +40,15 @@ OHOS:/$ systeminfo SwTmr 20 1024 YES ``` -**Table 1** Output - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Module

-

Module name

-

Used

-

Used resources

-

Total

-

Total resources

-

Enabled

-

Whether the module is enabled

-

Task

-

Task

-

Sem

-

Semaphore

-

Mutex

-

Mutex

-

Queue

-

Message queue

-

SwTmr

-

Software timer

-
- +**Table 1** Output description + +| Parameter | Description | +| ------- | -------------- | +| Module | Module name. | +| Used | Used resources. | +| Total | Total resources. | +| Enabled | Whether the module is enabled.| +| Task | Task. | +| Sem | Semaphore. | +| Queue | Using queues. | +| SwTmr | Software timer. | diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-task.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-task.md index 2510d417ccf6bc7e9d398daadf9941bd87e0cb1c..704943bc02067ad14ef153420227beff568ec773 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-task.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-task.md @@ -1,47 +1,38 @@ # task -## Command Function + +## Command Function This command is used to query information about processes and threads. -## Syntax + +## Syntax task/task -a -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-a

-

Displays all information.

-

N/A

-
- -## Usage + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| -a | Displays all information.| N/A | + + +## Usage Guidelines If no parameter is specified, partial task information is displayed by default. -## Example -Run **task**. +## Example + +Run **task**. -## Output -Task information \(partial\): +## Output + +Task information (partial): ``` OHOS # task @@ -55,6 +46,7 @@ OHOS # task 6 1 6 0 Pending 0x688000 0x137000 0x11c518 0.0 media_server 7 1 7 0 Pending 0x9d2000 0x103000 0xa1ddf 0.89 wms_server 8 1 1 1000 Running 0x2bf000 0x8f000 0x2a8c6 0.0 shell + 9 5 5 101 Pending 0x11ea000 0x2f9000 0x20429d 0.97 com.example.launcher 11 1 11 0 Pending 0x4d4000 0x112000 0xe0ad7 0.0 deviceauth_service 12 1 12 0 Pending 0x34f000 0xbd000 0x519ee 0.0 sensor_service 13 1 13 2 Pending 0x34e000 0xb3000 0x523d9 0.0 ai_server @@ -68,75 +60,19 @@ OHOS # task 7 2 0x3 -1 Pending 0x4e20 0xa5c 0.0 0 PlatformWorkerThread ``` -**Table 2** Output - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

PID

-

Process ID

-

PPID

-

Parent process ID

-

PGID

-

Process group ID

-

UID

-

User ID

-

Status

-

Current task status

-

CPUUSE10s

-

CPU usage within last 10 seconds

-

PName

-

Process name

-

TID

-

Task ID

-

StackSize

-

Size of the task stack

-

WaterLine

-

Peak value of the stack used

-

MEMUSE

-

Memory usage

-

TaskName

-

Task name

-
- +**Table 2** Output description + +| Parameter| Description| +| -------- | -------- | +| PID | Process ID.| +| PPID | Parent process ID.| +| PGID | Process group ID.| +| UID | User ID.| +| Status | Current task status.| +| CPUUSE10s | CPU usage within last 10 seconds.| +| PName | Name of the process.| +| TID | Task ID.| +| StackSize | Size of the task stack.| +| WaterLine | Peak value of the stack used.| +| MEMUSE | Memory usage.| +| TaskName | Task name.| diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-top.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-top.md index 4fa4959b1b082d0394b78ef271ac9b89a4f29901..34473f90c320656aecea022849e401b515b08c18 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-top.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-top.md @@ -1,56 +1,40 @@ # top -## Command Function + +## Command Function This command is used to query process and thread information. -## Syntax - -top \[_-a_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Default Value

-

Value Range

-

--help

-

Displays the parameters supported by the top command.

-

N/A

-
  

-a

-

Displays detailed information.

-

N/A

-
  
- -## Usage - -If no parameter is specified, this command displays process and thread information of some tasks by default. - -## Example - -Run **top**. - -## Output + +## Syntax + +top [_-a_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | +| ------ | --------------------------- | +| --help | Displays the parameters supported by the **top** command.| +| -a | Displays detailed information. | + + +## Usage Guidelines + +If no parameter is specified, partial task information is displayed by default. + +## Note + +Currently, the shell does not support this command. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example + +Run **top**. + + +## Output Command output @@ -97,75 +81,19 @@ OHOS:/$ top 64 2 0x3 -1 Pending 0x4000 0x244 0.0 0 USB_NGIAN_BULK_TasK ``` -**Table 2** Output description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

PID

-

Process ID

-

PPID

-

Parent process ID

-

PGID

-

Process group ID

-

UID

-

User ID

-

Status

-

Current task status

-

CPUUSE10s

-

CPU usage within last 10 seconds

-

PName

-

Process name

-

TID

-

Task ID

-

StackSize

-

Size of the task stack

-

WaterLine

-

Peak value of the stack used

-

MEMUSE

-

Memory usage

-

TaskName

-

Task name

-
- +**Table 2** Output description + +| Parameter | Description | +| --------- | ----------------- | +| PID | Process ID. | +| PPID | Parent process ID. | +| PGID | Process group ID. | +| UID | User ID. | +| Status | Current task status. | +| CPUUSE10s | CPU usage within last 10 seconds.| +| PName | Name of the process. | +| TID | Task ID. | +| StackSize | Size of the task stack. | +| WaterLine | Peak value of the stack used. | +| MEMUSE | Memory usage. | +| TaskName | Task name. | diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-uname.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-uname.md index 525cb31fef3903869fc35b478203e734cebde25d..ab22f6a1c51e0c1f12f4e78eb84415a52d218d29 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-uname.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-uname.md @@ -1,84 +1,56 @@ # uname -## Command Function + +## Command Function This command is used to display the name, version creation time, system name, and version information of the current operating system. -## Syntax - -uname \[_-a | -s | -r | -m | -n | -v | --help_\] - -**Table 1** Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Parameters

-

--help

-

Displays help information.

-

No parameter

-

Displays the operating system name by default.

-

-a

-

Displays all information.

-

-s

-

Displays the operating system name.

-

-r

-

Displays the kernel release version.

-

-m

-

Displays the operating system architecture name.

-

-n

-

Displays the network domain name of the host.

-

-v

-

Displays version information.

-
- -## Usage - -- The **uname** command displays the name of the current operating system by default. -- Except **--help** and **-a**, other parameters can be used together. **uname -a** is equivalent to **uname -srmnv**. - -## Example + +## Syntax + +uname [_-a | -s | -r | -m | -n | -v | --help_] + + +**Table 1** Parameter description + +| Parameter | Description | +| ------ | ----------------------- | +| --help | Displays help information.| +| No parameter| Displays the operating system name by default. | +| -a | Displays all data. | +| -s | Displays the operating system name. | +| -r | Displays the kernel release version. | +| -m | Displays the operating system architecture name. | +| -n | Displays the network domain name of the host. | +| -v | Displays version information. | + + +## Usage Guidelines + +- The **uname** command displays the name of the current operating system by default. + +- Except **--help** and **-a**, other parameters can be used together. **uname -a** is equivalent to **uname -srmnv**. + +## Note + +The **-r**, **-m**, and **-n** parameters are not supported currently. mksh supports these parameters. To switch to mksh, run **cd bin** and **./mksh**. + +## Example Run the following commands: -- uname -a -- uname -ms +- uname -a + +- uname -ms -## Output + +## Output Example 1: all information of the operating system ``` OHOS:/$ uname -a -LiteOS hisilicon 2.0.x.x Huawei LiteOS 2.0.x.x Oct 21 2021 17:39:32 Cortex-A7 +LiteOS hisilicon 2.0.0.37 LiteOS 2.0.0.37 Oct 21 2021 17:39:32 Cortex-A7 OHOS:/$ ``` @@ -89,4 +61,3 @@ OHOS:/$ uname -ms LiteOS Cortex-A7 OHOS:/$ ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-vmm.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-vmm.md index cce14dd6bbca807f007073d792efcfb8e3577823..860a23db1d717ca3d2d79df7184491a2cbb969d9 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-vmm.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-vmm.md @@ -1,60 +1,40 @@ # vmm -## Command Function + +## Command Function This command is used to query the virtual memory used by a process. -## Syntax - -- vmm \[_-a / -h / --help_\] -- vmm \[_pid_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-a

-

Displays the virtual memory usage of all processes.

-

N/A

-

-h | --help

-

Displays help information.

-

N/A

-

pid

-

Specifies the ID of the process to query.

-

[0,63]

-
- -## Usage + +## Syntax + +- vmm [_-a / -h / --help_] + +- vmm [_pid_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| -a | Displays the virtual memory usage of all processes.| N/A | +| -h \| --help | Displays help information.| N/A | +| pid | Specifies the ID of the process to query.| [0, 63] | + + +## Usage Guidelines By default, this command displays the virtual memory usage of all processes. -## Example -Run **vmm 3**. +## Example -## Output +Run **vmm 3**. + + +## Output Virtual memory usage of process 3: @@ -82,92 +62,25 @@ OHOS # vmm 3 0x408c3ce0 /lib/libc++.so 0x23cb0000 0x00001000 CH US RD WR 1 1 ``` -**Table 2** Basic process information - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

PID

-

Process ID

-

aspace

-

Address of the virtual memory control block

-

name

-

Process name

-

base

-

Start address of the virtual memory

-

size

-

Size of virtual memory

-

pages

-

Number of used physical pages

-
- -**Table 3** Virtual memory region information - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

region

-

Address of the control block in the virtual memory region

-

name

-

Name of the virtual memory region

-

base

-

Start address of the virtual memory region

-

size

-

Size of the virtual memory region

-

mmu_flags

-

MMU mapping attribute of the virtual memory region

-

pages

-

Number of used physical pages, including that of the shared memory

-

pg/ref

-

Number of used physical pages

-
- +**Table 2** Basic process information + +| Parameter| Description| +| -------- | -------- | +| PID | Process ID.| +| aspace | Address of the virtual memory control block.| +| name | Process name.| +| base | Start address of the virtual memory.| +| size | Total Virtual Memory.| +| pages | Number of used physical pages.| + +**Table 3** Virtual memory interval information + +| Parameter| Description| +| -------- | -------- | +| region | Address of the control block in the virtual memory region.| +| name | Name of the virtual memory region.| +| base | Start address of the virtual memory region.| +| size | Size of the virtual memory region.| +| mmu_flags | MMU mapping attribute of the virtual memory region.| +| pages | Number of used physical pages, including that of the shared memory.| +| pg/ref | Number of used physical pages.| diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-watch.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-watch.md index 343634d384010dd73dc69708e9d000a92925900e..9282a3edb469f6f01e78b13f5c72bb7cc11e9e64 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-watch.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-watch.md @@ -1,88 +1,44 @@ # watch -## Command Function + +## Command Function This command is used to periodically run the specified command and display its execution result. -## Syntax - -- watch -- watch \[_-c/-n/-t/--count/--interval/-no-title/--over_\] \[_command_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Default Value

-

Value Range

-

-c / --count

-

Specifies the number of times that the specified command is executed.

-

0xFFFFFF

-

(0, 0xFFFFFF]

-

-n / --interval

-

Specifies the interval (in seconds) for periodically running the specified command.

-

1s

-

(0, 0xFFFFFF]

-

-t / -no-title

-

Disables time display on the top.

-

N/A

-

N/A

-

command

-

Specifies the command to be monitored.

-

N/A

-

N/A

-

--over

-

Stops the current command monitoring.

-

N/A

-

N/A

-
- -## Usage - -You can run the **watch --over** command to stop monitoring of the specified command. - -## Example - -Run **watch -n 2 -c 6 task**. - -## Output - -Example: The **task** command is executed six times at an interval of 2 seconds. + +## Syntax + +- watch + +- watch [_-c/-n/-t/--count/--interval/-no-title/--over_] [_command_] + + +## Parameters + + **Table 1** Parameter description + +| Parameter| Description| Default Value| Value Range| +| -------- | -------- | -------- | -------- | +| -c / --count | Specifies the number of times that the specified command is executed.| 0xFFFFFF | (0, 0xFFFFFF]| +| -n / --interval | Specifies the interval for running the command, in seconds.| 1s | (0, 0xFFFFFF]| +| -t / -no-title | Disables time display on the top.| N/A | N/A | +| command | Specifies the command to be monitored.| N/A | N/A | +| --over | Stops the current command monitoring.| N/A | N/A | + + +## Usage Guidelines + +You can run the **watch --over** command to stop monitoring of the specified command. + + +## Example + +Run **watch -n 2 -c 6 task**. + + +## Output + +Example: The **task** command is executed six times at an interval of 2 seconds. ``` OHOS # watch -n 2 -c 6 task @@ -121,4 +77,3 @@ OHOS # 17 2 0x3 0 Running 0x3000 0x73c 0.0 0 shellcmd_watch 18 2 0x3 -1 Pending 0x2710 0x3ac 0.0 0 GPIO_IRQ_TSK_0_4 ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-cat.md b/en/device-dev/kernel/kernel-small-debug-shell-file-cat.md index 7a4fd54ccea998e7a1621eeb2a7d082f1ab5865d..d11c33deb1a565600d0117a21b2e0b4db2e14b02 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-cat.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-cat.md @@ -1,50 +1,41 @@ # cat -## Command Function + + +## Command Function This command is used to display the content of a text file. -## Syntax -cat \[_pathname_\] +## Syntax + +cat [_pathname_] + -## Parameters +## Parameters -**Table 1** Parameter description +**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

pathname

-

Specifies the file path.

-

An existing file

-
+| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| pathname | Specifies the file path. | An existing file | -## Usage -Run the **cat** \[_pathname_\] command to display the content of a text file. +## Usage Guidelines -## Example +Run the **cat** [*pathname*] command to display the content of a text file. -Run **cat hello-harmony.txt**. -## Output +## Example -Content of **hello-harmony.txt** +Run **cat hello-openharmony.txt**. + + +## Output + +Content of **hello-openharmony.txt** ``` -OHOS # cat hello-harmony.txt -OHOS # Hello Harmony ;) +OHOS # cat hello-openharmony.txt +OHOS # Hello openharmony ;) ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-cd.md b/en/device-dev/kernel/kernel-small-debug-shell-file-cd.md index 187e454a2ad69814abdd8f15adab12cb39370872..5318eeb638bd75e0f9b52d4d95bc8575208905b3 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-cd.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-cd.md @@ -1,51 +1,46 @@ # cd -## Command Function +## Command Function This command is used to change the current working directory. -## Syntax -cd \[_path_\] +## Syntax -## Parameters +cd [_path_] -**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

path

-

Specifies the target file path.

-

You must have the execution (search) permission for the specified directory.

-
+## Parameters -## Usage +**Table 1** Parameter description -- If **path** is not specified, this command switches to the root directory. -- If **path** is specified, this command switches to the specified directory. -- The **path** value starting with a slash \(/\) represents the root directory. -- The **path** value starting with a dot \(.\) represents the current directory. -- The **path** value starting with two dots \(..\) represents the parent directory. -- You can run **cd -** to alternate between two directories that are recently accessed. +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| path | Specifies the path of the new directory. | You must have the execution (search) permission on the specified directory.| -## Example -Run **cd ..**. +## Usage Guidelines -## Output +- If **path** is not specified, this command switches to the root directory. + +- If **path** is specified, this command switches to the specified directory. + +- The **path** value starting with a slash (/) represents the root directory. + +- The **path** value starting with a dot (.) represents the current directory. + +- The **path** value starting with two dots (..) represents the parent directory. + +- You can run **cd -** to alternate between two directories that are recently accessed. + + +## Example + +Run **cd ..**. + + +## Output Parent directory information: @@ -55,4 +50,3 @@ OHOS:/$ ls bin etc nfs sdcard system tmp vendor dev lib proc storage test usr ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-chgrp.md b/en/device-dev/kernel/kernel-small-debug-shell-file-chgrp.md index af1df3355499e935a6df4931e722282d5826c268..9163aaa988a3a7789cfc2ef40d2bca0bb8296a3c 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-chgrp.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-chgrp.md @@ -1,55 +1,43 @@ # chgrp -## Command Function + +## Command Function This command is used to change the file group. -## Syntax -chgrp \[_group_\] \[_pathname_\] +## Syntax + +chgrp [_group_] [_pathname_] + + +## Parameters -## Parameters +**Table 1** Parameter description -**Table 1** Parameter description +| Parameter | Description | Value Range | +| -------- | ---------- | -------------- | +| group | Specifies the target file group.| [0, 0xFFFFFFFF] | +| pathname | Specifies the file path. | An existing file | - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

group

-

Specifies the target file group.

-

[0, 0xFFFFFFFF]

-

pathname

-

Specifies the file path.

-

An existing file

-
-## Usage +## Usage Guidelines -- Specify **group** to change the file group. -- For the FAT file system, this command cannot be used to change user group IDs. +- Specify **group** to change the file group. +- For the FAT file system, this command cannot be used to change user group IDs. -## Example +## Note -Run **chgrp 100 testfile**. +Currently, the shell does not support this command. -## Output +## Example -Changing the group ID of the **testfile** file in the **dev/** directory to **100** +Run **chgrp 100 testfile**. + + +## Output + +Change the group ID of the **testfile** file in the **dev/** directory to **100**. ``` OHOS:/dev$ ll testfile @@ -59,4 +47,3 @@ OHOS:/dev$ ll testfile -rw-r--r-- 0 0 100 0 1970-01-01 00:00 testfile OHOS:/dev$ ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-chmod.md b/en/device-dev/kernel/kernel-small-debug-shell-file-chmod.md index 200131874538c91c07404b94982ec77e30dcb7d4..6220230d65d4b717e9f2c481fce11f24e138bb58 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-chmod.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-chmod.md @@ -1,62 +1,50 @@ # chmod -## Command Function + +## Command Function This command is used to change file operation permissions. -## Syntax -chmod \[_mode_\] \[_filename_\] +## Syntax + +chmod [_mode_] [_filename_] + + +## Parameters + +**Table 1** Parameter description -## Parameter Description +| Parameter | Description | Value Range | +| -------- | ------------------------------------------------------------ | -------------- | +| mode | Specifies the permissions for a file or directory. The value is an octal number, representing the permission of **User** (owner), **Group** (group), or **Others** (other groups).| [0, 777] | +| filename | Specifies the file path. | An existing file | -**Table 1** Parameters - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

mode

-

Specifies the permissions for a file or directory. The value is an octal number, representing the permission of User (owner), Group (group), or Others (other groups).

-

[0,777]

-

filename

-

Specifies the file name.

-

An existing file

-
+## Usage Guidelines -## Usage +- Specify **mode** to change file permissions. -- Specify **mode** to change file permissions. -- For the files created on the FAT file system, the file permission attributes are the same as those of the mounted nodes. Currently, the node permissions include only user read and write. The **group** and **others** permissions do not take effect. In addition, only the user read and write permissions can be modified. The read and write permissions are **rw** and **ro** only. There is no such restriction for other file systems. +- For the files created on the FAT file system, the file permission attributes are the same as those of the mounted nodes. Currently, the node permissions include only user read and write. The **group** and **others** permissions do not take effect. In addition, only the user read and write permissions can be modified. The read and write permissions are **rw** and **ro** only. There is no such restriction for other file systems. -## Example +## Note -Change the permissions on the **hello-harmony.txt** file to **644** and **777**. +Currently, the shell does not support this command. -## Output +## Example -Modifying the permissions on the **hello-harmony.txt** file in the **/dev** directory: +Change the permissions on the **hello-openharmony.txt** file to **644** and **777**. + + +## Output + +Modify the permissions on the **hello-openharmony.txt** file in the **/dev** directory. ``` -OHOS:/dev$ chmod 644 hello-harmony.txt -OHOS:/dev$ ll hello-harmony.txt --rw-r--r-- 0 0 0 0 1970-01-01 00:00 hello-harmony.txt -OHOS:/dev$ chmod 777 hello-harmony.txt -OHOS:/dev$ ll hello-harmony.txt --rwxrwxrwx 0 0 0 0 1970-01-01 00:00 hello-harmony.txt +OHOS:/dev$ chmod 644 hello-openharmony.txt +OHOS:/dev$ ll hello-openharmony.txt +-rw-r--r-- 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt +OHOS:/dev$ chmod 777 hello-openharmony.txt +OHOS:/dev$ ll hello-openharmony.txt +-rwxrwxrwx 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-chown.md b/en/device-dev/kernel/kernel-small-debug-shell-file-chown.md index 3a4006df874d5723184968c92472a6aeefed8f1e..fdc738d7ea66ae707c243cf650f8b946761f1a51 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-chown.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-chown.md @@ -1,54 +1,42 @@ # chown -## Command Function + +## Command Function This command is used to change the owner of a file. -## Syntax - -chown \[_owner_\] \[_pathname_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

owner

-

Specifies the file owner.

-

[0,0xFFFFFFFF]

-

pathname

-

Specifies the file path.

-

An existing file

-
- -## Usage + +## Syntax + +chown [_owner_] [_pathname_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| -------- | ------------ | -------------- | +| owner | Specifies the file owner. | [0, 0xFFFFFFFF] | +| pathname | Specifies the file path. | An existing file | + + +## Usage Guidelines This command does not apply to the FAT file system. -## Example +## Note + +Currently, the shell does not support this command. -Run **chown 100 testfile**. +## Example -## Output +Run **chown 100 testfile**. -Changing the UID of the **testfile** file in **/dev** to **100**: + +## Output + +Change the UID of the **testfile** file in **/dev** to **100**. ``` OHOS:/dev$ touch testfile @@ -58,4 +46,3 @@ OHOS:/dev$ chown 100 testfile OHOS:/dev$ ll testfile -rw-r--r-- 0 100 100 0 1970-01-01 00:00 testfile ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-cp.md b/en/device-dev/kernel/kernel-small-debug-shell-file-cp.md index b191a7fb5260b869905b47bad385db78c273afe4..c484883580547181041426680f1f797cc77d5a55 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-cp.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-cp.md @@ -1,80 +1,63 @@ # cp -## Command Function + +## Command Function This command is used to create a copy for a file. -## Syntax - -cp \[_SOURCEFILE_\] \[_DESTFILE_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays help information.

-

N/A

-

SOURCEFILE

-

Specifies the path of the source file.

-

This command does not support copy of a directory, but supports copy of multiple files at a time.

-

DESTFILE

-

Specifies the destination file path.

-

Both a directory and a file are supported.

-
- -## Usage - -- The name of the source file cannot be the same as that of the destination file in the same path. -- **SOURCEFILE** must exist and cannot be a directory. -- **SOURCEFILE** supports wildcard characters \* and ?. The asterisk \(\*\) indicates any number of characters, and the question mark \(?\) represents a single character. **DESTFILE** does not support wildcard characters. If **SOURCEFILE** specifies multiple files, **DESTFILE** must be a directory. -- If **DESTFILE** specifies a directory, this directory must exist. In this case, the destination file is named after the source file. -- If **DESTFILE** specifies a file, the directory for this file must exist. In this case, the file copy is renamed. -- If the destination file does not exist, a new file is created. If the destination file already exists, the existing file is overwritten. - ->![](../public_sys-resources/icon-notice.gif) **NOTICE:** ->When important system resources are copied, unexpected results such as a system breakdown may occur. For example, when the **/dev/uartdev-1** file is copied, the system may stop responding. - -## Example - -Run **cp hello-OHOS.txt hello-harmony.txt ./tmp/**. - -## Output - -Copying **hello-OHOS.txt** and **hello-harmony.txt** to **/tmp/**: + +## Syntax + +cp [_SOURCEFILE_] [_DESTFILE_] + + +## Parameters + + **Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| --help | Displays help information.| N/A | +| SOURCEFILE | Specifies the file to copy.| This command does not support copy of a directory, but supports copy of multiple files at a time.| +| DESTFILE | Specifies the file to create.| Both a directory and a file are supported.| + + +## Usage Guidelines + +- The name of the source file cannot be the same as that of the destination file in the same path. + +- **SOURCEFILE** must exist and cannot be a directory. + +- The source file path supports asterisks (*) and question marks (?). The wildcard "\*" indicates any number of characters, and "?" indicates any single character. **DEST** does not support wildcard characters. If the specified **SOURCE** matches multiple files, **DEST** must be a directory. + +- If **DEST** is a directory, this directory must exist. In this case, the destination file is named after the source file. + +- If the destination file path is a file, the directory for this file must exist. In this case, the file copy is renamed. + +- If the destination file does not exist, a new file is created. If the destination file already exists, the existing file is overwritten. + +> **NOTICE**
+> When important system resources are copied, unexpected results such as a system breakdown may occur. For example, when the **/dev/uartdev-1** file is copied, the system may stop responding. + + +## Example + +Run **cp hello-OHOS.txt hello-openharmony.txt ./tmp/**. + + +## Output + +Copy **hello-OHOS.txt** and **hello-openharmony.txt** to **/tmp/**. ``` OHOS:/$ ls bin hello-OHOS.txt proc system vendor -dev hello-harmony.txt sdcard userdata +dev hello-openharmony.txt sdcard userdata etc lib storage usr OHOS:/$ mkdir tmp -OHOS:/$ cp hello-OHOS.txt hello-harmony.txt tmp/ +OHOS:/$ cp hello-OHOS.txt hello-openharmony.txt tmp/ OHOS:/$ ll tmp total 0 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-OHOS.txt* --rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-harmony.txt* +-rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-openharmony.txt* ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-du.md b/en/device-dev/kernel/kernel-small-debug-shell-file-du.md index 8dd89bfaa3a1f573d8ec82be44b0b54704d5f309..6d72b8c51adba6d46addb80594f91a8bc66e08dc 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-du.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-du.md @@ -1,86 +1,50 @@ # du -## Command Function + +## Command Function This command is used to query the disk space occupied by a file. -## Syntax - -du \[_-kKmh_\] \[_file..._\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the du command.

-

N/A

-

-k

-

Displays the occupied blocks, each of which is 1024 bytes by default.

-

N/A

-

-K

-

Displays the occupied blocks, each of which is 512 bytes (POSIX).

-

N/A

-

-m

-

Displays the disk space in MB.

-

N/A

-

-h

-

Displays the disk space in human-readable format K, M, and G, for example, 1K, 243M, or 2G.

-

N/A

-

file

-

Specifies the target file.

-

N/A

-
- -## Usage - -- The **du** command is used to obtain the disk usage of a file rather than a directory. -- The value of **file** must be the file name. It cannot contain the directory where the file is located. - -## Example - -Run **du -h testfile**. - -## Output - -Command output + +## Syntax + +du [_-kKmh_] [_file..._] + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | +| ------ | ------------------------------------------------------------ | +| --help | Displays the parameters supported by the **du** command. | +| -k | Displays the occupied blocks, each of which is 1024 bytes by default. | +| -K | Displays the occupied blocks, each of which is 512 bytes (POSIX). | +| -m | Displays the disk space in MB. | +| -h | Displays the disk space in human-readable format K, M, and G, for example, **1K**, **243M**, or **2G**.| +| file | Specifies the target file. | + + +## Usage Guidelines + +- The **du** command is used to obtain the disk usage of a file rather than a directory. + +- The value of **file** must be the file name. It cannot contain the directory where the file is located. + +## Note + +Currently, the shell does not support this command. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example + +Run **du -h testfile**. + + +## Output + +Disk space occupied by **testfile**. ``` OHOS:/$ du -h testfile 1.8K testfile ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-format.md b/en/device-dev/kernel/kernel-small-debug-shell-file-format.md index 7801ff31c3b49d0318f49b2957ec6e9eda3049f0..e9bef26ce5e90769d493a6ff1742aeb8115dc1eb 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-format.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-format.md @@ -1,67 +1,48 @@ # format -## Command Function +## Command Function This command is used for disk formatting. -## Syntax - -format <_dev\_inodename_\> <_sectors_\> <_option_\> \[_label_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

dev_inodename

-

Specifies the device name.

-

sectors

-

Specifies the size of the allocated memory unit or sector. The value 0 indicates null. (The value must be 0 or a power of 2. For FAT32, the maximum value is 128. If the parameter is set to 0, a proper cluster size is automatically selected. The available cluster size range varies depending on the partition size. If the cluster size is incorrectly specified, the formatting may fail.)

-

option

-
Specifies the file system type. The options are as follows:
  • 0x01: FMT_FAT
  • 0x02: FMT_FAT32
  • 0x07: FMT_ANY
  • 0x08: FMT_ERASE (not supported by the USB flash drive)
-
-

If an invalid value is specified, the system automatically selects the formatting mode. If the low-level formatting bit is 1 during the formatting of a USB flash drive, an error message is printed.

-

label

-

Specifies the volume label name. This parameter is optional, and the value is a string. If null is specified for this parameter, the previously set volume label name is cleared.

-
- -## Usage - -- The **format** command is used for disk formatting. You can find the device name in the **dev** directory. A storage card must be installed before the formatting. -- The **format** command can be used to format the USB flash drive, SD card, and MMC, but not the NAND flash or NOR flash. -- An invalid **sectors** value may cause exceptions. - -## Example - -Run **format /dev/mmcblk0 128 2**. - -## Output - -Formatting an MMC: + +## Syntax + +format <*dev*inodename_> <*sectors*> <*option*> [_label_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| +| -------- | -------- | +| dev_inodename | Specifies the device name. | +| sectors | Specifies the size of the allocated memory unit or sector.
The value must be **0** or a power of **2**.
The value **0** means to leave this parameter blank.
For FAT32, the maximum value is **128**. If the parameter is set to **0**, a proper cluster size is automatically selected. The available cluster size range varies depending on the partition size. If the cluster size is incorrectly specified, the formatting may fail. | +| option | Specifies the file system type. The options are as follows:
- **0x01**: FMT_FAT
- **0x02**: FMT_FAT32
- **0x07**: FMT_ANY
- **0x08**: FMT_ERASE (USB does not support this option.)
If an invalid value is specified, the system automatically selects the formatting mode. If the low-level formatting bit is **1** during the formatting of a USB flash drive, an error message is printed.| +| label | Specifies the volume label name. This parameter is optional, and the value is a string.
If **null** is specified for this parameter, the previously set volume label name is cleared. | + + +## Usage Guidelines + +- The **format** command is used for disk formatting. You can find the device name in the **dev** directory. A storage card must be installed before the formatting. + +- The **format** command can be used to format the USB flash drive, SD card, and MMC, but not the NAND flash or NOR flash. + +- An invalid **sectors** value may cause exceptions. + + +## Example + +Run **format /dev/mmcblk0 128 2**. + + +## Output + +Format an MMC. ``` OHOS # format /dev/mmcblk1 128 2 Format to FAT32, 128 sectors per cluster. format /dev/mmcblk1 Success ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-ls.md b/en/device-dev/kernel/kernel-small-debug-shell-file-ls.md index 0c8f1abbe920bd74558301b4e2dc61a3882d8a42..b292d00f160227250b9478e2c5cc53f1f7eaa508 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-ls.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-ls.md @@ -1,290 +1,92 @@ # ls -## Command Function - -This command is used to display the content of a specified directory. - -## Syntax - -ls \[_-ACHLSZacdfhiklmnopqrstux1_\] \[_--color_\[_=auto_\]\] \[_directory..._\] - ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->During the system boot process, **ls=toybox ls --color=auto**, **ll = ls -alF**, **la=ls -A**, and **l=ls -CF** commands have been enabled using **alias** so that the initial actions of these commands are the same as those on Linux. For details, see the output description. To view help information, run **toybox ls --help**. - -## Parameters - -**Table 1** Command parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays parameters supported by the ls command and their usage.

-

N/A

-

-a

-

Displays all files, including .hidden files.

-

N/A

-

-b

-

Escapes non-graphical characters.

-

N/A

-

-c

-

Uses ctime as the file timestamp. This parameter must be used together with -l.

-

N/A

-

-d

-

Displays only the directory, rather than listing the content of the directory.

-

N/A

-

-i

-

Displays the node ID of a file.

-

N/A

-

-p

-

Adds a slash (/) after the directory.

-

N/A

-

-q

-

Displays non-printable characters, such as "?".

-

N/A

-

-s

-

Provides information about the memory occupied by the directory and its members, in 1024 bytes.

-

N/A

-

-u

-

Uses the last access time of the file as the timestamp. This option is used together with -l.

-

N/A

-

-A

-

Lists all files except implied . and ..

-

N/A

-

-H

-

Follows symbolic links listed in the command line.

-

N/A

-

-L

-

Follows symbolic links.

-

N/A

-

-Z

-

Displays security context.

-

N/A

-

path

-

If path is left blank, the content of the current directory is displayed.

-

If path is an invalid file name, the following failure message is displayed:

-

ls error: No such directory

-

If path is a valid directory, the content of that directory is displayed.

-

Left blank or a valid directory

-
- -**Table 2** Output parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-1

-

Lists one file per line.

-

N/A

-

-c

-

Lists entries by column.

-

N/A

-

-g

-

Like -l, but do not list owner.

-

N/A

-

-h

-

Displays the total size of files in the directory, in KiB.

-

N/A

-

-l

-

Displays detailed information about files in the directory.

-

N/A

-

-m

-

Fills width with a list of entries separated by a comma.

-

N/A

-

-n

-

Like -l, but lists numeric user and group IDs.

-

N/A

-

-o

-

Like -l, but do not list group information.

-

N/A

-

-x

-

Lists entries by line, instead of by column.

-

N/A

-

-ll

-

Lists the file time attribute as ns.

-

N/A

-

--color

-

Colorizes the output.

-

Default value: device=yellow symlink=turquoise/red dir=blue socket=purple files: exe=green suid=red suidfile=redback stickydir=greenback=auto means detect if output is a tty.

-
- -**Table 3** Sorting parameters \(sorted by the initial letter by default\) - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-f

-

Do not sort.

-

N/A

-

-r

-

Reverse order while sorting.

-

N/A

-

-t

-

Sort by time, newest first.

-

N/A

-

-S

-

Sort by file size, largest first.

-

N/A

-
- -## Usage - -None - ->![](../public_sys-resources/icon-notice.gif) **NOTICE:** ->The file node information of the FAT file system inherits from its parent node. The parent node ID is **0**. Therefore, if you run the **ls -i** command on the Hi3516D V300 development board, the file node IDs displayed are all **0**. - -## Example + +## Command Function + +This command is used to display the content of a directory. + + +## Syntax + +ls [_-ACHLSZacdfhiklmnopqrstux1_] [_--color_[_=auto_]] [_directory..._] + +> **NOTE**
+> During the system boot process, **ls=toybox ls --color=auto**, **ll = ls -alF**, **la=ls -A**, and **l=ls -CF** commands have been enabled using **alias** so that the initial actions of these commands are the same as those on Linux. For details, see **Output**. To view help information, run **toybox ls --help**. + + +## Parameters + +**Table 1** Command parameter description + +| Parameter | Description | Value Range | +| ------ | ------------------------------------------------------------ | ----------------------------- | +| --help | Displays parameters supported by the **ls** command and their usage. | N/A | +| -a | Displays all files, including hidden files. | N/A | +| -b | Escapes non-graphical characters. | N/A | +| -c | Uses **ctime** as the file timestamp. This parameter must be used together with **-l**. | N/A | +| -d | Displays only the directory, rather than listing the content of the directory. | N/A | +| -i | Displays the node ID of a file. | N/A | +| -p | Adds a slash (/) after the directory. | N/A | +| -q | Displays non-printable characters, such as "?". | N/A | +| -s | Provides information about the memory occupied by the directory and its members, in 1024 bytes. | N/A | +| -u | Uses the last access time of the file as the timestamp. This option is used together with **-l**. | N/A | +| -A | Lists all files except implied . and .. | N/A | +| -H | Follows symbolic links listed in the command line. | N/A | +| -L | Follows symbolic links. | N/A | +| -Z | Displays security context. | N/A | +| path | Specifies the path of the target directory.
If **path** is left blank, the content of the current directory is displayed.
If **path** is an invalid directory, "ls error: No such directory." is displayed.

If **path** is a valid directory, the content of the specified directory is displayed. | Left blank
A valid directory| + +**Table 2** Output format parameters + +| Parameter | Description | +| ------- | --------------------------------------- | +| -1 | Lists one file per line. | +| -c | Lists entries by column. | +| -g | Like **-l**, but do not list the owner. | +| -h | Displays the total size of files in the directory, in KiB.| +| -l | Displays detailed information about files in the directory. | +| -m | Fills width with a list of entries separated by a comma. | +| -n | Like **-l**, but lists numeric user and group IDs.| +| -o | Like **-l**, but do not list group information. | +| -x | Lists entries by line, instead of by column. | +| -ll | Lists the file time attribute as ns. | + +**Table 3** Parameters for sorting (by the initial letter by default) + +| Parameter| Description | +| ---- | ------------------------------------------ | +| -f | Do not sort. | +| -r | Sorts in reverse order. | +| -t | Sorts by time, newest first.| +| -S | Sorts by file size, largest first. | + +**Table 4** Color printing + +| Parameter| Default Configuration | +| ---- | ------------------------------------------ | +| --color | device=yellow symlink=turquoise/red dir=blue socket=purple files: exe=green suid=red suidfile=redback stickydir=greenback=auto means detect if output is a tty. | + +## Usage Guidelines + +The file node information of the FAT file system inherits from its parent node. The parent node ID is **0**. Therefore, if you run the **ls -i** command on the Hi3516D V300 development board, the file node IDs displayed are all **0**. + + +## Note + +The shell does not support **ls** parameters. mksh supports them. To switch to mksh, run **cd bin** and **./mksh**. + +## Example Run the following commands: -- ls -- ll +- ls -## Output +- ll -Example 1: **ls** command output + +## Output + +Example 1: **ls** command output ``` OHOS:/$ ls @@ -292,7 +94,7 @@ bin etc nfs sdcard system usr dev lib proc storage userdata vendor ``` -Example 2: **ll** command output +Example 2: **ll** command output ``` OHOS:/$ ll @@ -310,4 +112,3 @@ drwxrwxrwx 1 0 0 2048 2021-11-21 17:52 userdata/ drwxrwxrwx 1 0 0 2048 2021-11-21 17:52 usr/ drwxrwxrwx 1 0 0 2048 2021-11-21 17:52 vendor/ ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-lsfd.md b/en/device-dev/kernel/kernel-small-debug-shell-file-lsfd.md index fe035b1c141dfcda3223df3c99335f1cc7901376..ba2902d4c4ed1a1c638879d2737090a3575b3188 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-lsfd.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-lsfd.md @@ -1,25 +1,29 @@ # lsfd -## Command Function +## Command Function This command is used to display the file descriptors and names of the files that are open. -## Syntax + +## Syntax lsfd -## Usage -Run the **lsfd** command to display file descriptors and names of the opened files. +## Usage Guidelines + +Run the **lsfd** command to display file descriptors and names of the opened files. + -## Example +## Example -Run **lsfd**. +Run **lsfd**. -## Output -Example: **lsfd** command output +## Output + +Example: **lsfd** command output ``` OHOS # lsfd @@ -57,4 +61,3 @@ OHOS # lsfd 33 /dev/lite_ipc 34 /dev/lite_ipc ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-mkdir.md b/en/device-dev/kernel/kernel-small-debug-shell-file-mkdir.md index 09b1935ecc8727ff43d148059c12afca27342ef9..4c68734912dfb23c61c6032011c239c196751ead 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-mkdir.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-mkdir.md @@ -1,80 +1,53 @@ # mkdir -## Command Function +## Command Function This command is used to create a directory. -## Syntax - -mkdir \[_-vp_\] \[_-m mode_\] \[_dirname..._\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the mkdir command.

-

N/A

-

-m

-

Sets the permissions on the directory to create.

-

N/A

-

-p

-

Creates parent and child directories recursively.

-

N/A

-

-v

-

Prints detailed information about the directory creation process.

-

N/A

-

directory

-

Specifies the directory to create.

-

N/A

-
- -## Usage - ->![](../public_sys-resources/icon-notice.gif) **NOTICE:** ->For the files created on the FAT file system, the file permission attributes are the same as those of the mounted nodes. Currently, the node permissions include only user read and write. The **group** and **others** permissions do not take effect. ->In addition, only the user read and write permissions can be modified. The read and write permissions are **rw** and **ro** only. Therefore, when the **-m** option is specified in the **mkdir** command, only **777** and **555** permissions are available for the created directory, and the execute permission does not take effect. - -## Example + +## Syntax + +mkdir [_-vp_] [_-m mode_] [_dirname..._] + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | +| --------- | ------------------------------ | +| --help | Displays the parameters supported by the **mkdir** command. | +| -m | Sets the permissions on the directory to create. | +| -p | Creates parent and child directories recursively. | +| -v | Prints detailed information about the directory creation process.| +| directory | Specifies the directory to create. | + + +## Usage Guidelines + +For the files created on the FAT file system, the file permission attributes are the same as those of the mounted nodes. Currently, the node permissions include only user read and write. The **group** and **others** permissions do not take effect. + +In addition, only the user read and write permissions can be modified. The read and write permissions are **rw** and **ro** only. Therefore, when the **-m** option is specified in the **mkdir** command, only **777** and **555** permissions are available for the created directory, and the execute permission does not take effect. + +## Note + +Currently, the shell does not support this command. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example Run the following commands: -- mkdir testpath -- mkdir -m 777 testpath -- mkdir -pv testpath01/testpath02/testpath03 +- mkdir testpath + +- mkdir -m 777 testpath + +- mkdir -pv testpath01/testpath02/testpath03 + +## Output + +Example 1: Create a directory named **testpath**. -## Output ``` OHOS:/tmp$ mkdir testpath @@ -83,7 +56,8 @@ total 2 drwxrwxrwx 1 0 0 2048 1979-12-31 00:00 testpath/ ``` -Example 2: creating a directory with specified permissions +Example 2: Create a directory named **testpath** with specified permissions. + ``` OHOS:/tmp$ mkdir -m 777 testpath @@ -92,7 +66,8 @@ total 2 drwxrwxrwx 1 0 0 2048 1979-12-31 00:00 testpath/ ``` -Example 3: creating directories recursively +Example 3: Create directories recursively. + ``` OHOS:/tmp$ mkdir -pv testpath01/testpath02/testpath03 @@ -109,4 +84,3 @@ OHOS:/tmp$ ll testpath01/testpath02/ total 2 drwxrwxrwx 1 0 0 2048 1979-12-31 00:00 testpath03/ ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-mount.md b/en/device-dev/kernel/kernel-small-debug-shell-file-mount.md index 9fccd3e4eaf981e0b072ea03cd9d71c4a41e1aac..67d89d93284a78550b470b35ed84ebdad20c1980 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-mount.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-mount.md @@ -1,84 +1,47 @@ # mount -## Command Function +## Command Function This command is used to mount a device to a specified directory. -## Syntax - -mount \[_-f_\] \[_-t TYPE_\] \[_-o OPTION,_\] \[\[_DEVICE_\] _DIR_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the mount command.

-

N/A

-

-f

-

Fakes mounting the file system (no mounting is actually performed).

-

N/A

-

-t

-

Specifies the file system type.

-

vfat, yaffs, jffs, ramfs, nfs, procfs, romfs

-

-o

-

Specifies the mount options.

-

N/A

-

DEVICE

-

Specifies the device to mount (in the format of the device directory).

-

A device in the system

-

DIR

-

Specifies the directory.

-

You must have the execution (search) permission on the specified directory.

-

N/A

-
- -## Usage - -By specifying the device to mount, directory, and file system format in the **mount** command, you can successfully mount the file system to the specified directory. - -## Example - -Run **mount -t nfs 192.168.1.3:/nfs nfs**. - -## Output - -Mounting the **nfs** directory on the server with IP address of **192.168.1.3** to the newly created **/nfs** directory in the current system + +## Syntax + +mount [_-f_] [_-t TYPE_] [_-o OPTION,_] [[_DEVICE_] _DIR_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| ------ | ----------------------------------------------------------- | ------------------------------------------------------------ | +| --help | Displays the parameters supported by the **mount** command. | N/A | +| -f | Fakes mounting the file system (no mounting is actually performed). | N/A | +| -t | Specifies the file system type. | vfat, yaffs, jffs, ramfs, nfs, procfs, romfs| +| -o | Specifies the mount options. | N/A | +| DEVICE | Specifies the device to mount (in the format of the device directory). | A device in the system | +| DIR | Specifies the directory.
You must have the execution (search) permission on the specified directory.| N/A | + + +## Usage Guidelines + +By specifying the device to mount, directory, and file system format in the **mount** command, you can successfully mount the file system to the specified directory. + +## Note + +Currently, the shell does not support this command. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example + +Run **mount -t nfs 192.168.1.3:/nfs nfs**. + + +## Output + +Mount the **nfs** directory on the server with IP address of **192.168.1.3** to the newly created **/nfs** directory in the current system. + ``` OHOS:/$ mkdir nfs @@ -90,4 +53,3 @@ OHOS:/$ ls nfs/ OHOS_Image.bin hello rootfs_vfat.img dev_tools mksh_rootfs_vfat.img test_demo ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-mv.md b/en/device-dev/kernel/kernel-small-debug-shell-file-mv.md index 880b14485c22069f023f256961485e33f6afb82c..cd2a0950cc8122c93f4550df899c254d77c617e1 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-mv.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-mv.md @@ -1,96 +1,58 @@ # mv -## Command Function +## Command Function This command is used to move files. -## Syntax - -mv \[_-fivn_\] _SOURCE... DEST_ - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-help

-

Displays help information.

-

N/A

-

-f

-

Forcibly overwrites the target file.

-

N/A

-

-i

-

Provides a prompt before moving a file that would overwrite an existing file. Enter y to overwrite the file or enter n to cancel the operation.

-

N/A

-

-n

-

Do not overwrite any existing file or directory.

-

N/A

-

-v

-

This parameter does not take effect although it is supported by the latest Toybox code.

-

N/A

-

SOURCE

-

Specifies the path of the source file.

-

This command cannot be used to move a directory. It can be used to move multiple files at a time.

-

DEST

-

Specifies the destination file path.

-

Both a directory and a file are supported.

-
- -## Usage - -- **SOURCE** supports wildcard characters \* and ?. The asterisk \(\*\) indicates any number of characters, and the question mark \(?\) represents a single character. **DEST** does not support wildcard characters. If the specified **SOURCE** matches multiple files, **DEST** must be a directory. -- If **DEST** is a directory, this directory must exist. In this case, the destination file is named after the source file. -- If **DEST** is a file, the directory for this file must exist. -- If the destination file already exists, it will be overwritten. - -## Example + +## Syntax + +mv [_-fivn_] *SOURCE... DEST* + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| ------ | ------------------------------------------------------------ | ----------------------------------------------- | +| -help | Displays help information. | N/A | +| -f | Forcibly overwrites the target file. | N/A | +| -i | Provides information before moving a file that would overwrite an existing file or directory. Enter **y** to overwrite the file or directory, and enter **n** to cancel the operation.| N/A | +| -n | Do not overwrite any existing file or directory. | N/A | +| -v | This parameter does not take effect although it is supported by the latest Toybox code. | N/A | +| SOURCE | Specifies the file to move. | This command cannot be used to move a directory. It can be used to move multiple files at a time.| +| DEST | Specifies the destination file path. | Both a directory and a file are supported. | + + +## Usage Guidelines + +- **SOURCEFILE** supports wildcard characters * and ?. The asterisk (*) indicates any number of characters, and the question mark (?) represents a single character. **DEST** does not support wildcard characters. If the specified **SOURCE** matches multiple files, **DEST** must be a directory. + +- If **DEST** is a directory, this directory must exist. In this case, the destination file is named after the source file. + +- If **DEST** is a file, the directory for this file must exist. + +- If the destination file already exists, it will be overwritten. + +## Note + +Currently, the shell does not support this command. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example Run the following commands: -- mv -i test.txt testpath/ -- mv test?.txt testpath/ \(Move **test3.txt**, **testA.txt**, and **test\_.txt**\) +- mv -i test.txt testpath/ -## Output +- mv test?.txt testpath/ (Move **test3.txt**, **testA.txt**, and **test_.txt**) + + +## Output + +Example 1: Move a file. -Example 1: moving a file ``` OHOS:/$ touch test.txt @@ -112,7 +74,8 @@ bin etc proc storage test.txt userdata vendor dev lib sdcard system testpath usr ``` -Example 2: moving files using wildcards +Example 2: Move files. + ``` OHOS:/$ ls @@ -125,4 +88,3 @@ dev lib sdcard system testpath usr OHOS:/$ ls testpath/ test.txt test3.txt testA.txt test_.txt ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-partinfo.md b/en/device-dev/kernel/kernel-small-debug-shell-file-partinfo.md index 6f0ed999752060343314708afe218e1488cf0128..e4e329496a5bcd91754577a27b94a32abda1d162 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-partinfo.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-partinfo.md @@ -1,49 +1,40 @@ # partinfo -## Command Function +## Command Function This command is used to query information about the partitions of a hard disk or SD card identified by the system. -## Syntax -partinfo <_dev\_inodename_\> +## Syntax -## Parameters +partinfo <*dev*inodename_> -**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

dev_inodename

-

Specifies the name of the partition to be queried.

-

A valid partition name

-
+## Parameters -## Usage + **Table 1** Parameter description -None +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| dev_inodename | Specifies the name of the partition to be queried.| A valid partition name| -## Example -Run **partinfo /dev/mmcblk0p0**. +## Usage Guidelines -## Output +None. + + +## Example + +Run **partinfo /dev/mmcblk0p0**. + + +## Output System partition information: + ``` OHOS # partinfo /dev/mmcblk0p0 part info : @@ -55,4 +46,3 @@ part filesystem : 00 part sec start : 20480 part sec count : 102400 ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-pwd.md b/en/device-dev/kernel/kernel-small-debug-shell-file-pwd.md index 87513f7f67fe226d6b87c8281f0a31f6444b42e7..5315935c5b1f5f643ec2c6d9f7a695f8b51cb3ff 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-pwd.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-pwd.md @@ -1,32 +1,37 @@ # pwd -## Command Function +## Command Function This command is used to display the current path. -## Syntax + +## Syntax pwd -## Parameters -None +## Parameters + +None. + + +## Usage Guidelines -## Usage +The **pwd** command writes the full path (from the root directory) of the current directory to the standard output. The directories are separated by slashes (/). The directory following the first slash (/) indicates the root directory, and the last directory is the current directory. -The **pwd** command writes the full path \(from the root directory\) of the current directory to the standard output. The directories are separated by slashes \(/\). The directory following the first slash \(/\) indicates the root directory, and the last directory is the current directory. -## Example +## Example -Run **pwd**. +Run **pwd**. -## Output + +## Output Current path: + ``` OHOS:/sdcard/nfs$ pwd /sdcard/nfs ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-rm.md b/en/device-dev/kernel/kernel-small-debug-shell-file-rm.md index b535c90a4feab46cedd8f82d8398ef75da4b0777..c01d029ab70633ec6a50044abacb339403e3189c 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-rm.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-rm.md @@ -1,74 +1,53 @@ # rm -## Command Function +## Command Function This command is used to delete a file or folder. -## Syntax - -rm \[_-fv_\] _FILE or rm_ \[_-rv_\] \[_PATH_ | _filename_\]... - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-r

-

Deletes empty or non-empty directories.

-

N/A

-

-f

-

Deletes a file or directory forcibly without confirmation. No error will be reported when a file that does not exist is to be deleted.

-

N/A

-

-v

-

Displays the deletion process.

-

N/A

-

PATH/filename

-

Specifies the name of the file or directory to delete. The value can be a path.

-

N/A

-
- -## Usage - -- The **rm** command can be used to delete multiple files or folders at a time. -- You can run **rm -r** to delete a non-empty directory. -- If the **rm** command without **-f** is used to delete a file that does not exist, an error will be reported. - -## Example + +## Syntax + +rm [_-fv_] *FILE or rm* [_-rv_] [_PATH_ | _filename_]... + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | +| ------------- | ------------------------------------------------ | +| -r | Deletes empty or non-empty directories. | +| -f | Deletes a file or directory forcibly without confirmation. No error will be reported when a file that does not exist is to be deleted.| +| -v | Displays the deletion process. | +| PATH/filename | Specifies the name of the file or directory to delete. The value can be a path. | + + +## Usage Guidelines + +- The **rm** command can be used to delete multiple files or folders at a time. + +- You can run **rm -r** to delete a non-empty directory. + +- If the **rm** command without **-f** is used to delete a file that does not exist, an error will be reported. + +## Note + +The shell does not support **-v** or **-f**. mksh supports them. To switch to mksh, run **cd bin** and **./mksh**. + +## Example Run the following commands: -- rm testfile -- rm -r testpath/ +- rm testfile + +- rm -r testpath/ -## Output -Example 1: deleting **testfile** +## Output + +Example 1: Delete **testfile**. + ``` OHOS:/$ ls @@ -80,7 +59,8 @@ bin etc proc storage userdata vendor dev lib sdcard system usr ``` -Example 2: deleting **testpath**, a non-empty directory +Example 2: Delete **testpath**, a non-empty directory. + ``` OHOS:/$ ls @@ -91,4 +71,3 @@ OHOS:/$ ls bin etc proc storage userdata vendor dev lib sdcard system usr ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-rmdir.md b/en/device-dev/kernel/kernel-small-debug-shell-file-rmdir.md index 70cf25e12419964077362426fb5f15d58092ba50..f0ad3c729b29cc570368f6acdc878b3fbd0ba1e2 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-rmdir.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-rmdir.md @@ -1,71 +1,46 @@ # rmdir -## Command Function +## Command Function This command is used to delete a directory. -## Syntax - -rmdir \[_-p_\] \[_dirname..._\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the rmdir command.

-

N/A

-

-p

-

Deletes a path.

-

N/A

-

--ignore-fail-on-non-empty

-

Suppresses the error message when a non-empty directory is to be deleted.

-

N/A

-

dir

-

Specifies the name of the directory to delete. The directory must be empty. A path is supported.

-

N/A

-
- -## Usage - -- The **rmdir** command can only be used to delete directories. -- The **rmdir** command can delete only one directory at a time. -- The **rmdir** command can delete only empty directories. - -## Example - -Run **rmdir dir**. - -## Output - -Deleting the directory **dir**: + +## Syntax + +rmdir [_-p_] [_dirname..._] + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| --help | Displays the parameters supported by the **rmdir** command.| N/A | +| -p | Deletes a path.| N/A | +| --ignore-fail-on-non-empty | Suppresses the error message when a non-empty directory is to be deleted.| N/A | +| dir | Specifies the name of the directory to delete. The directory must be empty. A path is supported.| N/A | + + +## Usage Guidelines + +- The **rmdir** command can only be used to delete directories. + +- The **rmdir** command can delete only one directory at a time. + +- The **rmdir** command can delete only empty directories. + + +## Example + +Run **rmdir dir**. + + +## Output + +Delete the directory **dir**. + ``` OHOS:/test$ mkdir dir @@ -74,4 +49,3 @@ dir OHOS:/test$ rmdir dir/ OHOS:/test$ ls ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-statfs.md b/en/device-dev/kernel/kernel-small-debug-shell-file-statfs.md index c38afd907c2de80ad20cf76d6af622462d398a9e..5b58c139561ba6bb1c27e4a44ad99fffc16e0722 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-statfs.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-statfs.md @@ -1,48 +1,37 @@ # statfs -## Command Function +## Command Function This command is used to print information about a file system, such as the type, total size, and available size. -## Syntax -statfs \[_directory_\] +## Syntax -## Parameters +statfs [_directory_] -**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

directory

-

Specifies the file system directory.

-

The file system must exist and support the statfs command. The supported file systems include JFFS2, FAT, and NFS.

-
+## Parameters -## Usage +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| directory | Specifies the file system directory.| The file system must exist and support the **statfs** command. The supported file systems include JFFS2, FAT, and NFS.| + + +## Usage Guidelines The printed information varies depending on the file system. -## Example + +## Example The following uses the NFS as an example: -Run **statfs /nfs**. +Run **statfs /nfs**. -**statfs** command output +**statfs** command output ``` OHOS # statfs ./nfs @@ -57,4 +46,3 @@ statfs got: total size: 808742490112 Bytes free size: 255618461696 Bytes ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-sync.md b/en/device-dev/kernel/kernel-small-debug-shell-file-sync.md index 33670c9ca1cf5026325f11b933ab7335e46a6539..524ddd7802d3c8bc315cd838c88dd57541dfee04 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-sync.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-sync.md @@ -1,28 +1,33 @@ # sync -## Command Function +## Command Function -This command is used to synchronize cached data \(data in the file system\) to an SD card. +This command is used to synchronize cached data (data in the file system) to an SD card. -## Syntax + +## Syntax sync -## Parameters -None +## Parameters + +None. + + +## Usage Guidelines + +- The **sync** command is used to refresh the cache. If no SD card is inserted, no operation will be performed. -## Usage +- When an SD card is inserted, the cache information is synchronized to the SD card. If the synchronization is successful, no information is displayed. -- The **sync** command is used to refresh the cache. If no SD card is inserted, no operation will be performed. -- When an SD card is inserted, the cache information is synchronized to the SD card. If the synchronization is successful, no information is displayed. -## Example +## Example -Run **sync**. Data will be synchronized to the SD card if an SD card is available, and no operation will be performed if no SD card is available. +Run **sync**. Data will be synchronized to the SD card if an SD card is available, and no operation will be performed if no SD card is available. -## Output -None +## Output +None. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-touch.md b/en/device-dev/kernel/kernel-small-debug-shell-file-touch.md index e2ef6986f051af559c6af8c77f26309b53123371..e21f277dd4a8f78c54744d88a8570343b9355d7b 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-touch.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-touch.md @@ -1,64 +1,54 @@ # touch -## Command Function +## Command Function -- This command is used to create an empty file in a specified directory. -- If this command is executed to create an existing file, the execution will be successful but the timestamp will not be updated. +- This command is used to create an empty file in a specified directory. -## Syntax +- If this command is executed to create an existing file, the execution will be successful but the timestamp will not be updated. -touch \[_filename_\] -## Parameters +## Syntax -**Table 1** Parameter description +touch [_filename_] - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the touch command.

-

N/A

-

filename

-

Specifies the name of the file to create.

-

N/A

-
-## Usage +## Parameters -- The **touch** command creates an empty file that is readable and writeable. -- You can use the **touch** command to create multiple files at a time. + **Table 1** Parameter description - >![](../public_sys-resources/icon-notice.gif) **NOTICE:** - >If you run the **touch** command to create a file in a directory storing important system resources, unexpected results such as a system breakdown may occur. For example, if you run the **touch uartdev-0** command in the **/dev** directory, the system may stop responding. +| Parameter | Description | Value Range| +| -------- | --------------------------- | -------- | +| --help | Displays the parameters supported by the **touch** command.| N/A | +| filename | Specifies the name of the file to create. | N/A | -## Example +## Usage Guidelines + +- The **touch** command creates an empty file that is readable and writeable. + +- You can use the **touch** command to create multiple files at a time. + + > **NOTICE**
+ > If you run the **touch** command to create a file in a directory storing important system resources, unexpected results such as a system breakdown may occur. For example, if you run the **touch uartdev-0** command in the **/dev** directory, the system may stop responding. + +## Note + +The shell does not support **--help** or creation of multiple files at the same time. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example Run the following commands: -- touch file.c -- touch testfile1 testfile2 testfile3 +- touch file.c -## Output +- touch testfile1 testfile2 testfile3 + + +## Output + +Example 1: Create a file named **file.c**. -Example 1: creating the **file.c** file ``` OHOS:/tmp$ ls @@ -70,7 +60,8 @@ total 0 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 file.c* ``` -Example 2: creating three files \(**testfile1**, **testfile2**, and **testfile3**\) +Example 2: Create three files (**testfile1**, **testfile2**, and **testfile3**) at a time. + ``` *OHOS:/tmp$ @@ -82,4 +73,3 @@ total 0 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 testfile3* OHOS:/tmp$ ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-umount.md b/en/device-dev/kernel/kernel-small-debug-shell-file-umount.md index a3b41c10707376fc70af957aeb20adcd0fdbb797..1125ae02c52e19154a60a6b3174c480adcfa4af9 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-umount.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-umount.md @@ -1,84 +1,61 @@ # umount -## Command Function - -This command is used to unmount a specified file system. - -## Syntax - -umount \[_-a \[-t TYPE\]_\] \[_dir_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the umount command.

-

N/A

-

-a

-

Unmounts all file systems mounted.

-

N/A

-

-t

-

Used together with the -a option to restrict the file systems specified by -a, allowing only the file system specified by -t to be unmounted.

-

N/A

-

dir

-

Specifies the directory from which the file system is to be unmounted.

-

Directory mounted with the file system

-
- -## Usage - -By specifying the **dir** parameter in the **unmount** command, you can unmount the specified file system from the directory. - -## Example +## Command Function + +This command is used to unmount a file system. + + +## Syntax + +umount [_-a [-t TYPE]_] [_dir_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| ------ | ------------------------------------------------------------ | -------------------------- | +| --help | Displays the parameters supported by the **umount** command. | N/A | +| -a | Unmounts all file systems mounted. | N/A | +| -t | Used together with the **-a** option to restrict the file systems specified by **-a**, allowing only the file system specified by **-t** to be unmounted.| N/A | +| dir | Specifies the directory from which the file system is to be unmounted. | Directory mounted with the file system| + + +## Usage Guidelines + +By specifying the **dir** parameter in the **unmount** command, you can unmount the specified file system. + +## Note + +The shell does not support this command. mksh supports it. To switch to mksh, run **cd bin** and **./mksh**. + +## Example Run the following commands: -- umount ./nfs -- umount -a -t nfs +- umount ./nfs + +- umount -a -t nfs -## Output -**unmount** command output: +## Output + + + +Example 1: Unmount the file system from **./nfs**. -Example 1: unmounting the file system from **./nfs** ``` OHOS:/$ umount ./nfs/ umount ok ``` -Example 2: unmounting all NFS directories +Example 2: Unmount all NFS directories. + ``` OHOS:/$ umount -a -t nfs umount ok ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-file-write.md b/en/device-dev/kernel/kernel-small-debug-shell-file-write.md index f48ee11f17a53f04a3e1a197942e43dc6e167af1..41174409524abf0e7f486abad36da5fb73709746 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-file-write.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-file-write.md @@ -1,63 +1,52 @@ # writeproc -## Command Function +## Command Function -This command is used to write data to a specified proc file system. The proc file system supports the input of string parameters. Each file needs to implement its own method. +This command is used to write data to the specified proc file system. The proc file system supports data of strings. The method for writing data needs to be implemented. -## Syntax -writeproc <_data_\> \>\> /proc/<_filename_\> +## Syntax -## Parameters +writeproc <*data*> >> /proc/<*filename*> -**Table 1** Parameter description - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

data

-

Specifies the string to be entered, which ends with a space. If you need to enter a space, use "" to enclose the space.

-

N/A

-

filename

-

Specifies the proc file to which data is to be passed.

-

N/A

-
+## Parameters -## Usage +**Table 1** Parameter description -The proc file implements its own **write** command. Calling the **writeproc** command will pass the input parameters to the **write** command. +| Parameter | Description | +| -------- | ---------------------------------------------------------- | +| data | Specifies the string to write, which ends with a space. If you need to write a space, use **""** to enclose the space. | +| filename | Specifies the proc file to which **data** is to write. | ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->The procfs file system does not support multi-thread access. -## Example +## Usage Guidelines -Run **writeproc test \>\> /proc/uptime**. +The proc file system implements its own **write()** function. Calling the **writeproc** command will pass input parameters to the **write()** function. -## Output +> **NOTE**
+> The procfs file system does not support multi-thread access. -OHOS \# writeproc test \>\> /proc/uptime +## Note -\[INFO\]write buf is: test +Currently, the shell does not support this command. -test \>\> /proc/uptime +## Example ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->The uptime proc file temporarily implements the **write** command. The **INFO** log is generated by the implemented **test** command. +Run **writeproc test >> /proc/uptime**. + + +## Output + +``` +OHOS \# writeproc test >> /proc/uptime + +[INFO]write buf is: test + +test >> /proc/uptime +``` + +> **NOTE**
+> The **uptime** proc file temporarily implements the **write()** function. The **INFO** log is generated by the **test()** function. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-magickey.md b/en/device-dev/kernel/kernel-small-debug-shell-magickey.md index 80248ba4e5fbc59fbef823ca8b34e8584709c243..9af3ed1cceb676fa0a39c20126184874eb3d6382 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-magickey.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-magickey.md @@ -3,24 +3,30 @@ ## When to Use -When the system does not respond, you can use the magic key function to check whether the system is suspended by an interrupt lock (the magic key also does not respond) or view the system task running status. +When the system does not respond, you can use the magic key to check whether the system is suspended by an interrupt lock or view the system task running status. -If interrupts are responded, you can use the magic key to check the task CPU usage (**cpup**) and find out the task with the highest CPU usage. Generally, the task with a higher priority preempts the CPU resources. +If interrupts are responded, you can use the magic key to check the task CPU percent (CPUP) and locate the task with the highest CPUP. Generally, the task with a higher priority preempts the CPU resources. -## How to Use +## How to Configure -1. Configure the macro **LOSCFG_ENABLE_MAGICKEY**. +The magic key depends on the macro **LOSCFG_ENABLE_MAGICKEY**. - The magic key depends on the **LOSCFG_ENABLE_MAGICKEY** macro. Before using the magic key, select **Enable MAGIC KEY** (**Debug** ---> **Enable MAGIC KEY**) on **menuconfig**. The magic key cannot be used if this option is disabled. +To configure **LOSCFG_ENABLE_MAGICKEY**: - > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** - > - > On **menuconfig**, you can move the cursor to **LOSCFG_ENABLE_MAGICKEY** and enter a question mark (?) to view help Information. - -2. Press **Ctrl+R** to enable the magic key. +1. Run the **make menuconfig** command in **kernel/liteos_a**. +2. Locate the **Debug** option and select **Enable MAGIC KEY**. + +This option is selected by default. If it is not selected, the magic key is invalid. + +> **NOTE**
+> On **menuconfig**, you can move the cursor to **LOSCFG_ENABLE_MAGICKEY** and enter a question mark (?) to view help information. + +## How to Use + +1. Press **Ctrl+R** to enable the magic key. - When the UART or USB-to-virtual serial port is connected, press **Ctrl+R**. If "Magic key on" is displayed, the magic key is enabled. To disable it, press **Ctrl+R** again. If "Magic key off" is displayed, the magic key is disabled. + When the UART or USB-to-virtual serial port is connected, press **Ctrl+R**. If "Magic key on" is displayed, the magic key is enabled. To disable it, press **Ctrl+R** again. If "Magic key off" is displayed, the magic key is disabled. The functions of the magic key are as follows: @@ -32,5 +38,5 @@ If interrupts are responded, you can use the magic key to check the task CPU usa - **Ctrl+E**: Checks the integrity of the memory pool. If an error is detected, the system displays an error message. If no error is detected, the system displays "system memcheck over, all passed!". - > ![icon-notice.gif](public_sys-resources/icon-notice.gif) **NOTICE**
- > If magic key is enabled, when special characters need to be entered through the UART or USB-to-virtual serial port, avoid using characters the same as the magic keys. Otherwise, the magic key may be triggered by mistake, causing errors in the original design. + > **NOTE**
+ > If magic key is enabled, when special characters need to be entered through the UART or USB-to-virtual serial port, avoid using characters the same as the magic keys. Otherwise, the magic key may be triggered by mistake, causing errors in design. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-arp.md b/en/device-dev/kernel/kernel-small-debug-shell-net-arp.md index 87b2afa6260a345d8e47c09398acf62b08c2ada0..c4c6ce48042d9ff0783ecf36fa874e68bafb72d6 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-arp.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-arp.md @@ -1,73 +1,44 @@ # arp -## Command Function +## Command Function -Hosts on an Ethernet communicate with each other using MAC addresses. IP addresses must be converted into MAC addresses to enable communication between hosts on a LAN \(Ethernet\). To achieve this purpose, the host stores a table containing the mapping between IP addresses and MAC addresses. This table is called an Address Resolution Protocol \(ARP\) cache table. Before sending an IP packet to a LAN, the host looks up the destination MAC address in the ARP cache table. The ARP cache table is maintained by the TCP/IP stack. You can run the **arp** command to view and modify the ARP cache table. +Hosts on an Ethernet communicate with each other using MAC addresses. IP addresses must be converted into MAC addresses to enable communication between hosts on a LAN (Ethernet). To achieve this purpose, the host stores a table containing the mapping between IP addresses and MAC addresses. This table is called an Address Resolution Protocol (ARP) cache table. Before sending an IP packet to a LAN, the host looks up the destination MAC address in the ARP cache table. The ARP cache table is maintained by the TCP/IP stack. You can run the **arp** command to view and modify the ARP cache table. -## Syntax + +## Syntax arp -arp \[_-i IF_\] -s _IPADDR HWADDR_ - -arp \[_-i IF_\] -d _IPADDR_ - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

No parameter

-

Queries the content of the ARP cache table.

-

N/A

-

-i IF

-

Specifies the network port. This parameter is optional.

-

N/A

-

-s IPADDR

-

HWADDR

-

Adds an ARP entry. The second parameter is the IP address and MAC address of the other host on the LAN.

-

N/A

-

-d IPADDR

-

Deletes an ARP entry.

-

N/A

-
- -## Usage - -- The **arp** command is used to query and modify the ARP cache table of the TCP/IP stack. If ARP entries for IP addresses on different subnets are added, the protocol stack returns a failure message. -- This command can be used only after the TCP/IP stack is enabled. - -## Example - -Run the **arp** command. - -ARP cache table: +arp [_-i IF_] -s *IPADDR HWADDR* + +arp [_-i IF_] -d *IPADDR* + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| No parameter| Prints the content of the ARP cache table.| N/A | +| -i IF | Specifies the network port. This parameter is optional.| N/A | +| -s IPADDR
HWADDR | Adds an ARP entry. The second parameter is the IP address and MAC address of the other host on the LAN.| N/A | +| -d IPADDR | Deletes an ARP entry.| N/A | + + +## Usage Guidelines + +- The **arp** command is used to query and modify the ARP cache table of the TCP/IP stack. If ARP entries for IP addresses on different subnets are added, the protocol stack returns a failure message. + +- This command can be used only after the TCP/IP protocol stack is enabled. + + +## Example + +Run **arp**. + +ARP cache table information: ``` OHOS # arp @@ -75,35 +46,11 @@ Address HWaddress Iface Type 192.168.1.10 E6:2B:99:2C:4B:20 eth0 static ``` -**Table 2** Output description - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Address

-

IPv4 address of a network device.

-

HWaddress

-

MAC address of a network device.

-

Iface

-

Name of the port used by the ARP entry.

-

Type

-

Indicates whether the ARP entry is dynamic or static. A dynamic ARP entry is automatically created by the protocol stack, and a static ARP entry is added by the user.

-
+**Table 2** Parameter description +| Parameter| Description| +| -------- | -------- | +| Address | IPv4 address of the network device.| +| HWaddress | MAC address of the network device.| +| Iface | Name of the port used by the ARP entry.| +| Type | Whether the ARP entry is dynamic or static. A dynamic ARP entry is automatically created by the protocol stack, and a static ARP entry is added by the user. | diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-dhclient.md b/en/device-dev/kernel/kernel-small-debug-shell-net-dhclient.md index afb2a55f32fe6475e94f19765a822036c28fb4e1..d48ba68bb62e7ac2baceead92d7fa440b2c6417d 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-dhclient.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-dhclient.md @@ -1,62 +1,45 @@ # dhclient -## Command Function - -This command is used to set and query **dhclient** parameters. - -## Syntax - -- dhclient <_netif name_\> -- dhclient -x <_netif name_\> - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-h | --help

-

Displays parameters supported by the dhclient command and their usage.

-

N/A

-

<netif name>

-

Enables Dynamic Host Configuration Protocol (DHCP) for a network interface card (NIC).

-

NIC name, eth0

-

-x <netif name>

-

Disables DHCP for a NIC.

-

NIC name, eth0

-
- -## Usage +## Command Function + +This command is used to set and query **dhclient** parameters. + + +## Syntax + +- dhclient <*netif name*> + +- dhclient -x <*netif name*> + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range | +| ------------------------------- | -------------------------------------------- | ---------------- | +| -h \| --help | Displays parameters supported by the **dhclient** command and their usage.| N/A | +| <netif name> | Enables Dynamic Host Configuration Protocol (DHCP) for a network interface card (NIC). | NIC name, **eth0**| +| -x <netif name> | Disables DHCP for a NIC. | NIC name, **eth0**| + + +## Usage Guidelines Run the following commands: -- dhclient eth0 -- dhclient -x eth0 +- dhclient eth0 + +- dhclient -x eth0 + +## Note + +Currently, the shell does not support this command. -## Example +## Example + +Example 1: Enable DHCP for eth0. -Example 1: enabling DHCP for eth0 ``` OHOS:/$ dhclient eth0 @@ -69,7 +52,9 @@ eth0 ip:192.168.1.10 netmask:255.255.255.0 gateway:192.168.1.1 OHOS:/$ ``` -Example 2: disabling DHCP for eth0 + +Example 2: Disable DHCP for eth0. + ``` OHOS:/$ dhclient -x eth0 @@ -81,4 +66,3 @@ lo ip:127.0.0.1 netmask:255.0.0.0 gateway:127.0.0.1 eth0 ip:0.0.0.0 netmask:0.0.0.0 gateway:0.0.0.0 HWaddr 42:da:81:bc:58:94 MTU:1500 Running Default Link UP ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-ifconfig.md b/en/device-dev/kernel/kernel-small-debug-shell-net-ifconfig.md index be7d8a835a2944e3303cf6a4a182f8bebf42da94..017f799e49c00a0d8f75aef2b6b6af1ed701b86d 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-ifconfig.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-ifconfig.md @@ -1,313 +1,157 @@ # ifconfig -## Command Function +## Command Function This command can be used to: -- Query and set parameters of a network interface card \(NIC\), such as the IP address, network mask, gateway, and MAC address. -- Enable or disable a NIC. +- Query and set parameters of a network interface card (NIC), such as the IP address, network mask, gateway, and MAC address. -## Syntax +- Enable or disable a NIC. -ifconfig \[option\] + +## Syntax + +ifconfig [option] option: -- \[_-a_\] -- <_interface_\> <_address_\> \[_netmask _\] \[_gateway _\] -- \[_hw ether _\] \[_mtu _\] -- \[_inet6 add _\] -- \[_inet6 del _\] -- \[_up|down_\] - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

No parameter

-

Displays all NIC information, which includes the IP address, network mask, gateway, MAC address, maximum transmission unit (MTUs), and running status of each NIC.

-

N/A

-

-a

-

Displays data sent and received by the protocol stack.

-

N/A

-

interface

-

Specifies the NIC name, for example, eth0.

-

N/A

-

address

-

Specifies the IP address, for example, 192.168.1.10. The NIC name must be specified.

-

N/A

-

netmask

-

Specifies the subnet mask, for example, 255.255.255.0.

-

N/A

-

gateway

-

Specifies the gateway, for example, 192.168.1.1.

-

N/A

-

hw ether

-

Specifies the MAC address, for example, 00:11:22:33:44:55. Currently, only the ether hardware type is supported.

-

N/A

-

mtu

-

Specifies the MTU size, for example, 1000.

-
  • IPv4:

    [68,1500]

    -
  • IPv6:

    [1280, 1500]

    -
-

add

-

Specifies the IPv6 address, for example, 2001:a:b:c:d:e:f:d. The NIC name and inet6 must be specified.

-

N/A

-

del

-

Deletes an IPv6 address. You need to specify the NIC name and add the inet6 option. For details, see the example.

-

N/A

-

up

-

Enables the data processing function of the NIC. The NIC name must be specified.

-

N/A

-

down

-

Disables the data processing function of the NIC. The NIC name must be specified.

-

N/A

-
- -## Usage - -- The **ifconfig** command can be used only after the TCP/IP stack is enabled. -- Detecting an IP address conflict takes time. Each time you run the **ifconfig** command to set an IP address, there is a delay of about 2 seconds. - -## Example - -- ifconfig eth0 192.168.100.31 netmask 255.255.255.0 gateway 192.168.100.1 hw ether 00:49:cb:6c:a1:31 -- ifconfig -a -- ifconfig eth0 inet6 add 2001:a:b:c:d:e:f:d -- ifconfig eth0 inet6 del 2001:a:b:c:d:e:f:d - -## Output - -- Example 1: setting network parameters - - ``` - OHOS:/$ ifconfig eth0 192.168.100.31 netmask 255.255.255.0 gateway 192.168.100.1 hw ether 00:49:cb:6c:a1:31 - OHOS:/$ ifconfig - lo ip:127.0.0.1 netmask:255.0.0.0 gateway:127.0.0.1 - ip6: ::1/64 - HWaddr 00 MTU:0 Running Link UP - eth0 ip:192.168.100.31 netmask:255.255.255.0 gateway:192.168.100.1 - HWaddr 00:49:cb:6c:a1:31 MTU:1500 Running Default Link UP - ``` - - The following table describes the output parameters. - - **Table 2** Output description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

ip

-

IP address of the board

-

netmask

-

Subnet mask

-

gateway

-

Gateway

-

HWaddr

-

MAC address of the board

-

MTU

-

Maximum transmission unit

-

Running/Stop

-

Indicates whether the NIC is running.

-

Default

-

Indicates that the NIC is connected to the default gateway.

-

Link UP/Down

-

Connection status of the NIC

-
- -- Example 2: obtaining protocol stack statistics - - ``` - OHOS # ifconfig -a - RX packets:6922 errors:0 ip dropped:4312 link dropped:67 overrun:0 bytes:0 (0.0 B) - RX packets(ip6):3 errors:0 dropped:0 overrun:0 bytes:0 (0.0 B) - TX packets:1394 errors:0 link dropped:67 overrun:0 bytes:0(0.0 B) - TX packets(ip6):3 errors:0 overrun:0 bytes:0(0.0 B) - ``` - - The following table describes the output parameters. - - **Table 3** ifconfig -a output description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

RX packets

-

Number of normal packets received at the IP layer.

-

RX error

-

Number of error packets received at the IP layer. The errors include the length error, verification error, IP option error, and IP header protocol error.

-

RX dropped

-

Number of packets discarded at the IP layer. Packets are discarded due to packet errors, packet forwarding failures, and disabled local NICs.

-

RX overrun

-

Number of packets that the MAC layer fails to deliver to the upper-layer protocol stack. The failure is caused by resource insufficiency at the protocol stack.

-

RX bytes

-

Total length of normal packets received at the IP layer, excluding the length of the fragments that are not reassembled.

-

TX packets

-

Number of packets that have been normally sent or forwarded at the IP layer.

-

TX error

-

Number of packets that the IP layer fails to send. Packets may fail to be sent because the packets cannot be routed or the packets fail to be processed in the protocol stack.

-

TX dropped

-

Number of packets that the MAC layer discards due to delivery failures, for example, the NIC driver fails to process the packets.

-

TX overrun

-

Reserved.

-

TX bytes

-

Total length of the packets successfully sent or forwarded at the IP layer.

-
- -- Example 3: setting an IPv6 address - - ``` - OHOS:/$ ifconfig eth0 inet6 add 2001:a:b:c:d:e:f:d - NetifStatusCallback(eth0): nsc event: 0x8 - NetifStatusCallback(eth0): nsc status changed: 0 - NetifStatusCallback(eth0): nsc event: 0x200 - NetifStatusCallback(eth0): nsc event: 0x8 - NetifStatusCallback(eth0): nsc status changed: 1 - NetifStatusCallback(eth0): nsc event: 0x200 - NetifStatusCallback(eth0): nsc event: 0x200 - OHOS:/$ ifconfig - lo ip:127.0.0.1 netmask:255.0.0.0 gateway:127.0.0.1 - ip6: ::1/64 - HWaddr 00 MTU:0 Running Link UP - eth0 ip:192.168.1.10 netmask:255.255.255.0 gateway:192.168.1.1 - ip6: 2001:A:B:C:D:E:F:D/64 - HWaddr 66:2f:e5:bd:24:e6 MTU:1500 Running Default Link UP - ``` - -- Example 4: deleting an IPv6 address - - ``` - OHOS:/$ ifconfig eth0 inet6 del 2001:a:b:c:d:e:f:d - NetifStatusCallback(eth0): nsc event: 0x200 - OHOS:/$ ifconfig - lo ip:127.0.0.1 netmask:255.0.0.0 gateway:127.0.0.1 - ip6: ::1/64 - HWaddr 00 MTU:0 Running Link UP - eth0 ip:192.168.1.10 netmask:255.255.255.0 gateway:192.168.1.1 - HWaddr 66:2f:e5:bd:24:e6 MTU:1500 Running Default Link UP - ``` +- [_-a_] + +- <*interface*> <*address*> [_netmask <mask>_] [_gateway <address>_] + +- [_hw ether <address>_] [_mtu <size>_] + +- [_inet6 add <address>_] + +- [_inet6 del <address>_] + +- [_up|down_] + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| No parameter| Displays all NIC information, which includes the IP address, network mask, gateway, MAC address, maximum transmission unit (MTUs), and running status of each NIC.| N/A | +| -a | Displays data sent and received by the protocol stack.| N/A | +| interface | Specifies the NIC name, for example, **eth0**.| N/A | +| address | Specifies the IP address, for example, **192.168.1.10**. The NIC name must be specified.| N/A | +| netmask | Specifies the subnet mask, for example, **255.255.255.0**.| N/A | +| gateway | Specifies the gateway, for example, **192.168.1.1**.| N/A | +| hw ether | Specifies the MAC address, for example, **00:11:22:33:44:55**. Currently, only the **ether** hardware type is supported.| N/A | +| mtu | Specifies the MTU size, for example, **1000**.| - IPv4: [68, 1500]
- IPv6:[1280, 1500] | +| add | Specifies the IPv6 address, for example, **2001:a:b:c:d:e:f:d**. The NIC name and **inet6** must be specified.| N/A | +| del | Deletes an IPv6 address. You need to specify the NIC name and add the **inet6** option. For details, see the example.| N/A | +| up | Enables the data processing function of the NIC. The NIC name must be specified.| N/A | +| down | Disables the data processing function of the NIC. The NIC name must be specified.| N/A | +## Usage Guidelines + +- This command can be used only after the TCP/IP stack is enabled. + +- Detecting an IP address conflict takes time. Each time you run the **ifconfig** command to set an IP address, there is a delay of about 2 seconds. + + +## Example + +- ifconfig eth0 192.168.100.31 netmask 255.255.255.0 gateway 192.168.100.1 hw ether 00:49:cb:6c:a1:31 + +- ifconfig -a + +- ifconfig eth0 inet6 add 2001:a:b:c:d:e:f:d + +- ifconfig eth0 inet6 del 2001:a:b:c:d:e:f:d + + +## Output + +- Example 1: Set network parameters. + + ``` + OHOS:/$ ifconfig eth0 192.168.100.31 netmask 255.255.255.0 gateway 192.168.100.1 hw ether 00:49:cb:6c:a1:31 + OHOS:/$ ifconfig + lo ip:127.0.0.1 netmask:255.0.0.0 gateway:127.0.0.1 + ip6: ::1/64 + HWaddr 00 MTU:0 Running Link UP + eth0 ip:192.168.100.31 netmask:255.255.255.0 gateway:192.168.100.1 + HWaddr 00:49:cb:6c:a1:31 MTU:1500 Running Default Link UP + ``` + + + + **Table 2** Parameter description + + | Parameter| Description| + | -------- | -------- | + | ip | IP address of the board.| + | netmask | Subnet mask.| + | gateway | Gateway.| + | HWaddr | MAC address of the board.| + | MTU | Maximum transmission unit.| + | Running/Stop | Whether the NIC is running.| + | Default | Indicates that the NIC is connected to the default gateway.| + | Link UP/Down | Connection status of the NIC.| + +- Example 2: Obtain protocol stack statistics. + + ``` + OHOS # ifconfig -a + RX packets:6922 errors:0 ip dropped:4312 link dropped:67 overrun:0 bytes:0 (0.0 B) + RX packets(ip6):3 errors:0 dropped:0 overrun:0 bytes:0 (0.0 B) + TX packets:1394 errors:0 link dropped:67 overrun:0 bytes:0(0.0 B) + TX packets(ip6):3 errors:0 overrun:0 bytes:0(0.0 B) + ``` + + + + **Table 3** ifconfig -a parameter description + + | Parameter| Description| + | -------- | -------- | + | RX packets | Number of normal packets received at the IP layer.| + | RX error | Number of error packets received at the IP layer. The errors include the length error, verification error, IP option error, and IP header protocol error.| + | RX dropped | Number of packets discarded at the IP layer. Packets are discarded due to packet errors, packet forwarding failures, and disabled local NICs.| + | RX overrun | Number of packets that the MAC layer fails to deliver to the upper-layer protocol stack. The failure is caused by resource insufficiency at the protocol stack.| + | RX bytes | Total length of normal packets received at the IP layer, excluding the length of the fragments that are not reassembled.| + | TX packets | Number of packets that have been normally sent or forwarded at the IP layer.| + | TX error | Number of packets that the IP layer fails to send. Packets may fail to be sent because the packets cannot be routed or the packets fail to be processed in the protocol stack.| + | TX dropped | Number of packets that the MAC layer discards due to delivery failures, for example, the NIC driver fails to process the packets.| + | TX overrun | Not used currently.| + | TX bytes | Total length of the packets successfully sent or forwarded at the IP layer.| + +- Example 3: Set an IPv6 address. + + ``` + OHOS:/$ ifconfig eth0 inet6 add 2001:a:b:c:d:e:f:d + NetifStatusCallback(eth0): nsc event: 0x8 + NetifStatusCallback(eth0): nsc status changed: 0 + NetifStatusCallback(eth0): nsc event: 0x200 + NetifStatusCallback(eth0): nsc event: 0x8 + NetifStatusCallback(eth0): nsc status changed: 1 + NetifStatusCallback(eth0): nsc event: 0x200 + NetifStatusCallback(eth0): nsc event: 0x200 + OHOS:/$ ifconfig + lo ip:127.0.0.1 netmask:255.0.0.0 gateway:127.0.0.1 + ip6: ::1/64 + HWaddr 00 MTU:0 Running Link UP + eth0 ip:192.168.1.10 netmask:255.255.255.0 gateway:192.168.1.1 + ip6: 2001:A:B:C:D:E:F:D/64 + HWaddr 66:2f:e5:bd:24:e6 MTU:1500 Running Default Link UP + ``` + +- Example 4: Delete an IPv6 address. + + ``` + OHOS:/$ ifconfig eth0 inet6 del 2001:a:b:c:d:e:f:d + NetifStatusCallback(eth0): nsc event: 0x200 + OHOS:/$ ifconfig + lo ip:127.0.0.1 netmask:255.0.0.0 gateway:127.0.0.1 + ip6: ::1/64 + HWaddr 00 MTU:0 Running Link UP + eth0 ip:192.168.1.10 netmask:255.255.255.0 gateway:192.168.1.1 + HWaddr 66:2f:e5:bd:24:e6 MTU:1500 Running Default Link UP + ``` diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-ipdebug.md b/en/device-dev/kernel/kernel-small-debug-shell-net-ipdebug.md index e3dcce0bd9ac649fa5fb5ad82b8f77d714afae9c..1fd84191a319b96a2459080e1834bf712a70e49e 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-ipdebug.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-ipdebug.md @@ -1,21 +1,24 @@ # ipdebug -## Command Function +## Command Function -**ipdebug** is a console command and is used for IPv6 debugging. It can display IPv6 address prefixes, neighbor entries, destination entries, and default route entries. +**ipdebug** is a console command and is used for IPv6 debugging. It can display IPv6 address prefixes, neighbor entries, destination entries, and default route entries. -## Syntax + +## Syntax ipdebug -## Example -Run the **ipdebug** command. +## Example + +Run the **ipdebug** command. -## Output -**ipdebug** command output: +## Output + +**ipdebug** command output: ``` OHOS # ipdebug @@ -52,4 +55,3 @@ FE80::4639:C4FF:FE94:5D44 FE80::4639:C4FF:FE94:5D44 pmtu 1500 age 6 FE80::4639:C4FF:FE94:5D44 invalidation_timer 1784 flags 0 -------------------------------------------------------------------- ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-netstat.md b/en/device-dev/kernel/kernel-small-debug-shell-net-netstat.md index a383b945766d96178bdf52cd532a315bed2ed6b2..0e2052c802089979c566cba06648e2390700cc13 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-netstat.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-netstat.md @@ -1,29 +1,37 @@ # netstat -## Command Function +## Command Function -The **netstat** command is a console command and is used for monitoring the TCP/IP network. It can display the actual network connections and the status of each network interface device. This command displays statistics related to TCP and UDP and can be used to check the network connection to each port on the device \(board\). +The **netstat** command is a console command and is used for monitoring the TCP/IP network. It can display the actual network connections and the status of each network interface device. This command displays statistics related to TCP and UDP connections and can be used to check the network connection to each port on a device (board). -## Syntax + +## Syntax netstat -## Parameters -None +## Parameters -## Usage +None. -netstat -## Example +## Usage Guidelines + +None. + +## Note -Run **netstat**. +Currently, the shell does not support this command. -## Output +## Example -**netstat** print information +Run **netstat**. + + +## Output + +**netstat** output information: ``` OHOS # netstat @@ -41,50 +49,16 @@ udp 0 0 127.0.0.1:62180 127.0.0.1:62179 udp 0 0 127.0.0.1:62178 127.0.0.1:62177 ``` -**Table 1** Output description - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Proto

-

Protocol type.

-

Recv-Q

-

Amount of data that is not read by the user.

-

For Listen TCP, the value indicates the number of TCP connections that have finished three-way handshake but are not accepted by users.

-

Send-Q

-

For a TCP connection, this value indicates the amount of data that has been sent but not acknowledged.

-

For a UDP connection, this value indicates the amount of data buffered before IP address resolution is complete.

-

Local Address

-

Local IP address and port number.

-

Foreign Address

-

Remote IP address and port number.

-

State

-

TCP connection status. This parameter is meaningless for UDP.

-
- ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->The command output like "========== total sockets 32 ====== unused sockets 22 BootTime 27 s ==========" indicates that there are 32 sockets in total, 22 sockets are not used, and it has been 27 seconds since the system starts. +**Table 1** Output description + +| Parameter | Description | +| -------------------- | ------------------------------------------------------------ | +| Proto | Protocol type. | +| Recv-Q | Amount of data that is not read by the user.
For Listen TCP, the value indicates the number of TCP connections that have finished the three-way handshake but are not accepted by users. | +| Send-Q | For a TCP connection, this value indicates the amount of data that has been sent but not acknowledged.
For a UDP connection, this value indicates the amount of data buffered before IP address resolution is complete.| +| Local Address | Local IP address and port number. | +| Foreign Address | Remote IP address and port number. | +| State | TCP connection status. This parameter is meaningless for UDP. | +> **NOTE**
+> The command output like "========== total sockets 32 ====== unused sockets 22 BootTime 27 s ==========" indicates that there are 32 sockets in total, 22 sockets are not used, and it has been 27 seconds since the system starts. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-ntpdate.md b/en/device-dev/kernel/kernel-small-debug-shell-net-ntpdate.md index f3fa527279212dab09ad895b48872ca143a67926..5f6605457b77f0f71ca6b8f9d5bc1f0bba4f5089 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-ntpdate.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-ntpdate.md @@ -1,51 +1,41 @@ # ntpdate -## Command Function +## Command Function This command is used to synchronize system time from the server. -## Syntax -ntpdate \[_SERVER\_IP1_\] \[_SERVER\_IP2_\]... +## Syntax -## Parameters +ntpdate [_SERVER_IP1_] [_SERVER_IP2_]... -**Table 1** Parameter description - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

SERVER_IP

-

Specifies the IP address of the NTP server.

-

N/A

-
+## Parameters -## Usage +**Table 1** Parameter description -Run the **ntpdate **\[_SERVER\_IP1_\] \[_SERVER\_IP2_\]... command. **ntpdate** obtains and displays the time of the first server with a valid IP address. +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| SERVER_IP | Specifies the IP address of the NTP server.| N/A | -## Example -Run **ntpdate 192.168.1.3 **to update the system time. +## Usage Guidelines + +Run the **ntpdate [_SERVER_IP1_] [_SERVER_IP2_]...** command to obtain and display the time of the first server with a valid IP address. + + +## Example + +Run **ntpdate 192.168.1.3 **to update the system time. + + +## Output -## Output ``` OHOS # ntpdate 192.168.1.3 time server 192.168.1.3: Mon Jun 13 09:24:25 2016 ``` -If the time zone of the board is different from that of the server, the displayed time may be several hours different from the obtained server time. - +If the time zone of the board is different from that of the server, the displayed time may be several hours different from the server time obtained. diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-ping.md b/en/device-dev/kernel/kernel-small-debug-shell-net-ping.md index 5c709aaaf0bae7a78dda6e8cc5060c6832d176fb..2abc781addc72da998a4a4c89ba375a8c05c2263 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-ping.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-ping.md @@ -1,100 +1,51 @@ # ping -## Command Function +## Command Function This command is used to test an IPv4 connection. -## Syntax - -ping _\[-4\] \[-c cnt\] \[-f\] \[-i interval\] \[-q\] \[-s size\] _ - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

--help

-

Displays the parameters supported by the ping command.

-

N/A

-

-4

-

Forcibly pings the destination address using the IPv4 protocol.

-

0-65500

-

-c CNT

-

Specifies the number of execution times. The default value is 3.

-

1-65535

-

-f

-

Pings an IPv4 address in implicit mode. The default parameter configuration is equivalent to -c 15 -i 0.2.

-

N/A

-

-i interval

-

Specifies the interval (in ms) for sending a ping packet.

-

1-200

-

-q

-

Implicitly pings an IPv4 address. If the host is active, the ping stops after true is received.

-

N/A

-

-s SIZE

-

Specifies the size of a ping packet, in bytes. The default size is 56 bytes.

-

0-4088

-

IP

-

Specifies the IPv4 address to test.

-

N/A

-
- -## Usage - -- The **ping** command is used to check whether the destination IP address is reachable. -- If the destination IP address is unreachable, the system displays a message indicating that the request times out. -- If no route is available to the destination IP address, an error message is displayed. -- This command can be used only after the TCP/IP stack is enabled. - -## Example - -Run **ping 192.168.1.3**. - -## Output - -Pinging a TFTP server IP address: + +## Syntax + +ping *[-4] [-c cnt] [-f] [-i interval] [-q] [-s size] <IP>* + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| --help | Displays the parameters supported by the **ping** command.| N/A | +| -4 | Forcibly pings the destination address using the IPv4 protocol.| 0-65500 | +| -c CNT | Specifies the number of execution times. The default value is **3**.| 1-65535 | +| -f | Pings an IPv4 address in implicit mode. The default parameter configuration is equivalent to **-c 15 -i 0.2**.| N/A | +| -i interval | Specifies the interval (in ms) for sending a ping packet.| 1-200 | +| -q | Implicitly pings an IPv4 address. If the host is still alive, the ping stops after **true** is returned.| N/A | +| -s SIZE | Specifies the size of a ping packet, in bytes. The default size is **56** bytes.| 0-4088 | +| IP | Specifies the IPv4 address of the network to test.| N/A | + + +## Usage Guidelines + +- The **ping** command is used to check whether the destination IP address is reachable. + +- If the destination IP address is unreachable, the system displays a message indicating that the request times out. + +- If no route is available to the destination IP address, an error message is displayed. + +- This command can be used only after the TCP/IP protocol stack is enabled. + + +## Example + +Run **ping 192.168.1.3**. + + +## Output + +Ping a TFTP server IP address. ``` OHOS:/$ ping 192.168.1.3 @@ -106,4 +57,3 @@ Ping 192.168.1.3 (192.168.1.3): 56(84) bytes. 3 packets transmitted, 3 received, 0% packet loss round-trip min/avg/max = 0/0/0 ms ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-ping6.md b/en/device-dev/kernel/kernel-small-debug-shell-net-ping6.md index e1ec3b85298b9e1a10a048518f13339cf1f111a7..cc71b56b59673cbf9063097ae44c59ede5ea1abc 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-ping6.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-ping6.md @@ -1,120 +1,98 @@ # ping6 -## Command Function +## Command Function This command is used to test an IPv6 network connection. -## Syntax - -ping6 _\[-c count\] \[-I interface / sourceAddress\] destination_ - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-c count

-

Specifies the number of execution times. If this parameter is not specified, the default value is 4.

-

1~65535

-

-I interface

-

Performs an IPv6 ping operation for a specified NIC.

-

N/A

-

-I sourceAddress

-

Specifies the source IPv6 address.

-

N/A

-

destination

-

Specifies the IP address of the destination host.

-

N/A

-
- -## Usage - -- If the destination IPv6 address is unreachable, the system displays a message indicating that the request times out. -- If no route is available to the destination IPv6 address, an error message is displayed. -- This command can be used only after the TCP/IP protocol stack is enabled. - -## Example - -- ping6 2001:a:b:c:d:e:f:b -- ping6 -c 3 2001:a:b:c:d:e:f:b -- ping6 -I eth0 2001:a:b:c:d:e:f:b -- ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b - -## Output - -1. Output of **ping6 2001:a:b:c:d:e:f:b**: - - ``` - OHOS # ping6 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms - --- 2001:a:b:c:d:e:f:b/64 ping statistics --- - 4 packets transmitted, 4 received, 0.00% packet loss, time 20ms - rtt min/avg/max = 0/0.00/0 ms - ``` - -2. Output of **ping6 -c 3 2001:a:b:c:d:e:f:b**: - - ``` - OHOS # ping6 -c 3 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms - --- 2001:a:b:c:d:e:f:b/64 ping statistics --- - 3 packets transmitted, 3 received, 0.00% packet loss, time 20ms - rtt min/avg/max = 0/0.00/0 ms - ``` - -3. Output of **ping6 -I eth0 2001:a:b:c:d:e:f:b**: - - ``` - OHOS # ping6 -I eth0 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time=10 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms - --- 2001:a:b:c:d:e:f:b/64 ping statistics --- - 4 packets transmitted, 4 received, 0.00% packet loss, time 30msrtt min/avg/max = 0/2.50/10 ms - ``` - -4. Output of **ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b**: - - ``` - OHOS # ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms - 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms - --- 2001:a:b:c:d:e:f:b/64 ping statistics --- - 4 packets transmitted, 4 received, 0.00% packet loss, time 20msrtt min/avg/max = 0/0.00/0 ms - ``` +## Syntax +ping6 *[-c count] [-I interface / sourceAddress] destination* + + +## Parameters + +**Table 1** Parameter description + +| Parameter | Description | Value Range| +| --------------------- | ----------------------------------- | -------- | +| -c count | Specifies the number of execution times. If this parameter is not specified, the default value is **4**.| [1, 65535] | +| -I interface | Specifies the NIC for performing the ping operation. | N/A | +| -I sourceAddress | Specifies the source IPv6 address. | N/A | +| destination | Specifies the IP address of the destination host. | N/A | + + +## Usage Guidelines + +- If the destination IPv6 address is unreachable, "Request Timed Out" will be displayed. + +- If no route is available to the destination IPv6 address, "Destinatin Host Unreachable" will be displayed. + +- This command can be used only after the TCP/IP stack is enabled. + +## Note + +Currently, the shell does not support this command. + +## Example + +- ping6 2001:a:b:c:d:e:f:b + +- ping6 -c 3 2001:a:b:c:d:e:f:b + +- ping6 -I eth0 2001:a:b:c:d:e:f:b + +- ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b + + +## Output + +1. Output of **ping6 2001:a:b:c:d:e:f:b**: + + ``` + OHOS # ping6 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms + --- 2001:a:b:c:d:e:f:b/64 ping statistics --- + 4 packets transmitted, 4 received, 0.00% packet loss, time 20ms + rtt min/avg/max = 0/0.00/0 ms + ``` + +2. Output of **ping6 -c 3 2001:a:b:c:d:e:f:b**: + + ``` + OHOS # ping6 -c 3 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms + --- 2001:a:b:c:d:e:f:b/64 ping statistics --- + 3 packets transmitted, 3 received, 0.00% packet loss, time 20ms + rtt min/avg/max = 0/0.00/0 ms + ``` + +3. Output of **ping6 -I eth0 2001:a:b:c:d:e:f:b**: + + ``` + OHOS # ping6 -I eth0 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time=10 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms + --- 2001:a:b:c:d:e:f:b/64 ping statistics --- + 4 packets transmitted, 4 received, 0.00% packet loss, time 30msrtt min/avg/max = 0/2.50/10 ms + ``` + +4. Output of **ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b**: + + ``` + OHOS # ping6 -I 2001:a:b:c:d:e:f:d 2001:a:b:c:d:e:f:b PING 2001:A:B:C:D:E:F:B with 56 bytes of data. + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms + 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms + --- 2001:a:b:c:d:e:f:b/64 ping statistics --- + 4 packets transmitted, 4 received, 0.00% packet loss, time 20msrtt min/avg/max = 0/0.00/0 ms + ``` diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-telnet.md b/en/device-dev/kernel/kernel-small-debug-shell-net-telnet.md index 8f20d27c6d8f9f31ea7f77f27145e6aea87586c0..ff9fc0686ed420aca866b2691d31ea75720745ef 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-telnet.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-telnet.md @@ -1,63 +1,46 @@ # telnet -## Command Function +## Command Function This command is used to enable or disable the Telnet server service. -## Syntax -telnet \[_on | off_\] +## Syntax -## Parameters +telnet [_on | off_] -**Table 1** Parameter description - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

on

-

Enables the Telnet server service.

-

N/A

-

off

-

Disables the Telnet server service.

-

N/A

-
+## Parameters -## Usage +**Table 1** Parameter description -- Before enabling Telnet, ensure that the network driver and network protocol stack have been initialized and the NIC of the board is in the **link up** state. -- Currently, multiple clients \(Telnet + IP\) cannot connect to the development board at the same time. +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| on | Enables the telnet server service.| N/A | +| off | Disables the telnet server service.| N/A | - >![](../public_sys-resources/icon-notice.gif) **NOTICE:** - >Telnet is used for debugging and is disabled by default. Do not use it in formal products. +## Usage Guidelines -## Example +- Before enabling Telnet, ensure that the network driver and network protocol stack have been initialized and the NIC of the board is in the **link up** state. -Run **telnet on**. +- Currently, multiple clients (Telnet + IP) cannot connect to the development board at the same time. + > **NOTICE**
+ > Telnet is used for debugging and is disabled by default. Do not use it in formal products. -## Output + +## Example + +Run **telnet on**. + + +## Output Command output: + ``` OHOS # telnet on OHOS # start telnet server successfully, waiting for connection. ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-shell-net-tftp.md b/en/device-dev/kernel/kernel-small-debug-shell-net-tftp.md index d5fd3fb26a5f92d87861acac6ac609c95d241ff0..ca0227eed99e2e0c6a162c867eff3a0d329b05eb 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-net-tftp.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-net-tftp.md @@ -1,81 +1,52 @@ # tftp -## Command Function - -Trivial File Transfer Protocol \(TFTP\) is a protocol in the TCP/IP protocol suite for transferring files between clients and servers. TFTP provides simple and low-overhead file transfer services. The port number is 69. - -The **tftp** command is used to transfer files with a TFTP server. - -## Syntax - -./bin/tftp _<-g/-p\>_ _-l_ _\[FullPathLocalFile\] -r \[RemoteFile\] \[Host\]_ - -## Parameters - -**Table 1** Parameter description - - - - - - - - - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value Range

-

-g/-p

-

Specifies the file transfer direction.

-
  • -g: downloads files from the TFTP server.
  • -p: uploads files to the TFTP server.
-

N/A

-

-l FullPathLocalFile

-

Specifies the complete path of a local file.

-

N/A

-

-r RemoteFile

-

Specifies the file name on the server.

-

N/A

-

Host

-

Specifies the server IP address.

-

N/A

-
- -## Usage - -1. Deploy a TFTP server on the server and configure the TFTP server correctly. -2. Use the **tftp** command to upload and download files on the OpenHarmony board. -3. The size of the file to be transferred cannot exceed 32 MB. - - >![](../public_sys-resources/icon-notice.gif) **NOTICE:** - >TFTP is used for debugging and disabled by default. Do not use it in formal products. - - -## Example - -Download the **out** file from the server. - -## Output +## Command Function + +Trivial File Transfer Protocol (TFTP) is a protocol in the TCP/IP protocol suite for transferring files between clients and servers. TFTP provides simple and low-overhead file transfer services. The port number is 69. + +The **tftp** command is used to transfer files with a TFTP server. + + +## Syntax + +./bin/tftp *<-g/-p>**-l**[FullPathLocalFile] -r [RemoteFile] [Host]* + + +## Parameters + +**Table 1** Parameter description + +| Parameter| Description| Value Range| +| -------- | -------- | -------- | +| -g/-p | Specifies the file transfer direction.
- **-g**: obtains a file from the TFTP server.
- **-p**: uploads a file to the TFTP server.| N/A | +| -l FullPathLocalFile | Specifies the complete path of a local file.| N/A | +| -r RemoteFile | Specifies the file name on the server.| N/A | +| Host | Specifies the server IP address.| N/A | + + +## Usage Guidelines + +1. Deploy a TFTP server on the server and configure the TFTP server correctly. + +2. Use the **tftp** command to upload files from or download files to an OpenHarmony board. + +3. The size of the file to be transferred cannot exceed 32 MB. + > **NOTICE**
+ > TFTP is used for debugging and disabled by default. Do not use it in formal products. + + +## Example + +Download the **out** file from the server. + + +## Output + ``` OHOS # ./bin/tftp -g -l /nfs/out -r out 192.168.1.2 TFTP transfer finish ``` -After the **tftp** command is executed, **TFTP transfer finish** is displayed if the file transfer is complete. If the file transfer fails, other information is displayed to help locate the fault. - +After the **tftp** command is executed, **TFTP transfer finish** is displayed if the file transfer is complete. If the file transfer fails, other information is displayed to help locate the fault. 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-3568-helloworld.md b/en/device-dev/quick-start/quickstart-ide-3568-helloworld.md index 847a732e1522dfc38caf76a03eb3dfc6e5a339b8..f4e1dedcfe9bb759e035f235d91320eb7f65a745 100644 --- a/en/device-dev/quick-start/quickstart-ide-3568-helloworld.md +++ b/en/device-dev/quick-start/quickstart-ide-3568-helloworld.md @@ -11,11 +11,12 @@ A project for the RK3568 development board has been created as instructed in [Cr ## 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 @@ -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 @@ Perform the steps below in the source code 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**. Declare the string printing function **HelloPrint** in the **helloworld.h** file. You can use either C or C++ to develop a program. ``` @@ -57,7 +58,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: ``` @@ -80,89 +81,116 @@ 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. If there are APIs provided for other components, add them in **inner_kits**. If there are test cases, add them 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. - - In the **productdefine/common/products/rk3568.json** file, add the **hello** part after the existing part. - > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** - > - > In this example, the OpenHarmony-v3.1-Release version is used, where 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**. +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**. + - 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/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/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/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..a08c5a6f98327d255d722a2104a93c7e6be91733 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 @@ -67,7 +67,7 @@ try { ## cl.distributeddatamgr.2 Migration of function getRdbStoreV9 from @ohos.data.rdb.d.ts to @ohos.data.relationalStore.d.ts. **Change Impacts** -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The **getRdbStoreV9()** API is deprecated, and the applications that use it need to make adjustment. **Key API/Component Changes** @@ -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** @@ -91,7 +91,7 @@ function getRdbStore(context: Context, config: StoreConfig, version: number): Pr ## cl.distributeddatamgr.3 Migration of function deleteRdbStoreV9 from @ohos.data.rdb.d.ts to @ohos.data.relationalStore.d.ts **Change Impacts** -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The **deleteRdbStoreV9()** API is deprecated, and the applications that use it need to make adjustment. **Key API/Component Changes** @@ -114,20 +114,21 @@ function deleteRdbStoreV9(context: Context, name: string): Promise; ## cl.distributeddatamgr.4 Migration of interface StoreConfigV9 from @ohos.data.rdb.d.ts to @ohos.data.relationalStore.d.ts **Change Impacts** -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The **StoreConfigV9()** API is deprecated, and the applications that use it need to make adjustment. **Key API/Component Changes** **interface StoreConfigV9** is migrated from **@ohos.data.rdb.d.ts** to **@ohos.data.relationalStore.d.ts** and is renamed as **interface StoreConfig**. **Adaptation Guide** + * `import rdb from "@ohos.data.rdb"` is changed to `import rdb from "@ohos.data.relationalStore"`. * The names of relevant APIs should be changed according to the preceding changes. ## cl.distributeddatamgr.5 Migration of enum SecurityLevel from @ohos.data.rdb.d.ts to @ohos.data.relationalStore.d.ts **Change Impacts** -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The **SecurityLevel** object is deprecated, and the applications that use it need to make adjustment. **Key API/Component Changes** @@ -140,24 +141,25 @@ The application needs to adapt these APIs so that it can be properly compiled in ## cl.distributeddatamgr.6 Migration of interface RdbStoreV9 from @ohos.data.rdb.d.ts to @ohos.data.relationalStore.d.ts **Change Impacts** -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The **RdbStoreV9()** interface is deprecated, and the applications that use it need to make adjustment. **Key API/Component Changes** -**interface RdbStoreV9** is migrated from **@ohos.data.rdb.d.ts** to **@ohos.data.relationalStore.d.ts** and is renamed as **interface RdbStore**. +**RdbStoreV9()** is migrated from **@ohos.data.rdb.d.ts** to **@ohos.data.relationalStore.d.ts** and is renamed as **interface RdbStore**. **Adaptation Guide** + * `import rdb from "@ohos.data.rdb"` is changed to `import rdb from "@ohos.data.relationalStore"`. * The names of relevant APIs should be changed according to the preceding changes. ## cl.distributeddatamgr.7 Migration of class RdbPredicatesV9 from ohos.data.rdb.d.ts to @ohos.data.relationalStore.d.ts **Change Impacts** -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The **RdbPredicatesV9** class is deprecated, and the applications that use it need to make adjustment. **Key API/Component Changes** -**class RdbPredicatesV9** is migrated from **ohos.data.rdb.d.ts** to **@ohos.data.relationalStore.d.ts** and is renamed as **interface RdbPredicates**. +**RdbPredicatesV9** is migrated from **ohos.data.rdb.d.ts** to **@ohos.data.relationalStore.d.ts** and is renamed as **interface RdbPredicates**. **Adaptation Guide** * `import rdb from "@ohos.data.rdb"` is changed to `import rdb from "@ohos.data.relationalStore"`. @@ -166,11 +168,11 @@ The application needs to adapt these APIs so that it can be properly compiled in ## cl.distributeddatamgr.8 Migration of interface ResultSetV9 from api/@ohos.data.relationalStore.d.ts to @ohos.data.relationalStore.d.ts **Change Impacts** -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The **ResultSetV9** object is deprecated, and the applications that use it need to make adjustment. **Key API/Component Changes** -**interface ResultSetV9** is migrated from **api/data/rdb/resultSet.d.ts** to **@ohos.data.relationalStore.d.ts** and is renamed as **interface ResultSet**. +**ResultSetV9** is migrated from **api/data/rdb/resultSet.d.ts** to **@ohos.data.relationalStore.d.ts** and is renamed as **interface ResultSet**. **Adaptation Guide** 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.5/changelogs-arkui.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..3e4d9a57601c4d8b930451927c91bb209c4954b9 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-arkui.md @@ -0,0 +1,217 @@ +# ArkUI Subsystem ChangeLog + +## cl.arkui.1 Restrictions on Data Type Declarations of State Variables + +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%') + } + } + ``` + + ![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](../../../application-dev/quick-start/figures/hello.PNG) + +**Change Impacts** + +1. If the data type of a state variable decorated by a state decorator is declared as **any**, a build error will occur. + ```ts + // ArkTS:ERROR Please define an explicit type, not any. + @State isLunar: any = false + ``` +2. If the data type of a state variable decorated by a state decorator is declared as **Date**, a build error will occur. + ```ts + // ArkTS:ERROR The @State property 'selectedDate' cannot be a 'Date' object. + @State selectedDate: Date = new Date('2021-08-08') + ``` +3. If the data type of a **@State**, **@Provide**, **@Link**, and or **@Consume** decorated state variable is Length, **ResourceStr**, or **ResourceColor**, a build error will occur. + ```ts + /* ArkTS:ERROR The state variable type here is 'ResourceStr', it contains both a simple type and an object type, + which are not allowed to be defined for state variable of a struct.*/ + @State message: ResourceStr = $r('app.string.hello') + ``` + +**Key API/Component Changes** + +N/A + +**Adaptation Guide** + +1. Explicitly declare the data type for state variables decorated by state decorators. +2. If a state variable decorated by a state decorator uses the **Date** object, change it to a regular variable – a variable not decorated by any decorator. +3. Adapt the **@State**, **@Provide**, **@Link**, and **@Consume** decorated variables based on the following code snippet so that they do not use the **Length(string|number|Resource)**, **ResourceStr(string|Resource)**, and **ResourceColor(string|number|Color|Resource)** types: + + ```ts + // Incorrect: + @State message: ResourceStr = $r('app.string.hello') + // Corrected: + @State resourceStr: Resource = $r('app.string.hello') + ``` + +## cl.arkui.2 Initialization Rules and Restrictions of Custom Components' Member Variables + +Comply with the following rules when using constructors to initialize member variables: + +| **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 | + +| **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. + +**@StorageLink**, **@StorageProp**, **@LocalStorageLink**, and **@LocalStorageProp** variables cannot be initialized from the parent component. + +**Change Impacts** + +1. Variables decorated by **@LocalStorageLink** and **@LocalStorageProp** cannot be initialized from the parent component. + ```ts + @Entry + @Component + struct LocalStorageComponent { + build() { + Column() { + Child({ + /* ArkTS:ERROR Property 'simpleVarName' in the custom component 'Child' cannot + initialize here (forbidden to specify). */ + simpleVarName: 1, + /* ArkTS:ERROR Property 'objectName' in the custom component 'Child' cannot + initialize here (forbidden to specify). */ + objectName: new ClassA("x") + }) + } + } + } + @Component + struct Child { + @LocalStorageLink("storageSimpleProp") simpleVarName: number = 0; + @LocalStorageProp("storageObjectProp") objectName: ClassA = new ClassA("x"); + build() {} + } + ``` +2. 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**. + ```ts + let NextID : number = 0; + + @Observed class ClassA { + public id : number; + public c: number; + constructor(c: number) { + this.id = NextID++; + this.c = c; + } + } + + @Component + struct Child { + @ObjectLink varA : ClassA; + build() { + Row() { + Text('ViewA-' + this.varA.id) + } + } + } + + @Component + struct Parent { + @Link linkValue: ClassA + build() { + Column() { + /* ArkTS:ERROR The @Link property 'linkValue' cannot be assigned to + the @ObjectLink property 'varA'.*/ + Child({ varA: this.linkValue }) + } + } + } + ``` + +**Key API/Component Changes** + +N/A + +**Adaptation Guide** +1. When building a child component, do not perform the build on the variables decorated by **@LocalStorageLink** and **@LocalStorageProp** in the child component. + + To change these variables from the parent component, use the API provided by the **LocalStorage** (such as the **set** API) to assign values to them. + +2. For details about how to use **@ObjectLink**, see [@Observed and @ObjectLink](../../../application-dev/quick-start/arkts-state-mgmt-page-level.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..e0f29bcac24ac3261ae12ea6810ab5da6c4907b8 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-bundlemanager.md @@ -0,0 +1,41 @@ +# Bundle Manager Subsystem ChangeLog + +## cl.bundlemanager.1 Field Change of the ApplicationInfo Struct in API Version 9 + +The **entryDir** field is deleted from the **ApplicationInfo** struct [[bundleManager/applicationInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/monthly_20221018/api/bundleManager/applicationInfo.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 must adapt to the new modules and APIs. + +**Key API/Component Changes** + +The following table describes the changed fields in the **ApplicationInfo** struct. + +| Deleted Field| Added or Changed Field in API Version 9| Type| +| --- | --- | --- | +| entryDir | None | string | + +**Adaptation Guide** + +When importing the bundle management query module, delete the **entryDir** field from the **ApplicationInfo** struct of API version 9. + +## cl.bundlemanager.2 Field Change of the HapModuleInfo Struct in API Version 9 + +The **moduleSourceDir** field is deleted from the **HapModuleInfo** struct [[bundleManager/hapModuleInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/monthly_20221018/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 must adapt to the new modules and APIs. + +**Key API/Component Changes** + +The following table describes the changed fields in the **HapModuleInfo** struct. + +| Deleted Field| Added or Changed Field in API Version 9| Type| +| --- | --- | --- | +| moduleSourceDir | None | string | + +**Adaptation Guide** + +When importing the bundle manager query module, delete the **moduleSourceDir** field from the **HapModuleInfo** struct of API version 9. \ No newline at end of file diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-media.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-media.md new file mode 100644 index 0000000000000000000000000000000000000000..01455e8774555943174a21a80f343b607a4a0069 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/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_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_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/zh-cn/application-dev/application-models/Readme-CN.md b/zh-cn/application-dev/application-models/Readme-CN.md index 161ea7785a99824ee82721f55ab88df125096d95..f73008bb2ba737d7aee211266f946c2f8d862330 100644 --- a/zh-cn/application-dev/application-models/Readme-CN.md +++ b/zh-cn/application-dev/application-models/Readme-CN.md @@ -19,6 +19,7 @@ - [ServiceExtensionAbility](serviceextensionability.md) - [DataShareExtensionAbility(仅对系统应用开放)](datashareextensionability.md) - [FormExtensionAbility(服务卡片)](widget-development-stage.md) + - [WindowExtensionAbility](windowextensionability.md) - [AbilityStage组件容器](abilitystage.md) - [应用上下文Context](application-context-stage.md) - 信息传递载体Want diff --git a/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md b/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md index bf332bf895584a9002d942a1296c1759915f4309..e8c032c0966dfdfca580da475b2bb30ff2e0ef8a 100644 --- a/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md +++ b/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md @@ -72,4 +72,6 @@ 4. want内type不为空,且被skills内type包含,匹配成功。 -2. 当有多个匹配应用时,会被应用选择器展示给用户进行选择。stage-want1 +2. 当有多个匹配应用时,会被应用选择器展示给用户进行选择。 + + ![stage-want1](figures/stage-want1.png) 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..d30be4b9bed8655e658418fd9eb8c4e5d4bbe84c --- /dev/null +++ b/zh-cn/application-dev/application-models/accessibilityextensionability.md @@ -0,0 +1,126 @@ +# 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)提供的接口进行扩展开发,包括允许配置辅助应用关注信息类型、查询节点信息、手势注入等。 + +此外,还可在无障碍扩展服务中对物理按键事件进行处理,具体可参考[onKeyEvent](../reference/apis/js-apis-application-accessibilityExtensionAbility.md#accessibilityextensionabilityonkeyevent)。 + +## 如何声明无障碍扩展服务具备的能力 + +在完成自定义无障碍扩展服务的逻辑开发后,还需要在工程中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/base/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/application-context-stage.md b/zh-cn/application-dev/application-models/application-context-stage.md index 029191ebf9e20146981707e53952e1435ee41c38..6f42b99409c997d8f7e9608db050df727f431163 100644 --- a/zh-cn/application-dev/application-models/application-context-stage.md +++ b/zh-cn/application-dev/application-models/application-context-stage.md @@ -6,10 +6,12 @@ [Context](../reference/apis/js-apis-inner-application-context.md)是应用中对象的上下文,其提供了应用的一些基础信息,例如resourceManager(资源管理)、applicationInfo(当前应用信息)、dir(应用开发路径)、area(文件分区)等,以及应用的一些基本方法,例如createBundleContext()、getApplicationContext()等。UIAbility组件和各种ExtensionAbility派生类组件都有各自不同的Context类。分别有基类Context、ApplicationContext、AbilityStageContext、UIAbilityContext、ExtensionContext、ServiceExtensionContext等Context。 - 各类Context的继承关系 - context-inheritance + + ![context-inheritance](figures/context-inheritance.png) - 各类Context的持有关系 - context-holding + + ![context-holding](figures/context-holding.png) - 各类Context的获取方式 - 获取[UIAbilityContext](../reference/apis/js-apis-inner-application-uiAbilityContext.md)。每个UIAbility中都包含了一个Context属性,提供操作Ability、获取Ability的配置信息、应用向用户申请授权等能力。 @@ -93,8 +95,9 @@ 获取路径的能力是基类Context中提供的能力,因此在ApplicationContext、AbilityStageContext、UIAbilityContext和ExtensionContext中均可以获取,在各类Context中获取到的路径会有一些差别,具体差别如下图所示。 - **图1** Context中获取的应用开发路径 -context-dir + **图1** Context中获取的应用开发路径 + + ![context-dir](figures/context-dir.png) - 通过ApplicationContext获取的应用级别路径。应用全局信息建议存放的路径,存放在此路径的文件内容仅在应用卸载时会被删除。 | 属性 | 路径 | @@ -306,4 +309,5 @@ export default class EntryAbility extends UIAbility { 应用需要获取用户的隐私信息或使用系统能力时,例如获取位置信息、访问日历、使用相机拍摄照片或录制视频等,需要向用户申请授权,示意效果如下图所示。具体使用请参见[访问控制授权申请指导](../security/accesstoken-guidelines.md)。 **图2** 向用户申请日历访问授权 -application-context-stage \ No newline at end of file + + ![application-context-stage](figures/application-context-stage.png) \ No newline at end of file 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..d2309192b5c82866ee9c88dd35a6f7706d8e1b08 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语言的虚拟机)实例,应用组件之间可以方便的共享对象和状态,同时减少复杂应用运行对内存的占用。 @@ -51,7 +51,7 @@ Stage模型之所以成为主推模型,源于其设计思想。Stage模型的 | 项目 | FA模型 | Stage模型 | | -------- | -------- | -------- | -| **应用组件** | 1. 组件分类
   - PageAbility组件:包含UI界面,提供展示UI的能力。详细介绍请参见[PageAbility组件概述](pageability-overview.md)。
   - ServiceAbility组件:提供后台服务的能力,无UI界面。详细介绍请参见[ServiceAbility组件概述](serviceability-overview.md)。
   - DataAbility组件:提供数据分享的能力,无UI界面。详细介绍请参见[DataAbility组件概述](dataability-overview.md)。
2. 开发方式
   通过导出匿名对象、固定入口文件的方式指定应用组件。开发者无法进行派生,不利于扩展能力。 | 1. 组件分类
   - UIAbility组件:包含UI界面,提供展示UI的能力,主要用于和用户交互。详细介绍请参见[UIAbility组件概述](uiability-overview.md)。
   - ExtensionAbility组件:提供特定场景(如卡片、输入法)的扩展能力,满足更多的使用场景。详细介绍请参见[ExtensionAbility组件概述](extensionability-overview.md)。
2. 开发方式
   采用面向对象的方式,将应用组件以类接口的形式开放给开发者,可以进行派生,利于扩展能力。 | +| **应用组件** | 1. 组件分类
![fa-model-component](figures/fa-model-component.png)   - PageAbility组件:包含UI界面,提供展示UI的能力。详细介绍请参见[PageAbility组件概述](pageability-overview.md)。
   - ServiceAbility组件:提供后台服务的能力,无UI界面。详细介绍请参见[ServiceAbility组件概述](serviceability-overview.md)。
   - DataAbility组件:提供数据分享的能力,无UI界面。详细介绍请参见[DataAbility组件概述](dataability-overview.md)。
2. 开发方式
   通过导出匿名对象、固定入口文件的方式指定应用组件。开发者无法进行派生,不利于扩展能力。 | 1. 组件分类
![stage-model-component](figures/stage-model-component.png)   - UIAbility组件:包含UI界面,提供展示UI的能力,主要用于和用户交互。详细介绍请参见[UIAbility组件概述](uiability-overview.md)。
   - ExtensionAbility组件:提供特定场景(如卡片、输入法)的扩展能力,满足更多的使用场景。详细介绍请参见[ExtensionAbility组件概述](extensionability-overview.md)。
2. 开发方式
   采用面向对象的方式,将应用组件以类接口的形式开放给开发者,可以进行派生,利于扩展能力。 | | **进程模型** | 有两类进程:
1. 主进程
2. 渲染进程
详细介绍请参见[进程模型](process-model-fa.md)。 | 有三类进程:
1. 主进程
2. ExtensionAbility进程
3. 渲染进程
详细介绍请参见[进程模型](process-model-stage.md)。 | | **线程模型** | 1. ArkTS引擎实例的创建
   一个进程可以运行多个应用组件实例,每个应用组件实例运行在一个单独的ArkTS引擎实例中。
2. 线程模型
   每个ArkTS引擎实例都在一个单独线程(非主线程)上创建,主线程没有ArkTS引擎实例。
3. 进程内对象共享:不支持。
详细介绍请参见[线程模型](thread-model-fa.md)。 | 1. ArkTS引擎实例的创建
   一个进程可以运行多个应用组件实例,所有应用组件实例共享一个ArkTS引擎实例。
2. 线程模型
   ArkTS引擎实例在主线程上创建。
3. 进程内对象共享:支持。
详细介绍请参见[线程模型](thread-model-stage.md)。 | | **任务管理模型** | - 每个PageAbility组件实例创建一个任务。
- 任务会持久化存储,直到超过最大任务个数(根据产品配置自定义)或者用户主动删除任务。
- PageAbility组件之间不会形成栈的结构。
详细介绍请参见[任务管理场景介绍](mission-management-overview.md)。 | - 每个UIAbility组件实例创建一个任务。
- 任务会持久化存储,直到超过最大任务个数(根据产品配置自定义)或者用户主动删除任务。
- UIAbility组件之间不会形成栈的结构。
详细介绍请参见[任务管理场景介绍](mission-management-overview.md)。 | diff --git a/zh-cn/application-dev/application-models/data-share-via-want.md b/zh-cn/application-dev/application-models/data-share-via-want.md index 7ae2b4b8c3aa94cda0fadc6c6f8b2d31339e3133..ec4e6012e937474f2e2866dde4ca7af7aee33e0e 100644 --- a/zh-cn/application-dev/application-models/data-share-via-want.md +++ b/zh-cn/application-dev/application-models/data-share-via-want.md @@ -65,7 +65,8 @@ - "ability.picker.fileNames"与"ability.picker.fileSizes"为数组,其有一一对应关系。 例如:当"ability.picker.type"为“application/pdf”,"ability.picker.fileNames"为“["接口文档.pdf"]”,"ability.picker.fileSizes"为“[350 \* 1024]”时,应用选择器将以下形式展示。 - stage-want2 + + ![stage-want2](figures/stage-want2.png) 示例代码中“ability.want.params.INTENT”字段是一个嵌套Want,内部所含action、type等字段将由应用选择器进行隐式匹配,具体隐式匹配规则可参考[隐式Want匹配原理详解](explicit-implicit-want-mappings.md#隐式want匹配原理详解)。当用户选择具体应用后,“ability.want.params.INTENT”字段的嵌套Want将传递至所选应用。 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 ab6878dc57b170c1eac98c6482a497189a0b7765..9634afc64125c334541bac3ae66b5b84ee6f9ade 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 @@ -59,7 +59,9 @@ - 调用方传入的want参数的action不为空,待匹配Ability的skills配置中的actions不为空且不包含调用方传入的want参数的action,则action匹配失败。 - **图1** want参数的action匹配规则  want-action + **图1** want参数的action匹配规则 + + ![want-action](figures/want-action.png) ### want参数的entities匹配规则 @@ -76,16 +78,18 @@ - 调用方传入的want参数的entities不为空,待匹配Ability的skills配置中的entities不为空且不完全包含调用方传入的want参数的entities,则entities匹配失败。 - **图2** want参数的entities匹配规则 -want-entities + **图2** want参数的entities匹配规则 + + ![want-entities](figures/want-entities.png) ### want参数的uri和type匹配规则 调用方传入的want参数中设置uri和type参数发起组件启动请求,系统会遍历当前系统已安装的组件列表,并逐个匹配待匹配Ability的skills配置中的uris数组,如果待匹配Ability的skills配置中的uris数组中只要有一个可以匹配调用方传入的want参数中设置的uri和type即为匹配成功。 - **图3** want参数中uri和type皆不为空时的匹配规则 -want-uri-type1 + **图3** want参数中uri和type皆不为空时的匹配规则 + + ![want-uri-type1](figures/want-uri-type1.png) 实际应用中,uri和type共存在四种情况,下面将讲解四种情况的具体匹配规则: @@ -110,8 +114,9 @@ 下图为了简化描述,称want中传入的uri为w_uri,称want中传入的type为w_type, 待匹配Ability的skills配置中uris为s_uris,其中每个元素为s_uri;按自上而下顺序匹配。 - **图4** want参数中uri和type的具体匹配规则 -want-uri-type2 + **图4** want参数中uri和type的具体匹配规则 + +![want-uri-type2](figures/want-uri-type2.png) ### uri匹配规则 diff --git a/zh-cn/application-dev/application-models/extensionability-overview.md b/zh-cn/application-dev/application-models/extensionability-overview.md index 942341093d87fd1ef66c137c68e079d695eaafe2..4fd8d44846a70422d89c0c7d062e05a4c5c494cc 100644 --- a/zh-cn/application-dev/application-models/extensionability-overview.md +++ b/zh-cn/application-dev/application-models/extensionability-overview.md @@ -31,7 +31,9 @@ ExtensionAbility组件是基于特定场景(例如服务卡片、输入法等 所有类型的ExtensionAbility组件均不能被应用直接启动,而是由相应的系统管理服务拉起,以确保其生命周期受系统管控,使用时拉起,使用完销毁。ExtensionAbility组件的调用方无需关心目标ExtensionAbility组件的生命周期。 以[InputMethodExtensionAbility](../reference/apis/js-apis-inputmethod.md)组件为例进行说明,如下图所示,调用方应用发起对InputMethodExtensionAbility组件的调用,此时将先调用输入法管理服务,由输入法管理服务拉起[InputMethodExtensionAbility](../reference/apis/js-apis-inputmethod.md)组件,返回给调用方,同时开始管理其生命周期。 + **图1** 使用InputMethodExtensionAbility组件 + ![ExtensionAbility-start](figures/ExtensionAbility-start.png) diff --git a/zh-cn/application-dev/application-models/figures/fa-model-component.png b/zh-cn/application-dev/application-models/figures/fa-model-component.png new file mode 100644 index 0000000000000000000000000000000000000000..0c28038326c5475abb3f897c5f7cbe9eb50aec00 Binary files /dev/null and b/zh-cn/application-dev/application-models/figures/fa-model-component.png differ diff --git a/zh-cn/application-dev/application-models/figures/mission-chain3.png b/zh-cn/application-dev/application-models/figures/mission-chain3.png index 1f4cd700f5178b04c439b17bd714cdee8b2b2b96..286da03405409a225c484c56292ae58a75900ac9 100644 Binary files a/zh-cn/application-dev/application-models/figures/mission-chain3.png and b/zh-cn/application-dev/application-models/figures/mission-chain3.png differ diff --git a/zh-cn/application-dev/application-models/figures/stage-model-component.png b/zh-cn/application-dev/application-models/figures/stage-model-component.png new file mode 100644 index 0000000000000000000000000000000000000000..6de8c778aff28cc9c7353270ce8ab4ad0c10fb02 Binary files /dev/null and b/zh-cn/application-dev/application-models/figures/stage-model-component.png differ diff --git a/zh-cn/application-dev/application-models/inter-device-interaction-hop-overview.md b/zh-cn/application-dev/application-models/inter-device-interaction-hop-overview.md index ebed9309715fb41bfda47bf8ff6555dea63c483d..ab47c350f8e422d02da43f1a109cedc3f2d17c45 100644 --- a/zh-cn/application-dev/application-models/inter-device-interaction-hop-overview.md +++ b/zh-cn/application-dev/application-models/inter-device-interaction-hop-overview.md @@ -35,8 +35,9 @@ OpenHarmony流转提供了一组API库,可让用户应用程序更轻松、快 流转架构如下图所示。 - **图1** 流转架构图 -hop-structure + **图1** 流转架构图 + + ![hop-structure](figures/hop-structure.png) - 跨端迁移任务管理:在迁移发起端,接受用户迁移的意图,提供迁移流转入口,迁移结果显示等能力。(该能力尚未构建。) diff --git a/zh-cn/application-dev/application-models/start-page.md b/zh-cn/application-dev/application-models/start-page.md index ff276bf674c61d8af9cf1c8170e5f3f9dad258fe..418a5985ae5831d062d20b30482b3b13b983147a 100644 --- a/zh-cn/application-dev/application-models/start-page.md +++ b/zh-cn/application-dev/application-models/start-page.md @@ -70,7 +70,7 @@ struct Index { ``` -当PageAbility的启动模式设置为标准模式或为首次启动单例模式的PageAbility时(具体设置方法和典型场景示例见[PageAbility的启动模式](pageability-launch-type.md)),在调用方PageAbility中,通过want中的parameters参数传递要启动的指定页面的pages信息,调用startAbility()方法启动PageAbility。被调用方可以在onCreate中使用featrueAbility的getWant方法获取want,再通过调用router.push实现启动指定页面。 +当PageAbility的启动模式设置为标准模式或为首次启动单例模式的PageAbility时(具体设置方法和典型场景示例见[PageAbility的启动模式](pageability-launch-type.md)),在调用方PageAbility中,通过want中的parameters参数传递要启动的指定页面的pages信息,调用startAbility()方法启动PageAbility。被调用方可以在onCreate中使用featureAbility的getWant方法获取want,再通过调用router.push实现启动指定页面。 调用方的页面中实现按钮点击触发startAbility方法启动目标端PageAbility,startAbility方法的入参want中携带指定页面信息,示例代码如下: @@ -119,7 +119,7 @@ struct Index { ``` -目标端PageAbility的onCreate生命周期回调中通过featrueAbility的getWant方法获取want,并对参数进行解析,实现指定页面拉起: +目标端PageAbility的onCreate生命周期回调中通过featureAbility的getWant方法获取want,并对参数进行解析,实现指定页面拉起: ```ts import featureAbility from '@ohos.ability.featureAbility'; 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 b7f3c97e2b976f1ad74591d3c2c39f798efd3ceb..edd0cd1c80f2b139d3c90bfe1aae372d130b64bd 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 @@ -92,7 +92,8 @@ EventHub提供了UIAbility组件/ExtensionAbility组件级别的事件机制, globalThis是ArkTS引擎实例内部的一个全局对象,引擎内部的UIAbility/ExtensionAbility/Page都可以使用,因此可以使用globalThis全局对象进行数据同步。 **图1** 使用globalThis进行数据同步 -globalThis1 + + ![globalThis1](figures/globalThis1.png) 如上图所示,下面从如下三个场景和一个注意点来介绍globalThis的使用: @@ -209,6 +210,7 @@ globalThis为[ArkTS引擎实例](thread-model-stage.md)下的全局对象,可 ### globalThis使用的注意事项 **图2** globalThis注意事项 + ![globalThis2](figures/globalThis2.png) - Stage模型下进程内的UIAbility组件共享ArkTS引擎实例,使用globalThis时需要避免存放相同名称的对象。例如AbilityA和AbilityB可以使用globalThis共享数据,在存放相同名称的对象时,先存放的对象会被后存放的对象覆盖。 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 b1269e79b7b90a9da7d6782ad405ff51182caa76..e4e601703a0d09f219472bbf94aa4ea9f877f344 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 @@ -196,7 +196,8 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 ``` 效果示意如下图所示,点击“打开PDF文档”时,会弹出选择框供用户选择。 - uiability-intra-device-interaction + + ![uiability-intra-device-interaction](figures/uiability-intra-device-interaction.png) 3. 在文档应用使用完成之后,如需要停止当前UIAbility实例,通过调用terminateSelf()方法实现。 @@ -441,8 +442,9 @@ Call调用的使用场景主要包括: Call调用示意图如下所示。 - **图1** Call调用示意图 -call + **图1** Call调用示意图 + + ![call](figures/call.png) - CallerAbility调用startAbilityByCall接口获取Caller,并使用Caller对象的call方法向CalleeAbility发送数据。 diff --git a/zh-cn/application-dev/application-models/uiability-launch-type.md b/zh-cn/application-dev/application-models/uiability-launch-type.md index 3a243f08750269e021c491f1cb1727e9c29d9074..181ebbd249cd898b5d4d46745cb9b79c9161fcf9 100644 --- a/zh-cn/application-dev/application-models/uiability-launch-type.md +++ b/zh-cn/application-dev/application-models/uiability-launch-type.md @@ -17,8 +17,9 @@ singleton启动模式为单实例模式,也是默认情况下的启动模式 每次调用startAbility()方法时,如果应用进程中该类型的UIAbility实例已经存在,则复用系统中的UIAbility实例。系统中只存在唯一一个该UIAbility实例,即在最近任务列表中只存在一个该类型的UIAbility实例。 - **图1** 单实例模式演示效果 -uiability-launch-type1 + **图1** 单实例模式演示效果 + + ![uiability-launch-type1](figures/uiability-launch-type1.png) > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 应用的UIAbility实例已创建,该UIAbility配置为单实例模式,再次调用startAbility()方法启动该UIAbility实例,此时只会进入该UIAbility的[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant)回调,不会进入其onCreate()和onWindowStageCreate()生命周期回调。 @@ -45,8 +46,9 @@ singleton启动模式为单实例模式,也是默认情况下的启动模式 standard启动模式为标准实例模式,每次调用startAbility()方法时,都会在应用进程中创建一个新的该类型UIAbility实例。即在最近任务列表中可以看到有多个该类型的UIAbility实例。这种情况下可以将UIAbility配置为standard(标准实例模式)。 - **图2** 标准实例模式演示效果 -standard-mode + **图2** 标准实例模式演示效果 + + ![standard-mode](figures/standard-mode.png) standard启动模式的开发使用,在[module.json5配置文件](../quick-start/module-configuration-file.md)中的"launchType"字段配置为"standard"即可。 @@ -72,8 +74,9 @@ specified启动模式为指定实例模式,针对一些特殊场景使用( 在UIAbility实例创建之前,允许开发者为该实例创建一个唯一的字符串Key,创建的UIAbility实例绑定Key之后,后续每次调用startAbility()方法时,都会询问应用使用哪个Key对应的UIAbility实例来响应startAbility()请求。运行时由UIAbility内部业务决定是否创建多实例,如果匹配有该UIAbility实例的Key,则直接拉起与之绑定的UIAbility实例,否则创建一个新的UIAbility实例。 - **图3** 指定实例模式演示效果 -uiability-launch-type2 + **图3** 指定实例模式演示效果 + + ![uiability-launch-type2](figures/uiability-launch-type2.png) > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 应用的UIAbility实例已创建,该UIAbility配置为指定实例模式,再次调用startAbility()方法启动该UIAbility实例,且[AbilityStage](abilitystage.md)的[onAcceptWant()](../reference/apis/js-apis-app-ability-abilityStage.md#abilitystageonacceptwant)回调匹配到一个已创建的UIAbility实例。此时,再次启动该UIAbility时,只会进入该UIAbility的[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant)回调,不会进入其onCreate()和onWindowStageCreate()生命周期回调。 diff --git a/zh-cn/application-dev/application-models/uiability-lifecycle.md b/zh-cn/application-dev/application-models/uiability-lifecycle.md index 068b56748aef275ea1b3438911bf75f4a50eabdf..d05dcdf641aa0eff21cbd2d942a251c06481f502 100644 --- a/zh-cn/application-dev/application-models/uiability-lifecycle.md +++ b/zh-cn/application-dev/application-models/uiability-lifecycle.md @@ -7,8 +7,9 @@ UIAbility的生命周期包括Create、Foreground、Background、Destroy四个状态,如下图所示。 - **图1** UIAbility生命周期状态 -Ability-Life-Cycle + **图1** UIAbility生命周期状态 + + ![Ability-Life-Cycle](figures/Ability-Life-Cycle.png) ## 生命周期状态说明 @@ -36,8 +37,9 @@ export default class EntryAbility extends UIAbility { UIAbility实例创建完成之后,在进入Foreground之前,系统会创建一个WindowStage。WindowStage创建完成后会进入onWindowStageCreate()回调,可以在该回调中设置UI界面加载、设置WindowStage的事件订阅。 - **图2** WindowStageCreate和WindowStageDestory状态 -Ability-Life-Cycle-WindowStage + **图2** WindowStageCreate和WindowStageDestory状态 + + ![Ability-Life-Cycle-WindowStage](figures/Ability-Life-Cycle-WindowStage.png) 在onWindowStageCreate()回调中通过loadContent()方法设置应用要加载的页面并根据需要订阅WindowStage的[事件](../reference/apis/js-apis-window.md#windowstageeventtype9)(获焦/失焦、可见/不可见)。 diff --git a/zh-cn/application-dev/application-models/uiability-overview.md b/zh-cn/application-dev/application-models/uiability-overview.md index c14f0dc4c4a00e45c54a85a8082f607ee58201de..4660e915a5adeb0162a10362ee6cc8868c810850 100644 --- a/zh-cn/application-dev/application-models/uiability-overview.md +++ b/zh-cn/application-dev/application-models/uiability-overview.md @@ -32,6 +32,3 @@ UIAbility组件是系统调度的基本单元,为应用提供绘制界面的 } } ``` - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> Ability的组成请参见在[模块中添加Ability](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ohos-adding-ability-0000001218280664-V3)。 diff --git a/zh-cn/application-dev/application-models/want-overview.md b/zh-cn/application-dev/application-models/want-overview.md index 6fae778dd8951cb648d0f4cb00612d3a136941d8..9162336c8578dead65e5c6bfa74ddead3e636061 100644 --- a/zh-cn/application-dev/application-models/want-overview.md +++ b/zh-cn/application-dev/application-models/want-overview.md @@ -5,9 +5,9 @@ [Want](../reference/apis/js-apis-app-ability-want.md)是对象间信息传递的载体,可以用于应用组件间的信息传递。其使用场景之一是作为startAbility()的参数,包含了指定的启动目标以及启动时需携带的相关数据,如bundleName和abilityName字段分别指明目标Ability所在应用的包名以及对应包内的Ability名称。当UIAbilityA启动UIAbilityB并需要传入一些数据给UIAbilityB时,Want可以作为一个载体将数据传给UIAbilityB。 - **图1** Want用法示意 -usage-of-want + **图1** Want用法示意 + ![usage-of-want](figures/usage-of-want.png) ## Want的类型 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/database/database-datashare-guidelines.md b/zh-cn/application-dev/database/database-datashare-guidelines.md index 80618733f876643953f3a6d41e4c4481e077e4fa..0c8242f7e763a85c336aefcc303a73ed538883b0 100644 --- a/zh-cn/application-dev/database/database-datashare-guidelines.md +++ b/zh-cn/application-dev/database/database-datashare-guidelines.md @@ -133,7 +133,7 @@ DataShare即数据共享模块,提供了向其他应用共享以及管理其 1. 导入基础依赖包。 ```ts - import Ability from '@ohos.application.Ability'; + import UIAbility from '@ohos.app.ability.UIAbility'; import dataShare from '@ohos.data.dataShare'; import dataSharePredicates from '@ohos.data.dataSharePredicates'; ``` @@ -151,7 +151,7 @@ DataShare即数据共享模块,提供了向其他应用共享以及管理其 let dsHelper; let abilityContext; - export default class MainAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { abilityContext = this.context; dataShare.createDataShareHelper(abilityContext, dseUri, (err, data)=>{ diff --git a/zh-cn/application-dev/database/database-mdds-guidelines.md b/zh-cn/application-dev/database/database-mdds-guidelines.md index 5739c6454cb37a084e75efe27f0dfcb3f88728b6..25132df1c0d39a98b3656ac8ab4af59926fa4ae8 100644 --- a/zh-cn/application-dev/database/database-mdds-guidelines.md +++ b/zh-cn/application-dev/database/database-mdds-guidelines.md @@ -68,11 +68,11 @@ grantPermission(); // Stage模型 - import AbilityStage from '@ohos.application.Ability'; + import UIAbility from '@ohos.app.ability.UIAbility'; let context = null; - class MainAbility extends AbilityStage { + class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { let context = this.context; } @@ -103,9 +103,9 @@ let context = featureAbility.getContext(); // Stage模型获取context - import AbilityStage from '@ohos.application.Ability'; + import UIAbility from '@ohos.app.ability.UIAbility'; let context = null; - class MainAbility extends AbilityStage{ + class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } diff --git a/zh-cn/application-dev/database/database-preference-guidelines.md b/zh-cn/application-dev/database/database-preference-guidelines.md index 32584c975dd0ff29d479478bd08672abe4742751..9df95313b16ae4247f4c149fc170f66ee90713d5 100644 --- a/zh-cn/application-dev/database/database-preference-guidelines.md +++ b/zh-cn/application-dev/database/database-preference-guidelines.md @@ -113,10 +113,10 @@ ```ts // 获取context - import Ability from '@ohos.application.Ability' + import UIAbility from '@ohos.app.ability.UIAbility' let context = null; let preferences = null; - export default class MainAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } diff --git a/zh-cn/application-dev/database/database-relational-guidelines.md b/zh-cn/application-dev/database/database-relational-guidelines.md index 7c2cb97f3eab54bb3e8db5f746d32ab408474306..150ef3b831a2d67214e9f815f81716d5bdf5ba90 100644 --- a/zh-cn/application-dev/database/database-relational-guidelines.md +++ b/zh-cn/application-dev/database/database-relational-guidelines.md @@ -7,7 +7,7 @@ ## 接口说明 -以下是关系型数据库的常用接口说明,大部分为异步接口。异步接口均有callback和Promise两种返回形式,下表均以Promise形式为例,更多接口及使用方式请见[关系型数据库](../reference/apis/js-apis-data-rdb.md)。 +以下是关系型数据库的常用接口说明,大部分为异步接口。异步接口均有callback和Promise两种返回形式,下表均以Promise形式为例,更多接口及使用方式请见[关系型数据库](../reference/apis/js-apis-data-relationalStore.md)。 ### 数据库的创建和删除 @@ -17,8 +17,8 @@ | 接口名 | 描述 | | ------------------------------------------------------------ | ------------------------------------------------------------ | -| getRdbStoreV9(context: Context, config: StoreConfigV9, version: number): Promise<RdbStoreV9> | 获得一个相关的RdbStoreV9,操作关系型数据库,用户可以根据自己的需求配置RdbStoreV9的参数,然后通过RdbStoreV9调用相关接口可以执行相关的数据操作,使用Promise异步回调。
-context:应用程序或功能的上下文。
-config:与此RDB存储相关的数据库配置。
-version:数据库版本。目前暂不支持通过version自动识别数据库升级降级操作,只能由开发者自行维护。 | -| deleteRdbStoreV9(context: Context, name: string): Promise<void> | 使用指定的数据库文件配置删除数据库,使用Promise异步回调。
-context:应用程序或功能的上下文。
-name:数据库名称。 | +| getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore> | 获得一个相关的RdbStore,操作关系型数据库,用户可以根据自己的需求配置RdbStore的参数,然后通过RdbStore调用相关接口可以执行相关的数据操作,使用Promise异步回调。
-context:应用上下文。
-config:与此RDB存储相关的数据库配置。 | +| deleteRdbStore(context: Context, name: string): Promise<void> | 使用指定的数据库文件配置删除数据库,使用Promise异步回调。
-context:应用上下文。
-name:数据库名称。 | ### 数据库的增删改查 @@ -33,29 +33,29 @@ | 类名 | 接口名 | 描述 | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | - | RdbStoreV9 | insert(table: string, values: ValuesBucket): Promise<number> | 向目标表中插入一行数据,使用Promise异步回调。
如果操作成功,返回行ID;否则返回-1。
-table:指定的目标表名。
-values:表示要插入到表中的数据行。 | + | RdbStore | insert(table: string, values: ValuesBucket): Promise<number> | 向目标表中插入一行数据,使用Promise异步回调。
如果操作成功,返回行ID;否则返回-1。
-table:指定的目标表名。
-values:表示要插入到表中的数据行。 | - **更新** - 调用更新接口,传入要更新的数据,并通过RdbPredicatesV9指定更新条件。该接口的返回值表示更新操作影响的行数。如果更新失败,则返回0。 + 调用更新接口,传入要更新的数据,并通过RdbPredicates指定更新条件。该接口的返回值表示更新操作影响的行数。如果更新失败,则返回0。 **表3** 数据库更新API | 类名 | 接口名 | 描述 | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | - | RdbStoreV9 | update(values: ValuesBucket, predicates: RdbPredicatesV9): Promise<number> | 根据RdbPredicatesV9的指定实例对象更新数据库中的数据,使用Promise异步回调。
返回受影响的行数。
-values:以ValuesBucket存储的要更新的数据。
-predicates:表示RdbPredicatesV9的实例对象指定的更新条件。 | + | RdbStore | update(values: ValuesBucket, predicates: RdbPredicates): Promise<number> | 根据RdbPredicates的指定实例对象更新数据库中的数据,使用Promise异步回调。
返回受影响的行数。
-values:以ValuesBucket存储的要更新的数据。
-predicates:表示RdbPredicates的实例对象指定的更新条件。 | - **删除** - 调用删除接口,通过RdbPredicatesV9指定删除条件。该接口的返回值表示删除的数据行数,可根据此值判断是否删除成功。如果删除失败,则返回0。 + 调用删除接口,通过RdbPredicates指定删除条件。该接口的返回值表示删除的数据行数,可根据此值判断是否删除成功。如果删除失败,则返回0。 **表4** 数据库删除API | 类名 | 接口名 | 描述 | | ---------- | ---------------------------------------------------------- | ------------------------------------------------------------ | - | RdbStoreV9 | delete(predicates: RdbPredicatesV9): Promise<number> | 根据RdbPredicatesV9的指定实例对象从数据库中删除数据,使用Promise异步回调。
返回受影响的行数。
-predicates:RdbPredicatesV9的实例对象指定的删除条件。 | + | RdbStore | delete(predicates: RdbPredicates): Promise<number> | 根据RdbPredicates的指定实例对象从数据库中删除数据,使用Promise异步回调。
返回受影响的行数。
-predicates:RdbPredicates的实例对象指定的删除条件。 | - **查询** @@ -66,35 +66,34 @@ **表5** 数据库查询API - -| 类名 | 接口名 | 描述 | -| ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbStoreV9 | query(predicates: RdbPredicatesV9, columns?: Array<string>): Promise<ResultSetV9> | 根据指定条件查询数据库中的数据,使用Promise异步回调。
-predicates:表示RdbPredicatesV9的实例对象指定的查询条件。
-columns:表示要查询的列。如果值为空,则查询应用于所有列。 | -| RdbStoreV9 | querySql(sql: string, bindArgs?: Array<ValueType>): Promise<ResultSetV9> | 根据指定SQL语句查询数据库中的数据,使用Promise异步回调。
-sql:指定要查询的SQL语句。
-bindArgs:SQL语句中参数的值。 | -| RdbStoreV9 | remoteQuery(device: string, table: string, predicates: RdbPredicatesV9, columns: Array<string>): Promise<ResultSetV9> | 根据指定条件查询指定远程设备数据库中的数据。使用Promise异步回调。
-device:指定远程查询的设备networkId。
-table:指定远程查询的表名。
-predicates:表示RdbPredicatesV9的实例对象,指定查询的条件。
-columns:表示要查询的列。如果值为空,则查询应用于所有列。 | + | 类名 | 接口名 | 描述 | + | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | + | RdbStore | query(predicates: RdbPredicates, columns?: Array<string>): Promise<ResultSet> | 根据指定条件查询数据库中的数据,使用Promise异步回调。
-predicates:表示RdbPredicates的实例对象指定的查询条件。
-columns:表示要查询的列。如果值为空,则查询应用于所有列。 | + | RdbStore | querySql(sql: string, bindArgs?: Array<ValueType>): Promise<ResultSet> | 根据指定SQL语句查询数据库中的数据,使用Promise异步回调。
-sql:指定要查询的SQL语句。
-bindArgs:SQL语句中参数的值。 | + | RdbStore | remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: Array<string>): Promise<ResultSet> | 根据指定条件查询指定远程设备数据库中的数据。使用Promise异步回调。
-device:指定远程查询的设备networkId。
-table:指定远程查询的表名。
-predicates:表示RdbPredicates的实例对象,指定查询的条件。
-columns:表示要查询的列。如果值为空,则查询应用于所有列。 | ### 数据库谓词的使用 -关系型数据库提供了用于设置数据库操作条件的谓词RdbPredicatesV9,该类确定RDB中条件表达式的值是true还是false。 +关系型数据库提供了用于设置数据库操作条件的谓词RdbPredicates,该类确定RDB中条件表达式的值是true还是false。 -以下列举几个常用谓词,更多谓词的使用请见[关系型数据库谓词](../reference/apis/js-apis-data-rdb.md#rdbpredicates)。 +以下列举几个常用谓词,更多谓词的使用请见[关系型数据库谓词](../reference/apis/js-apis-data-relationalStore.md#rdbpredicates)。 **表6** 数据库谓词API | 类名 | 接口名 | 描述 | | --------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbPredicatesV9 | equalTo(field: string, value: ValueType): RdbPredicatesV9 | 配置谓词以匹配数据字段为ValueType且值等于指定值的字段。
-field:数据库表中的列名。
-value:指示要与谓词匹配的值。
-RdbPredicatesV9:返回与指定字段匹配的谓词。 | -| RdbPredicatesV9 | notEqualTo(field: string, value: ValueType): RdbPredicatesV9 | 配置谓词以匹配数据字段为ValueType且值不等于指定值的字段。
-field:数据库表中的列名。
-value:指示要与谓词匹配的值。
-RdbPredicatesV9:返回与指定字段匹配的谓词。 | -| RdbPredicatesV9 | or(): RdbPredicatesV9 | 将或条件添加到谓词中。
-RdbPredicatesV9:返回带有或条件的谓词。 | -| RdbPredicatesV9 | and(): RdbPredicatesV9 | 向谓词添加和条件。
-RdbPredicatesV9:返回带有和条件的谓词。 | -| RdbPredicatesV9 | contains(field: string, value: string): RdbPredicatesV9 | 配置谓词以匹配数据字段为String且value包含指定值的字段。
-field:数据库表中的列名。
-value:指示要与谓词匹配的值。
-RdbPredicatesV9:返回带有包含条件的谓词。 | +| RdbPredicates | equalTo(field: string, value: ValueType): RdbPredicates | 配置谓词以匹配数据字段为ValueType且值等于指定值的字段。
-field:数据库表中的列名。
-value:指示要与谓词匹配的值。
-RdbPredicates:返回与指定字段匹配的谓词。 | +| RdbPredicates | notEqualTo(field: string, value: ValueType): RdbPredicates | 配置谓词以匹配数据字段为ValueType且值不等于指定值的字段。
-field:数据库表中的列名。
-value:指示要与谓词匹配的值。
-RdbPredicates:返回与指定字段匹配的谓词。 | +| RdbPredicates | or(): RdbPredicates | 将或条件添加到谓词中。
-RdbPredicates:返回带有或条件的谓词。 | +| RdbPredicates | and(): RdbPredicates | 向谓词添加和条件。
-RdbPredicates:返回带有和条件的谓词。 | +| RdbPredicates | contains(field: string, value: string): RdbPredicates | 配置谓词以匹配数据字段为String且value包含指定值的字段。
-field:数据库表中的列名。
-value:指示要与谓词匹配的值。
-RdbPredicates:返回带有包含条件的谓词。 | ### 查询结果集的使用 -关系型数据库提供了查询返回的结果集ResultSetV9,其指向查询结果中的一行数据,供用户对查询结果进行遍历和访问。 +关系型数据库提供了查询返回的结果集ResultSet,其指向查询结果中的一行数据,供用户对查询结果进行遍历和访问。 -更多结果集的接口使用,请见[结果集](../reference/apis/js-apis-data-resultset.md)。 +更多结果集的接口使用,请见[结果集](../reference/apis/js-apis-data-relationalStore.md#resultset)。 > **须知:** > **结果集使用完后,请一定要调用close方法显式关闭。** @@ -103,12 +102,12 @@ | 类名 | 接口名 | 描述 | | ----------- | ---------------------------------------- | ------------------------------------------ | -| ResultSetV9 | goToFirstRow(): boolean | 将结果集移动到第一行。 | -| ResultSetV9 | getString(columnIndex: number): string | 获取当前行指定列的值,以String类型返回。 | -| ResultSetV9 | getBlob(columnIndex: number): Uint8Array | 获取当前行指定列的值,以字节数组形式返回。 | -| ResultSetV9 | getDouble(columnIndex: number): number | 获取当前行指定列的值,以double型返回。 | -| ResultSetV9 | getLong(columnIndex: number): number | 获取当前行指定列的值,以Long形式返回。 | -| ResultSetV9 | close(): void | 关闭结果集。 | +| ResultSet | goToFirstRow(): boolean | 将结果集移动到第一行。 | +| ResultSet | getString(columnIndex: number): string | 获取当前行指定列的值,以String类型返回。 | +| ResultSet | getBlob(columnIndex: number): Uint8Array | 获取当前行指定列的值,以字节数组形式返回。 | +| ResultSet | getDouble(columnIndex: number): number | 获取当前行指定列的值,以double型返回。 | +| ResultSet | getLong(columnIndex: number): number | 获取当前行指定列的值,以Long形式返回。 | +| ResultSet | close(): void | 关闭结果集。 | @@ -116,7 +115,7 @@ > **说明:** > -> - 在使用RdbStoreV9的setDistributedTables、obtainDistributedTableName、sync、on、off接口时,需要请求相应的权限:ohos.permission.DISTRIBUTED_DATASYNC。 +> - 在使用RdbStore的setDistributedTables、obtainDistributedTableName、sync、on、off接口时,需要请求相应的权限:ohos.permission.DISTRIBUTED_DATASYNC。 > - 使用分布式列表前,需要先建立设备间组网,具体接口及使用可见[设备管理](../reference/apis/js-apis-device-manager.md)。 **设置分布式列表** @@ -125,7 +124,7 @@ | 类名 | 接口名 | 描述 | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbStoreV9 | setDistributedTables(tables: Array\): Promise\ | 设置分布式列表,使用Promise异步回调。
-tables:要设置的分布式列表表名。 | +| RdbStore | setDistributedTables(tables: Array\): Promise\ | 设置分布式列表,使用Promise异步回调。
-tables:要设置的分布式列表表名。 | **根据本地表名获取指定远程设备的分布式表名** @@ -135,7 +134,7 @@ | 类名 | 接口名 | 描述 | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbStoreV9 | obtainDistributedTableName(device: string, table: string): Promise\ | 根据本地表名获取指定远程设备的分布式表名。在查询远程设备数据库时,需要使用分布式表名,使用Promise异步回调。
-device:远程设备。
-table:本地表名。 | +| RdbStore | obtainDistributedTableName(device: string, table: string): Promise\ | 根据本地表名获取指定远程设备的分布式表名。在查询远程设备数据库时,需要使用分布式表名,使用Promise异步回调。
-device:远程设备。
-table:本地表名。 | **在设备之间同步数据** @@ -143,7 +142,7 @@ | 类名 | 接口名 | 描述 | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbStoreV9 | sync(mode: SyncMode, predicates: RdbPredicatesV9): Promise\> | 在设备之间同步数据,使用Promise异步回调。
-mode:指同步模式。SYNC_MODE_PUSH 表示数据从本地设备推送到远程设备;SYNC_MODE_PULL 表示数据从远程设备拉至本地设备。
-predicates:约束同步数据和设备。
-string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 | +| RdbStore | sync(mode: SyncMode, predicates: RdbPredicates): Promise\> | 在设备之间同步数据,使用Promise异步回调。
-mode:指同步模式。SYNC_MODE_PUSH 表示数据从本地设备推送到远程设备;SYNC_MODE_PULL 表示数据从远程设备拉至本地设备。
-predicates:约束同步数据和设备。
-string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 | **注册数据库的观察者** @@ -151,7 +150,7 @@ | 类名 | 接口名 | 描述 | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbStoreV9 | on(event: 'dataChange', type: SubscribeType, observer: Callback\>): void | 注册数据库的观察者。当分布式数据库中的数据发生更改时,将调用回调。
-type:订阅类型;SUBSCRIBE_TYPE_REMOTE 订阅远程数据更改。
-observer:指分布式数据库中数据更改事件的观察者。 | +| RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback\>): void | 注册数据库的观察者。当分布式数据库中的数据发生更改时,将调用回调。
-type:订阅类型;SUBSCRIBE_TYPE_REMOTE 订阅远程数据更改。
-observer:指分布式数据库中数据更改事件的观察者。 | **从数据库中删除指定类型的指定观察者** @@ -159,7 +158,7 @@ | 类名 | 接口名 | 描述 | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbStoreV9 | off(event:'dataChange', type: SubscribeType, observer: Callback\>): void; | 从数据库中删除指定类型的指定观察者,使用callback异步回调。
-type:订阅类型;SUBSCRIBE_TYPE_REMOTE 订阅远程数据更改。
-observer:指已注册的数据更改观察者。 | +| RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback\>): void; | 从数据库中删除指定类型的指定观察者,使用callback异步回调。
-type:订阅类型;SUBSCRIBE_TYPE_REMOTE 订阅远程数据更改。
-observer:指已注册的数据更改观察者。 | ### 数据库的备份和恢复 @@ -169,7 +168,7 @@ | 类名 | 接口名 | 描述 | | ---------- | --------------------------------------------- | ------------------------------------------------------------ | -| RdbStoreV9 | backup(destName: string): Promise<void> | 以指定名称备份数据库,使用Promise异步回调。
-destName:指定数据库的备份文件名。 | +| RdbStore | backup(destName: string): Promise<void> | 以指定名称备份数据库,使用Promise异步回调。
-destName:指定数据库的备份文件名。 | **恢复** @@ -177,17 +176,17 @@ | 类名 | 接口名 | 描述 | | ---------- | --------------------------------------------- | ------------------------------------------------------------ | -| RdbStoreV9 | restore(srcName: string): Promise<void> | 从指定的数据库备份文件恢复数据库,使用Promise异步回调。
-srcName:指定数据库的备份文件名。 | +| RdbStore | restore(srcName: string): Promise<void> | 从指定的数据库备份文件恢复数据库,使用Promise异步回调。
-srcName:指定数据库的备份文件名。 | -**事务** +### 事务 **表15** 事务 | 类名 | 接口名 | 描述 | | -------- | ----------------------- | --------------------------------- | -| RdbStoreV9 | beginTransaction(): void | 在开始执行SQL语句之前,开始事务。 | -| RdbStoreV9 | commit(): void | 提交已执行的SQL语句。 | -| RdbStoreV9 | rollBack(): void | 回滚已经执行的SQL语句。 | +| RdbStore | beginTransaction(): void | 在开始执行SQL语句之前,开始事务。 | +| RdbStore | commit(): void | 提交已执行的SQL语句。 | +| RdbStore | rollBack(): void | 回滚已经执行的SQL语句。 | ## 开发步骤 @@ -202,40 +201,51 @@ FA模型示例: ```js - import data_rdb from '@ohos.data.rdb' - // 获取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; + + // 获取context + let context = featureAbility.getContext(); - const STORE_CONFIGV9 = { name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1} - data_rdb.getRdbStoreV9(context, STORE_CONFIGV9, 1, function (err, rdbStoreV9) { - rdbStoreV9.executeSql(CREATE_TABLE_TEST) - console.info('create table done.') + const STORE_CONFIG = { + 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 - import data_rdb from '@ohos.data.rdb' - // 获取context - import Ability from '@ohos.application.Ability' - let context = null - class MainAbility extends Ability { + 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 + }; + + 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.`); + }) } } - - 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_CONFIGV9 = { name: "rdbstore.db", - securityLevel: data_rdb.SecurityLevel.S1} - data_rdb.getRdbStoreV9(context, STORE_CONFIGV9, 1, function (err, rdbStoreV9) { - rdbStoreV9.executeSql(CREATE_TABLE_TEST) - console.info('create table done.') - }) ``` 2. 插入数据。 @@ -247,9 +257,25 @@ 示例代码如下: ```js - var u8 = new Uint8Array([1, 2, 3]) - const valueBucket = { "name": "Tom", "age": 18, "salary": 100.5, "blobType": u8 } - let insertPromise = rdbStoreV9.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 + //使用事务插入数据 + try { + 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(); + } ``` 3. 查询数据。 @@ -263,17 +289,17 @@ 示例代码如下: ```js - let predicatesV9 = new data_rdb.RdbPredicatesV9("test"); - predicatesV9.equalTo("name", "Tom") - let promisequery = rdbStoreV9.query(predicatesV9) - promisequery.then((resultSetV9) => { - resultSetV9.goToFirstRow() - const id = resultSetV9.getLong(resultSetV9.getColumnIndex("id")) - const name = resultSetV9.getString(resultSetV9.getColumnIndex("name")) - const age = resultSetV9.getLong(resultSetV9.getColumnIndex("age")) - const salary = resultSetV9.getDouble(resultSetV9.getColumnIndex("salary")) - const blobType = resultSetV9.getBlob(resultSetV9.getColumnIndex("blobType")) - resultSetV9.close() + 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(); }) ``` @@ -283,9 +309,9 @@ ```json "requestPermissions": - { - "name": "ohos.permission.DISTRIBUTED_DATASYNC" - } + { + "name": "ohos.permission.DISTRIBUTED_DATASYNC" + } ``` (2) 获取应用权限。 @@ -299,13 +325,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 = rdbStoreV9.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}`); }) ``` @@ -320,16 +346,16 @@ 示例代码如下: ```js - let predicateV9 = new data_rdb.RdbPredicatesV9('test') - predicateV9.inDevices(['12345678abcde']) - let promise = rdbStoreV9.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicateV9) + 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}`); }) ``` @@ -343,15 +369,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= ${devices[i]} data changed`); + } } - + try { - rdbStoreV9.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}`); } ``` @@ -364,62 +390,78 @@ 示例代码如下: ```js - let tableName = rdbStoreV9.obtainDistributedTableName(deviceId, "test"); - let resultSetV9 = rdbStoreV9.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 rdbPredicateV9 = new data_rdb.RdbPredicatesV9('employee') - predicatesV9.greaterThan("id", 0) - let promiseQuery = rdbStoreV9.remoteQuery('12345678abcde', 'employee', rdbPredicateV9) - promiseQuery.then((resultSetV9) => { - while (resultSetV9.goToNextRow()) { - let idx = resultSetV9.getLong(0); - let name = resultSetV9.getString(1); - let age = resultSetV9.getLong(2); - console.info(idx + " " + name + " " + age); - } - resultSetV9.close(); + + ```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(`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 = rdbStoreV9.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 = rdbStoreV9.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}`); }) - ``` + ``` ## 相关实例 针对关系型数据库开发,有以下相关实例可供参考: diff --git a/zh-cn/application-dev/device/Readme-CN.md b/zh-cn/application-dev/device/Readme-CN.md index 3639b281c4a9421c0f62f9b26d912842eaf6b553..574249da0fb47126ea8b52ccd09e8a2849fad73b 100644 --- a/zh-cn/application-dev/device/Readme-CN.md +++ b/zh-cn/application-dev/device/Readme-CN.md @@ -19,3 +19,5 @@ - 升级服务 - [示例服务器开发概述](sample-server-overview.md) - [示例服务器开发指导](sample-server-guidelines.md) +- 设备状态 + - [设备状态开发指导](stationary-guidelines.md) 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/Readme-CN.md b/zh-cn/application-dev/dfx/Readme-CN.md index 19cc3f983d8db3d4c3c294c88fa238e9c77620f3..85e8d877090528a7083c5e0af637631ad3700c90 100644 --- a/zh-cn/application-dev/dfx/Readme-CN.md +++ b/zh-cn/application-dev/dfx/Readme-CN.md @@ -1,11 +1,8 @@ # DFX -- 应用事件打点 - - [应用事件打点开发指导](hiappevent-guidelines.md) -- 性能打点跟踪 - - [性能打点跟踪开发指导](hitracemeter-guidelines.md) -- 分布式跟踪 - - [分布式跟踪开发指导](hitracechain-guidelines.md) +- [应用事件打点开发指导](hiappevent-guidelines.md) +- [性能打点跟踪开发指导](hitracemeter-guidelines.md) +- [分布式跟踪开发指导](hitracechain-guidelines.md) - 错误管理 - [错误管理开发指导](errormanager-guidelines.md) - [应用恢复开发指导](apprecovery-guidelines.md) \ No newline at end of file diff --git a/zh-cn/application-dev/dfx/apprecovery-guidelines.md b/zh-cn/application-dev/dfx/apprecovery-guidelines.md index 515bb3e23c3fcf646e6fe3de63f00509460ae3f8..b7e0d4fedbdc0a2c3a43c9b8e5b1bb7dd8f3e58b 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。 -### 框架故障管理理流程示意 +### 框架故障管理流程示意 故障管理是应用提升用户体验的重要手段。应用程序框架为开发者提供了故障监听、故障恢复、以及故障查询三种方式来管理应用的故障。 @@ -133,7 +133,7 @@ callback触发appRecovery.saveAppState()调用后,会触发MainAbility的onSav - 数据恢复 -callback触发后appRecovery.restartApp()调用后,应用会重启,重启后会走到MainAbility的onSaveState(state, wantParams)函数,保存的数据会在want参数的parameters里。 +callback触发后appRecovery.restartApp()调用后,应用会重启,重启后会走到MainAbility的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 c93a73b14c35d9cfdab8b0081d6890f6889705c3..71d028e47de71f6eaf353cabc6382fea2e673843 100644 --- a/zh-cn/application-dev/dfx/errormanager-guidelines.md +++ b/zh-cn/application-dev/dfx/errormanager-guidelines.md @@ -12,9 +12,9 @@ | 接口名称 | 说明 | | ------------------------------------------------------------ | ---------------------------------------------------- | -| registerErrorObserver(observer: ErrorObserver): number | 注册错误监听接口,当系统监测到应用异常时会回调该监听。该接口为同步接口,返回值为注册的监听对象对应的序号。 | -| unregisterErrorObserver(observerId: number, callback: AsyncCallback\): void | 以callback的形式解除注册监听,传入的number为之前注册监听时返回的序号。 | -| unregisterErrorObserver(observerId: number): Promise\ | 以Promise的形式解除注册监听,传入的number为之前注册监听时返回的序号。 | +| on(type: "error", observer: ErrorObserver): number | 注册错误监听接口,当系统监测到应用异常时会回调该监听。该接口为同步接口,返回值为注册的监听对象对应的序号。 | +| off(type: "error", observerId: number, callback: AsyncCallback\): void | 以callback的形式解除注册监听,传入的number为之前注册监听时返回的序号。 | +| off(type: "error", observerId: number): Promise\ | 以Promise的形式解除注册监听,传入的number为之前注册监听时返回的序号。 | 当采用callback作为异步回调时,可以在callback中进行下一步处理。当采用Promise对象返回时,可以在Promise对象中类似地处理接口返回值。具体结果码说明见[解除注册结果码](#解除注册结果码)。 @@ -36,33 +36,33 @@ ## 开发示例 ```ts -import Ability from '@ohos.application.Ability' -import errorManager from '@ohos.application.errorManager' +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); } } -export default class MainAbility extends Ability { +export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { - console.log("[Demo] MainAbility onCreate") - registerId = errorManager.registerErrorObserver(callback); + console.log("[Demo] EntryAbility onCreate") + registerId = errorManager.on("error", callback); globalThis.abilityWant = want; } onDestroy() { - console.log("[Demo] MainAbility onDestroy") - errorManager.unregisterErrorObserver(registerId, (result) => { + console.log("[Demo] EntryAbility onDestroy") + errorManager.off("error", registerId, (result) => { console.log("[Demo] result " + result.code + ";" + result.message) }); } onWindowStageCreate(windowStage) { // Main window is created, set main page for this ability - console.log("[Demo] MainAbility onWindowStageCreate") + console.log("[Demo] EntryAbility onWindowStageCreate") windowStage.loadContent("pages/index", (err, data) => { if (err.code) { @@ -75,17 +75,17 @@ export default class MainAbility extends Ability { onWindowStageDestroy() { // Main window is destroyed, release UI related resources - console.log("[Demo] MainAbility onWindowStageDestroy") + console.log("[Demo] EntryAbility onWindowStageDestroy") } onForeground() { // Ability has brought to foreground - console.log("[Demo] MainAbility onForeground") + console.log("[Demo] EntryAbility onForeground") } onBackground() { // Ability has back to background - console.log("[Demo] MainAbility onBackground") + console.log("[Demo] EntryAbility onBackground") } }; ``` \ No newline at end of file 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 967042fece2dffc5aae2f503f9f6e2c388579322..64dd3e91f9a1c955d8c1786d1378c8f6c5527281 100644 --- a/zh-cn/application-dev/file-management/medialibrary-overview.md +++ b/zh-cn/application-dev/file-management/medialibrary-overview.md @@ -107,21 +107,21 @@ let media = mediaLibrary.getMediaLibrary(context); ```ts import UIAbility from '@ohos.app.ability.UIAbility'; import abilityAccessCtrl, {Permissions} from '@ohos.abilityAccessCtrl'; - - export default class MainAbility extends Ability { - 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)); - } - }); - } - } + + 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.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/internationalization/i18n-guidelines.md b/zh-cn/application-dev/internationalization/i18n-guidelines.md index 9acfe8de2220a069378d08e2373a3cc03b5cd861..1eac90eb1b842013fd6bfcf3699792e751dacb64 100644 --- a/zh-cn/application-dev/internationalization/i18n-guidelines.md +++ b/zh-cn/application-dev/internationalization/i18n-guidelines.md @@ -4,176 +4,299 @@ [Intl](intl-guidelines.md)模块提供了ECMA 402标准定义的基础国际化接口,与本模块共同使用可提供完整地国际化支持能力。 -## 获取系统语言区域信息 +## 获取和设置系统国际化相关信息 -调用系统提供的接口访问系统的语言区域信息。 +调用接口访问和设置系统语言、偏好语言、地区、24小时制、本地数字等国际化信息。 ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | --------- | ---------------------------------------- | --------------------- | -| ohos.i18n | getSystemLanguage():string | 获取系统语言。 | -| ohos.i18n | getSystemRegion():string | 获取系统区域。 | -| ohos.i18n | getSystemLocale():string | 获取系统Locale。 | -| ohos.i18n | isRTL(locale:string):boolean7+ | locale对应的语言是否为从右到左语言。 | -| ohos.i18n | is24HourClock():boolean7+ | 获取当前系统时间是否采用24小时制。 | -| ohos.i18n | getDisplayLanguage(language:string,locale:string,sentenceCase?:boolean):string | 获取语言的本地化表示。 | -| ohos.i18n | getDisplayCountry(country:string,locale:string,sentenceCase?:boolean):string | 获取国家的本地化表示。 | +| System | getDisplayCountry(country:string,locale:string,sentenceCase?:boolean):string9+ | 获取国家的本地化表示。 | +| System | getDisplayLanguage(language:string,locale:string,sentenceCase?:boolean):string9+ | 获取语言的本地化表示。 | +| System | getSystemLanguages():Array9+ | 获取系统语言列表。 | +| System | getSystemCountries(language: string):Array9+ | 获取针对输入语言系统支持的国家或地区列表。 | +| System | isSuggested(language: string, region?: string): boolean9+ | 判断当前语言和地区是否匹配 | +| System | getSystemLanguage():string9+ | 获取系统语言。 | +| System | setSystemLanguage(language: string)9+ | 设置系统语言。 | +| System | getSystemRegion():string9+ | 获取系统地区。 | +| System | setSystemRegion(region: string)9+ | 设置系统地区。 | +| System | getSystemLocale():string9+ | 获取系统Locale。 | +| System | setSystemLocale(locale: string)9+ | 设置系统Locale。 | +| System | is24HourClock():boolean9+ | 判断系统时间是否为24小时制。 | +| System | set24HourClock():boolean9+ | 修改系统时间的24小时制设置。 | +| System | addPreferredLanguage(language: string, index?: number)9+ | 在系统偏好语言列表的指定位置添加偏好语言。 | +| System | removePreferredLanguage(index: number)9+ | 删除系统偏好语言列表中指定位置的偏好语言。 | +| System | getPreferredLanguageList()9+ | 获取系统偏好语言列表。 | +| System | getFirstPreferredLanguage()9+ | 获取系统偏好语言列表中的第一个偏好语言。 | +| System | getAppPreferredLanguage()9+ | 获取应用偏好语言。 | +| System | setUsingLocalDigit(flag: boolean)9+ | 设置系统是否使用本地数字。 | +| System | getUsingLocalDigit()9+ | 判断系统是否使用本地数字。 | +| | isRTL(locale:string):boolean9+ | locale对应的语言是否为从右到左语言。 | ### 开发步骤 +1. 导入I18n模块。 -1. 获取系统语言。 + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 获取和设置系统语言。 + + 调用setSystemLanguage接口设置系统语言(该接口为系统接口,只有具有UPDATE_CONFIGURATION权限的系统应用可以调用)。 + 调用getSystemLanguage接口获取系统语言。 + + ```js + try { + I18n.System.setSystemLanguage("en"); // 将系统语言设置为 "en" + let language = I18n.System.getSystemLanguage(); // language = "en" + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } + ``` - 调用getSystemLanguage方法获取当前系统设置的语言(i18n为导入的模块)。 +3. 获取和设置系统区域。 + + 调用setSystemRegion接口设置系统国家(该接口为系统接口,只有具有UPDATE_CONFIGURATION权限的系统应用可以调用)。 + 调用getSystemRegion接口获取系统国家。 ```js - var language = i18n.getSystemLanguage(); + try { + I18n.System.setSystemRegion("CN"); // 将系统国家设置为 "CN" + let region = I18n.System.getSystemRegion(); // region = "CN" + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } ``` -2. 获取系统区域。 +4. 获取和设置系统Locale。 - 调用getSystemRegion方法获取当前系统设置的区域 + 调用setSystemLocale接口设置系统Locale(该接口为系统接口,只有具有UPDATE_CONFIGURATION权限的系统应用可以调用)。Locale的定义请见[Locale](../internationalization/intl-guidelines.md#设置区域信息) + 调用getSystemLocale接口获取系统Locale。 ```js - var region = i18n.getSystemRegion(); + try { + I18n.System.setSystemLocale("zh-Hans-CN"); // 将系统Locale设置为 "zh-Hans-CN" + let locale = I18n.System.getSystemLocale(); // locale = "zh-Hans-CN" + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } ``` -3. 获取系统Locale。 +5. 判断Locale的语言是否为从右到左语言。 - 调用getSystemLocale方法获取当前系统设置的Locale + 调用isRTL接口获取Locale的语言是否为从右到左语言。 ```js - var locale = i18n.getSystemLocale(); + try { + let rtl = I18n.isRTL("zh-CN"); // rtl = false + rtl = I18n.isRTL("ar"); // rtl = true + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } ``` -4. 判断Locale的语言是否为RTL语言。 +6. 获取和设置系统24小时制设置。 - 调用isRTL方法获取Locale的语言是否为从右到左语言。 + 调用set24HourClock接口打开系统24小时制设置。 + 调用is24HourClock接口来判断当前是否打开系统24小时制设置。 ```js - var rtl = i18n.isRTL("zh-CN"); + try { + I18n.System.set24HourClock(true); + let hourClock = I18n.System.is24HourClock(); // hourClock = true + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } ``` -5. 判断当前系统时间是否采用24小时制。 +7. 获取语言的本地化表示。 - 调用is24HourClock方法来判断当前系统的时间是否采用24小时制。 + 调用getDisplayLanguage接口获取某一语言的本地化表示。其中,language表示待本地化显示的语言,locale表示本地化的Locale,sentenceCase结果是否需要首字母大写。 ```js - var hourClock = i18n.is24HourClock(); + try { + let language = "en"; + let locale = "zh-CN"; + let sentenceCase = false; + let localizedLanguage = I18n.System.getDisplayLanguage(language, locale, sentenceCase); // localizedLanguage = "英语" + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } ``` -6. 获取语言的本地化表示。 +8. 获取国家的本地化表示。 - 调用getDisplayLanguage方法获取某一语言的本地化表示。其中,language表示待本地化显示的语言,locale表示本地化的Locale,sentenceCase结果是否需要首字母大写。 + 调用getDisplayCountry接口获取某一国家的本地化表示。其中,country表示待本地化显示的国家,locale表示本地化的Locale,sentenceCase结果是否需要首字母大写。 ```js - var language = "en"; - var locale = "zh-CN"; - var sentenceCase = false; - var localizedLanguage = i18n.getDisplayLanguage(language, locale, sentenceCase); + try { + let country = "US"; + let locale = "zh-CN"; + let sentenceCase = false; + let localizedCountry = I18n.System.getDisplayCountry(country, locale, sentenceCase); // localizedCountry = "美国" + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } ``` -7. 获取国家的本地化表示。 +9. 获取系统语言列表和某个语言系统支持的国家列表。 + + 调用getSystemLanguages接口获取系统支持的语言列表。 + 调用getSystemCountries接口获取某一语言系统支持的地区列表。 + ```js + + try { + let languageList = I18n.System.getSystemLanguages(); // languageList = ["en-Latn-US", "zh-Hans"] + let countryList = I18n.System.getSystemCountries("zh"); // countryList = ["ZW", "YT", ..., "CN", "DE"], 共240个国家和地区 + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } + ``` + +10. 判断语言和国家是否匹配。 + + 调用isSuggested接口判断语言和地区是否匹配。 + + ```js + try { + let isSuggest = I18n.System.isSuggested("zh", "CN"); // isSuggest = true + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } + ``` - 调用getDisplayCountry方法获取某一国家的本地化表示。其中,country表示待本地化显示的国家,locale表示本地化的Locale,sentenceCase结果是否需要首字母大写。 +11. 获取与设置偏好语言。 + 调用addPreferredLanguage接口在当前系统偏好语言列表中插入偏好语言。 + 调用removePreferredLanguage接口移除系统偏好语言列表中的某个语言。(addPreferredLanguage接口和removePreferredLanguage接口为系统接口,只有具有UPDATE_CONFIGURATION权限的系统应用可以调用。) + 调用getPreferredLanguageList接口获取系统当前偏好语言列表。 + 调用getFirstPreferredLanguage接口获取系统偏好语言列表中的第一个偏好语言。 + 调用getAppPreferredLanguageList接口获取应用偏好语言,应用偏好语言为系统偏好语言列表中第一个与应用的资源匹配的语言。 + ```js - var country = "US"; - var locale = "zh-CN"; - var sentenceCase = false; - var localizedCountry = i18n.getDisplayCountry(country, locale, sentenceCase); + try { + I18n.System.addPreferredLanguage("en-GB", 0); // 将"en-GB"设置为系统偏好语言列表的第一个语言 + let list = I18n.System.getPreferredLanguageList(); // 获取当前系统偏好语言列表 list = ["en-GB", ...] + I18n.System.removePreferredLanguage(list.length - 1); // 移除当前系统偏好语言列表中的最后一个偏好语言 + let firstPreferredLanguage = I18n.System.getFirstPreferredLanguage(); // firstPreferredLanguage = "en-GB" + let appPreferredLanguage = I18n.System.getAppPreferredLanguage(); // 当应用中包含 "en-GB"资源时,应用偏好语言为"en-GB" + } catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); + } ``` +12. 获取和设置系统本地化数字开关。 + + 调用setUsingLocalDigit接口打开本地化数字开关。(此接口为系统接口,只有具有UPDATE_CONFIGURATION权限的系统应用可以调用。) + 调用getUsingLocalDigit接口访问本地化数字开关状态。 + 当前只有 "ar", "as", "bn", "fa", "mr", "my", "ne", "ur" 8个语言支持使用本地数字。 + +```js +try { + I18n.System.setUsingLocalDigit(true); // 打开本地化数字开关 + let status = I18n.System.getUsingLocalDigit(); // status = true +} catch(error) { + console.error(`call i18n.System interface failed, error code: ${error.code}, message: ${error.message}`); +} +``` + ## 获取日历信息 调用日历[Calendar](../reference/apis/js-apis-i18n.md#calendar8)相关接口来获取日历的相关信息,例如获取日历的本地化显示、一周起始日、一年中第一周的最小天数等。 ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | --------- | ---------------------------------------- | --------------------- | -| ohos.i18n | getCalendar(locale:string,type?:string):Calendar8+ | 获取指定locale和type的日历对象。 | -| ohos.i18n | setTime(date:Date): void8+ | 设置日历对象内部的时间日期。 | -| ohos.i18n | setTime(time:number): void8+ | 设置日历对象内部的时间日期。 | -| ohos.i18n | set(year:number,month:number,date:number,hour?:number,minute?:number,second?:number): void8+ | 设置日历对象的年、月、日、时、分、秒。 | -| ohos.i18n | setTimeZone(timezone:string): void8+ | 设置日历对象的时区。 | -| ohos.i18n | getTimeZone():string8+ | 获取日历对象的时区。 | -| ohos.i18n | getFirstDayOfWeek():number8+ | 获取日历对象的一周起始日。 | -| ohos.i18n | setFirstDayOfWeek(value:number): void8+ | 设置日历对象的一周起始日。 | -| ohos.i18n | getMinimalDaysInFirstWeek():number8+ | 获取一年中第一周的最小天数。 | -| ohos.i18n | setMinimalDaysInFirstWeek(value:number): void8+ | 设置一年中第一周的最小天数。 | -| ohos.i18n | getDisplayName(locale:string):string8+ | 获取日历对象的本地化表示。 | -| ohos.i18n | isWeekend(date?:Date):boolean8+ | 判断给定的日期是否在日历中是周末。 | +| | getCalendar(locale:string,type?:string):Calendar8+ | 获取指定locale和type的日历对象。 | +| Calendar | setTime(date:Date): void8+ | 设置日历对象内部的时间日期。 | +| Calendar | setTime(time:number): void8+ | 设置日历对象内部的时间日期。 | +| Calendar | set(year:number,month:number,date:number,hour?:number,minute?:number,second?:number): void8+ | 设置日历对象的年、月、日、时、分、秒。 | +| Calendar | setTimeZone(timezone:string): void8+ | 设置日历对象的时区。 | +| Calendar | getTimeZone():string8+ | 获取日历对象的时区。 | +| Calendar | getFirstDayOfWeek():number8+ | 获取日历对象的一周起始日。 | +| Calendar | setFirstDayOfWeek(value:number): void8+ | 设置日历对象的一周起始日。 | +| Calendar | getMinimalDaysInFirstWeek():number8+ | 获取一年中第一周的最小天数。 | +| Calendar | setMinimalDaysInFirstWeek(value:number): void8+ | 设置一年中第一周的最小天数。 | +| Calendar | getDisplayName(locale:string):string8+ | 获取日历对象的本地化表示。 | +| Calendar | isWeekend(date?:Date):boolean8+ | 判断给定的日期在日历中是否是周末。 | ### 开发步骤 -1. 实例化日历对象。 +1. 导入I18n模块。 - 调用getCalendar方法获取指定locale和type的时区对象(i18n为导入的模块)。其中,type表示合法的日历类型,目前合法的日历类型包括:"buddhist", "chinese", "coptic", "ethiopic", "hebrew", "gregory", "indian", "islamic_civil", "islamic_tbla", "islamic_umalqura", "japanese", "persian"。当type没有给出时,采用区域默认的日历类型。 + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 实例化日历对象。 + + 调用getCalendar接口获取指定locale和type的时区对象(i18n为导入的模块)。其中,type表示合法的日历类型,目前合法的日历类型包括:"buddhist", "chinese", "coptic", "ethiopic", "hebrew", "gregory", "indian", "islamic_civil", "islamic_tbla", "islamic_umalqura", "japanese", "persian"。当type没有给出时,采用区域默认的日历类型。 ```js - var calendar = i18n.getCalendar("zh-CN", "gregory"); + let calendar = I18n.getCalendar("zh-CN", "chinese"); // 创建中文农历日历 ``` -2. 设置日历对象的时间。 +3. 设置日历对象的时间。 - 调用setTime方法设置日历对象的时间。setTime方法接收两种类型的参数。一种是传入一个Date对象,另一种是传入一个数值表示从1970.1.1 00:00:00 GMT逝去的毫秒数。 + 调用setTime接口设置日历对象的时间。setTime接口接收两种类型的参数。一种是传入一个Date对象,另一种是传入一个数值表示从1970.1.1 00:00:00 GMT逝去的毫秒数。 ```js - var date1 = new Date(); + let date1 = new Date(); calendar.setTime(date1); - var date2 = 1000; + let date2 = 1000; calendar.setTime(date2); ``` -3. 设置日历对象的年、月、日、时、分、秒。 +4. 设置日历对象的年、月、日、时、分、秒。 - 调用set方法设置日历对象的年、月、日、时、分、秒。 + 调用set接口设置日历对象的年、月、日、时、分、秒。 ```js - calendar.set(2021, 12, 21, 6, 0, 0) + calendar.set(2021, 12, 21, 6, 0, 0); ``` -4. 设置、获取日历对象的时区。 +5. 设置、获取日历对象的时区。 - 调用setTimeZone方法和getTimeZone方法来设置、获取日历对象的时区。其中,setTimeZone方法需要传入一个字符串表示需要设置的时区。 + 调用setTimeZone接口和getTimeZone接口来设置、获取日历对象的时区。其中,setTimeZone接口需要传入一个字符串表示需要设置的时区。 ```js calendar.setTimeZone("Asia/Shanghai"); - var timezone = calendar.getTimeZone(); + let timezone = calendar.getTimeZone(); // timezone = "China Standard Time" ``` -5. 设置、获取日历对象的一周起始日。 +6. 设置、获取日历对象的一周起始日。 - 调用setFirstDayOfWeek方法和getFirstDayOfWeek方法设置、获取日历对象的一周起始日。其中,setFirstDayOfWeek需要传入一个数值表示一周的起始日,1代表周日,7代表周六。 + 调用setFirstDayOfWeek接口和getFirstDayOfWeek接口设置、获取日历对象的一周起始日。其中,setFirstDayOfWeek需要传入一个数值表示一周的起始日,1代表周日,7代表周六。 ```js calendar.setFirstDayOfWeek(1); - var firstDayOfWeek = calendar.getFirstDayOfWeek(); + let firstDayOfWeek = calendar.getFirstDayOfWeek(); // firstDayOfWeek = 1 ``` -6. 设置、获取日历对象第一周的最小天数 - 调用setMinimalDaysInFirstWeek方法和getMinimalDaysInFirstWeek方法来设置、获取日历对象第一周的最小天数。 +7. 设置、获取日历对象第一周的最小天数。 + 调用setMinimalDaysInFirstWeek接口和getMinimalDaysInFirstWeek接口来设置、获取日历对象第一周的最小天数。 ```js calendar.setMinimalDaysInFirstWeek(3); - var minimalDaysInFirstWeek = calendar.getMinimalDaysInFirstWeek(); + let minimalDaysInFirstWeek = calendar.getMinimalDaysInFirstWeek(); // minimalDaysInFirstWeek = 3 ``` -7. 获取日历对象的本地化显示 +8. 获取日历对象的本地化显示。 调用getDisplayName来获取日历对象的本地化显示。 ```js - var localizedName = calendar.getDisplayName("zh-CN"); + let localizedName = calendar.getDisplayName("zh-CN"); // localizedName = "农历" ``` -8. 判断某一个日期是否为周末。 +9. 判断某一个日期是否为周末。 - 调用isWeekend方法来判断输入的Date是否为周末。 + 调用isWeekend接口来判断输入的Date是否为周末。 ```js - var date = new Date(); - var weekend = calendar.isWeekend(date); + let date = new Date(2022, 12, 12, 12, 12, 12); + let weekend = calendar.isWeekend(date); // weekend = false ``` ## 电话号码格式化 @@ -182,36 +305,43 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | --------- | ---------------------------------------- | ----------------------- | -| ohos.i18n | constructor(country:string,options?:PhoneNumberFormatOptions)8+ | 实例化PhoneNumberFormat对象。 | -| ohos.i18n | isValidNumber(number:string):boolean8+ | 判断number是否是一个格式正确的电话号码。 | -| ohos.i18n | format(number:string):string8+ | 对number按照指定国家及风格进行格式化。 | +| PhoneNumberFormat | constructor(country:string,options?:PhoneNumberFormatOptions)8+ | 实例化PhoneNumberFormat对象。 | +| PhoneNumberFormat | isValidNumber(number:string):boolean8+ | 判断number是否是一个格式正确的电话号码。 | +| PhoneNumberFormat | format(number:string):string8+ | 对number按照指定国家及风格进行格式化。 | +| PhoneNumberFormat | getLocationName(number: string, locale: string): string9+ | 获取电话号码归属地。 | ### 开发步骤 -1. 实例化电话号码格式化对象。 +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 实例化电话号码格式化对象。 调用PhoneNumberFormat的构造函数来实例化电话号码格式化对象,需要传入电话号码的国家代码及格式化选项。其中,格式化选项是可选的,包括style选项,该选项的取值包括:"E164", "INTERNATIONAL", "NATIONAL", "RFC3966"。 ```js - var phoneNumberFormat = new i18n.PhoneNumberFormat("CN", {type: "E164"}); + let phoneNumberFormat = new I18n.PhoneNumberFormat("CN", {type: "E164"}); ``` -2. 判断电话号码格式是否正确。 +3. 判断电话号码格式是否正确。 - 调用isValidNumber方法来判断输入的电话号码的格式是否正确。 + 调用isValidNumber接口来判断输入的电话号码的格式是否正确。 ```js - var validNumber = phoneNumberFormat.isValidNumber("15812341234"); + let validNumber = phoneNumberFormat.isValidNumber("15812341234"); // validNumber = true ``` -3. 电话号码格式化。 +4. 电话号码格式化。 - 调用电话号码格式化对象的format方法来对输入的电话号码进行格式化。 + 调用电话号码格式化对象的format接口来对输入的电话号码进行格式化。 ```js - var formattedNumber = phoneNumberFormat.format("15812341234"); + let formattedNumber = phoneNumberFormat.format("15812341234"); // formattedNumber = "+8615812341234" ``` ## 度量衡转换 @@ -220,23 +350,29 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | --------- | ---------------------------------------- | --------------------------------------- | -| ohos.i18n | unitConvert(fromUnit:UnitInfo,toUnit:UnitInfo,value:number,locale:string,style?:string):string8+ | 将fromUnit的单位转换为toUnit的单位,并根据区域与风格进行格式化。 | +| I18NUtil | unitConvert(fromUnit:UnitInfo,toUnit:UnitInfo,value:number,locale:string,style?:string):string9+ | 将fromUnit的单位转换为toUnit的单位,并根据区域与风格进行格式化。 | ### 开发步骤 -1. 度量衡单位转换。 +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 度量衡单位转换。 - 调用[unitConvert](../reference/apis/js-apis-i18n.md#unitconvert9)方法实现度量衡单位转换,并进行格式化显示的功能。 + 调用[unitConvert](../reference/apis/js-apis-i18n.md#unitconvert9)接口实现度量衡单位转换,并进行格式化显示的功能。 ```js - var fromUnit = {unit: "cup", measureSystem: "US"}; - var toUnit = {unit: "liter", measureSystem: "SI"}; - var number = 1000; - var locale = "en-US"; - var style = "long"; - i18n.Util.unitConvert(fromUtil, toUtil, number, locale, style); + let fromUnit = {unit: "cup", measureSystem: "US"}; + let toUnit = {unit: "liter", measureSystem: "SI"}; + let number = 1000; + let locale = "en-US"; + let style = "long"; + let converttedUnit = I18n.I18NUtil.unitConvert(fromUnit, toUnit, number, locale, style); // converttedUnit = "236.588 liters" ``` ## 字母表索引 @@ -245,47 +381,53 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | --------- | ---------------------------------------- | ----------------------- | -| ohos.i18n | getInstance(locale?:string):IndexUtil8+ | 实例化字母表索引对象。 | -| ohos.i18n | getIndexList():Array<string>8+ | 获取当前Locale的索引列表。 | -| ohos.i18n | addLocale(locale:string): void8+ | 将新的Locale对应的索引加入当前索引列表。 | -| ohos.i18n | getIndex(text:string):string8+ | 获取text对应的索引。 | +| | getInstance(locale?:string):IndexUtil8+ | 实例化字母表索引对象。 | +| IndexUtil | getIndexList():Array<string>8+ | 获取当前Locale的索引列表。 | +| IndexUtil | addLocale(locale:string): void8+ | 将新的Locale对应的索引加入当前索引列表。 | +| IndexUtil | getIndex(text:string):string8+ | 获取text对应的索引。 | ### 开发步骤 -1. 实例化字母表索引对象。 +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; + ``` - 调用getInstance方法来实例化特定locale对应的字母表索引对象。当locale参数为空时,实例化系统默认Locale的字母表索引对象。 +2. 实例化字母表索引对象。 + + 调用getInstance接口来实例化特定locale对应的字母表索引对象。当locale参数为空时,实例化系统默认Locale的字母表索引对象。 ```js - var indexUtil = i18n.getInstance("zh-CN"); + let indexUtil = I18n.getInstance("zh-CN"); ``` -2. 获取索引列表。 +3. 获取索引列表。 - 调用getIndexList方法来获取当前Locale对应的字母表索引列表。 + 调用getIndexList接口来获取当前Locale对应的字母表索引列表。 ```js - var indexList = indexUtil.getIndexList(); + let indexList = indexUtil.getIndexList(); // indexList = ["...", "A", "B", "C", ..., "X", "Y", "Z", "..."] ``` -3. 增加新的索引。 +4. 增加新的索引。 - 调用addLocale方法,将新的Locale对应的字母表索引添加到当前字母表索引列表中。 + 调用addLocale接口,将新的Locale对应的字母表索引添加到当前字母表索引列表中。 ```js - indexUtil.addLocale("ar") + indexUtil.addLocale("ar"); ``` -4. 获取字符串对应的索引。 +5. 获取字符串对应的索引。 - 调用getIndex方法来获取某一字符串对应的字母表索引。 + 调用getIndex接口来获取某一字符串对应的字母表索引。 ```js - var text = "access index"; - indexUtil.getIndex(text); + let text = "access index"; + let index = indexUtil.getIndex(text); // index = "A" ``` ## 获取文本断点位置 @@ -294,68 +436,297 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | --------- | ---------------------------------------- | ------------------------------ | -| ohos.i18n | getLineInstance(locale:string):BreakIterator8+ | 实例化断行对象。 | -| ohos.i18n | setLineBreakText(text:string): void8+ | 设置要处理的文本。 | -| ohos.i18n | getLineBreakText():string8+ | 获取要处理的文本。 | -| ohos.i18n | current():number8+ | 获取当前断行对象在处理文本的位置。 | -| ohos.i18n | first():number8+ | 将断行对象设置到第一个可断句的分割点。 | -| ohos.i18n | last():number8+ | 将断行对象设置到最后一个可断句的分割点。 | -| ohos.i18n | next(index?:number):number8+ | 将断行对象移动index个分割点的位置。 | -| ohos.i18n | previous():number8+ | 将断行对象移动到前一个分割点的位置。 | -| ohos.i18n | following(offset:number):number8+ | 将断行对象移动到offset指定位置的后面一个分割点的位置。 | -| ohos.i18n | isBoundary(offset:number):boolean8+ | 判断某个位置是否是分割点。 | +| | getLineInstance(locale:string):BreakIterator8+ | 实例化断行对象。 | +| BreakIterator | setLineBreakText(text:string): void8+ | 设置要处理的文本。 | +| BreakIterator | getLineBreakText():string8+ | 获取要处理的文本。 | +| BreakIterator | current():number8+ | 获取当前断行对象在处理文本的位置。 | +| BreakIterator | first():number8+ | 将断行对象设置到第一个可断句的分割点。 | +| BreakIterator | last():number8+ | 将断行对象设置到最后一个可断句的分割点。 | +| BreakIterator | next(index?:number):number8+ | 将断行对象移动index个分割点的位置。 | +| BreakIterator | previous():number8+ | 将断行对象移动到前一个分割点的位置。 | +| BreakIterator | following(offset:number):number8+ | 将断行对象移动到offset指定位置的后面一个分割点的位置。 | +| BreakIterator | isBoundary(offset:number):boolean8+ | 判断某个位置是否是分割点。 | ### 开发步骤 -1. 实例化断行对象。 +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 实例化断行对象。 - 调用getLineInstance方法来实例化断行对象。 + 调用getLineInstance接口来实例化断行对象。 ```js - var locale = "en-US" - var breakIterator = i18n.getLineInstance(locale); + let locale = "en-US"; + let breakIterator = I18n.getLineInstance(locale); ``` -2. 设置、访问要断行处理的文本。 +3. 设置、访问要断行处理的文本。 - 调用setLineBreakText方法和getLineBreakText方法来设置、访问要断行处理的文本。 + 调用setLineBreakText接口和getLineBreakText接口来设置、访问要断行处理的文本。 ```js - var text = "Apple is my favorite fruit"; + let text = "Apple is my favorite fruit"; breakIterator.setLineBreakText(text); - var breakText = breakIterator.getLineBreakText(); + let breakText = breakIterator.getLineBreakText(); // breakText = "Apple is my favorite fruit" ``` -3. 获取断行对象当前的位置。 +4. 获取断行对象当前的位置。 - 调用current方法来获取断行对象在当前处理文本中的位置。 + 调用current接口来获取断行对象在当前处理文本中的位置。 ```js - var pos = breakIterator.current(); + let pos = breakIterator.current(); // pos = 0 ``` -4. 设置断行对象的位置。 +5. 设置断行对象的位置。 系统提供了很多接口可以用于调整断行对象在处理文本中的位置,包括first, last, next, previous, following。 ```js - var firstPos = breakIterator.first(); // 将断行对象设置到第一个分割点的位置,即文本的起始位置; - var lastPos = breakIterator.last(); // 将断行对象设置到最后一个分割点的位置,即文本末尾的下一个位置; + let firstPos = breakIterator.first(); // 将断行对象设置到第一个分割点的位置,即文本的起始位置;firstPos = 0 + let lastPos = breakIterator.last(); // 将断行对象设置到最后一个分割点的位置,即文本末尾的下一个位置;lastPos = 26 // 将断行对象向前或向后移动一定数量的分割点。 // 当传入正数时,向后移动;当传入负数时,向前移动;当未传入数值时,则向后移动一个位置; // 当移动超出了文本的长度范围,则返回-1; - var nextPos = breakIterator.next(-2); - var previousPos = breakIterator.previous(); // 将断行对象向前移动向前移动一个分割点,当超出文本长度范围时返回-1; + let nextPos = breakIterator.next(-2); // nextPos = 12 + let previousPos = breakIterator.previous(); // 将断行对象向前移动向前移动一个分割点,当超出文本长度范围时返回-1; previousPos = 9 // 将断行对象移动到offset指定位置的后面一个分割点。如果offset所指定的位置的下一个分割点超出了文本的长度范围,则返回-1; - var followingPos = breakIterator.following(10); + let followingPos = breakIterator.following(10); // followingPos = 12 + ``` + +6. 判断某个位置是否为分割点。 + + 调用isBoundary接口来判断一个接口是否为分割点;如果该位置是分割点,则返回true,并且将断行对象移动到该位置;如果该位置不是分割点,则返回false,并且将断行对象移动到该位置后的一个分割点。 + + ```js + let isboundary = breakIterator.isBoundary(5); // isboundary = false + ``` + +## 获取时区 + +调用时区[TimeZone](../reference/apis/js-apis-i18n.md#timezone)相关接口来获取时区的相关信息,例如获取时区的ID、本地化显示、时区偏移量等。 + +### 接口说明 + +| 类名 | 接口名称 | 描述 | +| --------- | ---------------------------------------- | ------------------------------ | +| | getTimeZone(zoneID?: string): TimeZone7+ | 获取时区对象。 | +| TimeZone | getID(): string7+ | 获取时区ID。 | +| TimeZone | getDisplayName(locale?: string, isDST?: boolean): string7+ | 获取时区的本地化显示。 | +| TimeZone | getRawOffset(): number7+ | 获取时区对象与UTC时区的偏移量。 | +| TimeZone | getOffset(date?: number): number7+ | 获取某一时间点时区对象与UTC时区的偏移量。 | +| TimeZone | getAvailableIDs(): Array9+ | 获取系统支持的时区ID列表。 | +| TimeZone | getAvailableZoneCityIDs(): Array9+ | 获取系统支持的时区城市ID列表。 | +| TimeZone | getCityDisplayName(cityID: string, locale: string): string9+ | 获取时区城市ID的本地化显示。 | +| TimeZone | getTimezoneFromCity(cityID: string): TimeZone9+ | 获取时区城市ID对应的时区对象。 | + +### 开发步骤 + +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 实例化时区对象,并获取相关时区信息。 + + 调用getTimeZone接口来获取时区对象。 + + ```js + let timezone = I18n.getTimeZone(); // 使用默认参数可以获取系统时区对象。 + ``` + + 获取时区ID、本地化显示、时区偏移量、某一时刻的时区偏移量信息。 + + ```js + let timezoneID = timezone.getID(); // timezoneID = "Asia/Shanghai" + let timezoneDisplayName = timezone.getDisplayName(); // timezoneDisplayName = "中国标准时间" + let rawOffset = timezone.getRawOffset(); // rawOffset = 28800000 + let offset = timezone.getOffset(new Date().getTime()); // offset = 28800000 + ``` + +3. 获取系统支持的时区ID。 + + 调用getAvailableIDs接口获取系统支持的时区ID列表。 + 时区ID列表中的时区ID可以作为getTimeZone接口的参数,来创建TimeZone对象。 + + ```js + let timezoneIDs = I18n.TimeZone.getAvailableIDs(); // timezoneIDs = ["America/Adak", ...],共包含24个时区ID + let timezone = I18n.getTimeZone(timezoneIDs[0]); + let timezoneDisplayName = timezone.getDisplayName(); // timezoneDisplayName = "夏威夷-阿留申时间" + ``` + +4. 获取系统支持的时区城市ID。 + + 调用getAvailableZoneCityIDs接口获取系统支持的时区城市ID列表。 + 调用getCityDisplayName接口获取时区城市ID的本地化显示。 + 调用getTimezoneFromCity接口基于时区城市ID创建时区对象。 + + ```js + let zoneCityIDs = I18n.TimeZone.getAvailableZoneCityIDs(); // ["Auckland", "Magadan", ...] + let cityDisplayName = I18n.TimeZone.getCityDisplayName(zoneCityIDs[0], "zh-Hans"); // cityDisplayName = "奥克兰(新西兰)" + let timezone = I18n.TimeZone.getTimezoneFromCity(zoneCityIDs[0]); + let timezoneDisplayName = timezone.getDisplayName(); // timezoneDisplayName = "新西兰时间" + ``` + +## 获取音译对象 + +调用音译[Transliterator](../reference/apis/js-apis-i18n.md#transliterator9)相关接口来创建音译对象,获取音译字符串。 + +### 接口说明 + +| 类名 | 接口名称 | 描述 | +| --------- | ---------------------------------------- | ------------------------------ | +| Transliterator | getAvailableIDs():Array9+ | 获取音译支持的ID列表。 | +| Transliterator | getInstance(): Transliterator9+ | 创建音译对象。 | +| Transliterator | transform(text: string): string9+ | 获取音译字符串。 | + +### 开发步骤 + +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 获取支持音译的ID列表。 + + 调用getAvailableIDs接口来获取支持音译的ID列表。 + 每个ID的格式为 source-destination,例如 ASCII-Latin,表示将ASCII转换为Latin的音译ID。 + + ```js + let ids = I18n.Transliterator.getAvailableIDs(); // ids = ["ASCII-Latin", "Accents-Any", ... ],共支持671个语言 + ``` + +3. 创建音译对象,获取音译字符串。 + + 支持音译的ID列表中的ID可以作为getInstance接口的参数,创建音译对象。 + 调用transform接口,获取音译字符串。 + + ```js + let transliterator = I18n.Transliterator.getInstance("Any-Latn"); // Any-Latn表示将任意文本转换为Latn文本 + let transformText = transliterator.transform("你好"); // transformText = "nǐ hǎo " + ``` + +## 字符类型判断 + +调用字符[Unicode](../reference/apis/js-apis-i18n.md#unicode9)相关接口来获取字符的相关信息,例如字符是否是数字、字符是否是空格符等。 + +### 接口说明 + +| 类名 | 接口名称 | 描述 | +| --------- | ---------------------------------------- | ------------------------------ | +| Unicode | isDigit(char: string): boolean9+ | 判断字符是否是数字。 | +| Unicode | isSpaceChar(char: string): boolean9+ | 判断字符是否是空格符。 | +| Unicode | isWhitespace(char: string): boolean9+ | 判断字符是否是空白符。 | +| Unicode | isRTL(char: string): boolean9+ | 判断字符是否是从左到右显示的字符。 | +| Unicode | isIdeograph(char: string): boolean9+ | 判断字符是否是表意文字。 | +| Unicode | isLetter(char: string): boolean9+ | 判断字符是否是字母。 | +| Unicode | isLowerCase(char: string): boolean9+ | 判断字符是否是小写字母。 | +| Unicode | isUpperCase(char: string): boolean9+ | 判断字符是否是大写字母。 | +| Unicode | getType(char: string): string9+ | 获取字符的类型。 | + +### 开发步骤 + +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; + ``` + +2. 判断字符是否具有某种性质。 + + 判断字符是否是数字。 + + ```js + let isDigit = I18n.Unicode.isDigit("1"); // isDigit = true + isDigit = I18n.Unicode.isDigit("a"); // isDigit = false + ``` + + 判断字符是否是空格符。 + + ```js + let isSpaceChar = I18n.Unicode.isSpaceChar(" "); // isSpaceChar = true + isSpaceChar = I18n.Unicode.isSpaceChar("\n"); // isSpaceChar = false + ``` + + 判断字符是否是空白符。 + + ```js + let isWhitespace = I18n.Unicode.isWhitespace(" "); // isWhitespace = true + isWhitespace = I18n.Unicode.isWhitespace("\n"); // isWhitespace = true + ``` + + 判断字符是否是从左到右书写的文字。 + + ```js + let isRTL = I18n.Unicode.isRTL("مرحبًا"); // isRTL = true,阿拉伯语的文字是从左到右书写的文字 + isRTL = I18n.Unicode.isRTL("a"); // isRTL = false + ``` + + 判断字符是否是表意文字。 + + ```js + let isIdeograph = I18n.Unicode.isIdeograph("你好"); // isIdeograph = true + isIdeograph = I18n.Unicode.isIdeograph("a"); // isIdeograph = false + ``` + + 判断字符是否是字母。 + + ```js + let isLetter = I18n.Unicode.isLetter("a"); // isLetter = true + isLetter = I18n.Unicode.isLetter("."); // isLetter = false + ``` + + 判断字符是否是小写字母。 + + ```js + let isLowerCase = I18n.Unicode.isLowerCase("a"); // isLetter = true + isLowerCase = I18n.Unicode.isLowerCase("A"); // isLetter = false + ``` + + 判断字符是否是大写字母。 + + ```js + let isUpperCase = I18n.Unicode.isUpperCase("a"); // isUpperCase = false + isUpperCase = I18n.Unicode.isUpperCase("A"); // isUpperCase = true + ``` + +3. 获取字符的类型。 + + 调用getType接口获取字符的类型。 + + ```js + let type = I18n.Unicode.getType("a"); // type = U_LOWER_CASE_LETTER + ``` + +## 获取日期中年月日的排列顺序 + +### 接口说明 + +| 类名 | 接口名称 | 描述 | +| --------- | ---------------------------------------- | ------------------------------ | +| I18NUtil | getDateOrder(locale: string): string9+ | 判断日期中年月日的排列顺序。 | + +### 开发步骤 + +1. 导入I18n模块。 + + ```js + import I18n from '@ohos.i18n'; ``` -5. 判断某个位置是否为分割点。 +2. 判断日期的年月日的排序顺序。 - 调用isBoundary方法来判断一个方法是否为分割点;如果该位置是分割点,则返回true,并且将断行对象移动到该位置;如果该位置不是分割点,则返回false,并且将断行对象移动到该位置后的一个分割点。 + 调用getDateOrder接口判断某一Locale的日期中,年月日的排列顺序。 + 接口返回一个字符串,由"y","L","d"三部分组成,分别表示年、月、日,使用中划线进行拼接。例如,"y-L-d"。 ```js - var isboundary = breakIterator.isBoundary(5); + let order = I18n.I18NUtil.getDateOrder("zh-CN"); // order = "y-L-d",表示中文中年月日的顺序为年-月-日。 ``` \ No newline at end of file diff --git a/zh-cn/application-dev/internationalization/intl-guidelines.md b/zh-cn/application-dev/internationalization/intl-guidelines.md index f1062d33423467bebafb95bfb218d21135d8e17d..faaebbfe977c6d50c22494c7608ea64df8955fba 100644 --- a/zh-cn/application-dev/internationalization/intl-guidelines.md +++ b/zh-cn/application-dev/internationalization/intl-guidelines.md @@ -10,17 +10,25 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | -------- | -------- | -------- | -| ohos.intl | constructor()8+ | 实例化Locale对象。 | -| ohos.intl | constructor(locale:string,options?:LocaleOptions) | 基于locale参数及其选项实例化Locale对象。 | -| ohos.intl | toString():string | 将Locale信息转换为字符串。 | -| ohos.intl | maximize():Locale | 最大化区域信息。 | -| ohos.intl | minimize():Locale | 最小化区域信息。 | +| Locale | constructor()8+ | 实例化Locale对象。 | +| Locale | constructor(locale:string,options?:LocaleOptions) | 基于locale参数及其选项实例化Locale对象。 | +| Locale | toString():string | 将Locale信息转换为字符串。 | +| Locale | maximize():Locale | 最大化区域信息。 | +| Locale | minimize():Locale | 最小化区域信息。 | ### 开发步骤 -1. 实例化Locale对象。 +1. 导入Intl模块。 + + 未正确导入包可能会产生不明确的接口行为。 + + ```js + import Intl from '@ohos.intl'; + ``` + +2. 实例化Locale对象。 使用Locale的构造函数创建Locale对象,该方法接收一个表示Locale的字符串及可选的[属性](../reference/apis/js-apis-intl.md#localeoptions)列表(intl为导入的模块名)。 @@ -40,33 +48,35 @@ ```js - var locale = "zh-CN"; - var options = {caseFirst: "false", calendar: "chinese", collation: "pinyin"}; - var localeObj = new intl.Locale(locale, options); + let locale = "zh-CN"; + let options = {caseFirst: "false", calendar: "chinese", collation: "pinyin"}; + let localeObj = new Intl.Locale(locale, options); ``` -2. 获取Locale的字符串表示。 +3. 获取Locale的字符串表示。 调用toString方法来获取Locale对象的字符串表示,其中包括了语言、区域及其他选项信息。 ```js - var localeStr = localeObj.toString(); + let localeStr = localeObj.toString(); // localeStr = "zh-CN-u-ca-chinese-co-pinyin-kf-false ``` -3. 最大化区域信息。 +4. 最大化区域信息。 调用maximize方法来最大化区域信息,即当缺少脚本与地区信息时,对其进行补全。 ```js - var maximizedLocale = localeObj.maximize(); + let maximizedLocale = localeObj.maximize(); + let maximizedLocaleStr = maximizedLocale.toString(); // localeStr = "zh-Hans-CN-u-ca-chinese-co-pinyin-kf-false ``` -4. 最小化区域信息。 +5. 最小化区域信息。 调用minimize方法来最小化区域信息,即当存在脚本与地区信息时,对其进行删除。 ```js - var minimizedLocale = localeObj.minimize(); + let minimizedLocale = localeObj.minimize(); + let minimizedLocaleStr = minimizedLocale.toString(); // zh-u-ca-chinese-co-pinyin-kf-false ``` ## 格式化日期时间 @@ -75,57 +85,69 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | -------- | -------- | -------- | -| ohos.intl | constructor()8+ | 创建日期时间格式化对象。 | -| ohos.intl | constructor(locale:string\|Array<string>,options?:DateTimeOptions) | 创建日期时间格式化对象,并设置提供的Locale和格式化相关属性。 | -| ohos.intl | format(date:Date):string | 依据DateTimeFormat对象的Locale及其他格式化属性,计算日期时间的格式化表示。 | -| ohos.intl | formatRange(startDate:Date,endDate:Date):string | 依据DateTimeFormat对象的Locale及其他格式化属性,计算时间段的格式化表示。 | -| ohos.intl | resolvedOptions():DateTimeOptions | 获取DateTimeFormat对象的相关属性。 | +| DateTimeFormat | constructor()8+ | 创建日期时间格式化对象。 | +| DateTimeFormat | constructor(locale:string\|Array<string>,options?:DateTimeOptions) | 创建日期时间格式化对象,并设置提供的Locale和格式化相关属性。 | +| DateTimeFormat | format(date:Date):string | 依据DateTimeFormat对象的Locale及其他格式化属性,计算日期时间的格式化表示。 | +| DateTimeFormat | formatRange(startDate:Date,endDate:Date):string | 依据DateTimeFormat对象的Locale及其他格式化属性,计算时间段的格式化表示。 | +| DateTimeFormat | resolvedOptions():DateTimeOptions | 获取DateTimeFormat对象的相关属性。 | ### 开发步骤 -1. 实例化日期时间格式化对象。 +1. 导入Intl模块。 + + 未正确导入包可能会产生不明确的接口行为。 + + ```js + import Intl from '@ohos.intl'; + ``` + +2. 实例化日期时间格式化对象。 - 一种方法是使用DateTimeFormat提供的默认构造函数,通过访问系统语言和地区设置,获取系统默认Locale,并将其作为DateTimeFormat对象内部的Locale(intl为导入的模块名)。 + 一种方法是使用DateTimeFormat提供的默认构造函数,通过访问系统语言和地区设置,获取系统默认Locale,并将其作为DateTimeFormat对象内部的Locale。 ```js - var dateTimeFormat = new intl.DateTimeFormat(); + let dateTimeFormat = new Intl.DateTimeFormat(); ``` 另一种方法是使用开发者提供的Locale和格式化参数来创建日期时间格式化对象。其中,格式化参数是可选的,完整的格式化参数列表见[DateTimeOptions](../reference/apis/js-apis-intl.md#datetimeoptions)。 ```js - var options = {dateStyle: "full", timeStyle: "full"}; - var dateTimeFormat = new intl.DateTimeFormat("zh-CN", options); + let options = {dateStyle: "full", timeStyle: "full"}; + let dateTimeFormat = new Intl.DateTimeFormat("zh-CN", options); ``` -2. 格式化日期时间。 +3. 格式化日期时间。 使用DateTimeFormat的format方法对一个Date对象进行格式化,该方法会返回一个字符串作为格式化的结果。 ```js - var date = new Date(); - var formatResult = dateTimeFormat.format(date); + let options = {dateStyle: "full", timeStyle: "full"}; + let dateTimeFormat = new Intl.DateTimeFormat("zh-CN", options); + let date = new Date(2022, 12, 12, 12, 12, 12); + let formatResult = dateTimeFormat.format(date); // formatResult = "2023年1月12日星期四 中国标准时间 下午12:12:12" ``` -3. 格式化时间段。 +4. 格式化时间段。 使用DateTimeFormat的formatRange方法对一个时间段进行格式化。该方法需要传入两个Date对象,分别表示时间段的起止日期,返回一个字符串作为格式化的结果。 ```js - var startDate = new Date(2021, 11, 17, 3, 24, 0); - var endDate = new Date(2021, 11, 18, 3, 24, 0); - var datefmt = new Intl.DateTimeFormat("en-GB"); - datefmt.formatRange(startDate, endDate); + let startDate = new Date(2021, 11, 17, 3, 24, 0); + let endDate = new Date(2021, 11, 18, 3, 24, 0); + let datefmt = new Intl.DateTimeFormat("en-GB"); + let formatRangeResult = datefmt.formatRange(startDate, endDate); // formatRangeResult = "17/12/2021-18/12/2021" ``` -4. 访问日期时间格式化对象的相关属性。 +5. 访问日期时间格式化对象的相关属性。 DateTimeFormat的resolvedOptions方法会返回一个对象,该对象包含了DateTimeFormat对象的所有相关属性及其值。 ```js - var options = dateTimeFormat.resolvedOptions(); + let options = {dateStyle: "full", timeStyle: "full"}; + let dateTimeFormat = new Intl.DateTimeFormat("zh-CN", options); + let resolvedOptions = dateTimeFormat.resolvedOptions(); // resolvedOptions = {"locale": "zh-CN", "calendar": "gregorian", "dateStyle":"full", "timeStyle":"full", "timeZone": "CST"} ``` ## 数字格式化 @@ -134,45 +156,57 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | -------- | -------- | -------- | -| ohos.intl | constructor()8+ | 创建数字格式化对象。 | -| ohos.intl | constructor(locale:string\|Array<string>,options?:NumberOptions) | 创建数字格式化对象,并设置提供的locale和格式化相关属性。 | -| ohos.intl | format(number:number):string | 依据NumberFormat对象的Locale及其他格式化属性,计算数字的格式化表示。 | -| ohos.intl | resolvedOptions():NumberOptions | 获取NumberFormat对象的相关属性。 | +| NumberFormat | constructor()8+ | 创建数字格式化对象。 | +| NumberFormat | constructor(locale:string\|Array<string>,options?:NumberOptions) | 创建数字格式化对象,并设置提供的locale和格式化相关属性。 | +| NumberFormat | format(number:number):string | 依据NumberFormat对象的Locale及其他格式化属性,计算数字的格式化表示。 | +| NumberFormat | resolvedOptions():NumberOptions | 获取NumberFormat对象的相关属性。 | ### 开发步骤 -1. 实例化数字格式化对象。 +1. 导入Intl模块。 + + 未正确导入包可能会产生不明确的接口行为。 + + ```js + import Intl from '@ohos.intl'; + ``` + +2. 实例化数字格式化对象。 一种方法是使用NumberFormat提供的默认构造函数,通过访问系统的语言和地区以获取系统默认Locale并进行设置(intl为导入的模块名)。 ```js - var numberFormat = new intl.NumberFormat(); + let numberFormat = new Intl.NumberFormat(); ``` 另一种方法是使用开发者提供的Locale和格式化参数来创建数字格式化对象。其中,格式化参数是可选的,完整的格式化参数列表参见[NumberOptions](../reference/apis/js-apis-intl.md#numberoptions)。 ```js - var options = {compactDisplay: "short", notation: "compact"}; - var numberFormat = new intl.NumberFormat("zh-CN", options); + let options = {compactDisplay: "short", notation: "compact"}; + let numberFormat = new Intl.NumberFormat("zh-CN", options); ``` -2. 数字格式化。 +3. 数字格式化。 使用NumberFormat的format方法对传入的数字进行格式化。该方法返回一个字符串作为格式化的结果。 ```js - var number = 1234.5678 - var formatResult = numberFormat.format(number); + let options = {compactDisplay: "short", notation: "compact"}; + let numberFormat = new Intl.NumberFormat("zh-CN", options); + let number = 1234.5678; + let formatResult = numberFormat.format(number); // formatResult = "1235" ``` -3. 访问数字格式化对象的相关属性。 +4. 访问数字格式化对象的相关属性。 NumberFormat的resolvedOptions方法会返回一个对象,该对象包含了NumberFormat对象的所有相关属性及其值。 ```js - var options = numberFormat.resolvedOptions(); + let options = {compactDisplay: "short", notation: "compact"}; + let numberFormat = new Intl.NumberFormat("zh-CN", options); + let resolvedOptions = numberFormat.resolvedOptions(); // resolvedOptions = {"locale": "zh-CN", "compactDisplay": "short", "notation": "compact", "numberingSystem": "Latn"} ``` ## 字符串排序 @@ -181,45 +215,59 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | -------- | -------- | -------- | -| ohos.intl | constructor()8+ | 创建排序对象。 | -| ohos.intl | constructor(locale:string\|Array<string>,options?:CollatorOptions)8+ | 创建排序对象,并设置提供的locale和其他相关属性。 | -| ohos.intl | compare(first:string,second:string):number8+ | 依据排序对象的Locale及其属性,计算两个字符串的比较结果。 | -| ohos.intl | resolvedOptions():CollatorOptions8+ | 获取排序对象的相关属性。 | +| Collator | constructor()8+ | 创建排序对象。 | +| Collator | constructor(locale:string\|Array<string>,options?:CollatorOptions)8+ | 创建排序对象,并设置提供的locale和其他相关属性。 | +| Collator | compare(first:string,second:string):number8+ | 依据排序对象的Locale及其属性,计算两个字符串的比较结果。 | +| Collator | resolvedOptions():CollatorOptions8+ | 获取排序对象的相关属性。 | ### 开发步骤 -1. 实例化排序对象。 +1. 导入Intl模块。 + + 未正确导入包可能会产生不明确的接口行为。 + + ```js + import Intl from '@ohos.intl'; + ``` + +2. 实例化排序对象。 一种方法是使用Collator提供的默认构造函数,通过访问系统的语言和地区以获取系统默认Locale并进行设置(intl为导入的模块名)。 ```js - var collator = new intl.Collator(); + let collator = new Intl.Collator(); ``` - 另一种方法是使用开发者提供的Locale和其他相关参数来创建Collator对象,完整的参数列表参见[CollatorOptions](../reference/apis/js-apis-intl.md#collatoroptions9)。 + 另一种方法是使用开发者提供的Locale和其他相关参数来创建Collator对象,完整的参数列表参见[CollatorOptions](../reference/apis/js-apis-intl.md#collatoroptions8)。 + 其中,sensitivity参数用于控制哪些级别的差异会被用于比较两个字符串。取值"base"表示,仅比较字符本身,不考虑重音符号、大小写差异。例如,'a' != 'b','a' == 'á','a' == 'A'。取值"accent"表示考虑重音符号,不考虑大小写的差异。例如,'a' != 'b','a' != 'á','a' == 'A'。取值"case"表示考虑大小写的差异,不考虑重音符号的差异。例如,'a' != 'b','a' == 'á','a' != 'A'。取值"variant"表示考虑重音符号、大小写等方面差异。例如'a' != 'b','a' != 'á','a' != 'A'。 ```js - var collator= new intl.Collator("zh-CN", {localeMatcher: "best fit", usage: "sort"}); + let collator= new Intl.Collator("zh-CN", {localeMatcher: "best fit", usage: "sort", sensitivity: "case"}); ``` -2. 比较字符串。 +3. 比较字符串。 使用Collator的compare方法对传入的两个字符串进行比较。该方法返回一个数值作为比较的结果,返回-1表示第一个字符串小于第二个字符串,返回1表示第一个字符大于第二个字符串,返回0表示两个字符串相同。基于两个字符串的比较结果,开发者可以字符串集合进行排序。 ```js - var str1 = "first string"; - var str2 = "second string"; - var compareResult = collator.compare(str1, str2); + let collator= new Intl.Collator("zh-CN", {localeMatcher: "best fit", usage: "sort", sensitivity: "case"}); + let str1 = "first string"; + let str2 = "second string"; + let compareResult = collator.compare(str1, str2); // compareResult = -1 + str1 = "first"; + str2 = "First"; + compareResult = collator.compare(str1, str2); // compareResult = -1 ``` -3. 访问排序对象的相关属性。 +4. 访问排序对象的相关属性。 Collator的resolvedOptions方法会返回一个对象,该对象包含了Collator对象的所有相关属性及其值。 ```js - var options = collator.resolvedOptions(); + let collator= new Intl.Collator("zh-CN", {localeMatcher: "best fit", usage: "sort"}); + let options = collator.resolvedOptions(); // options = {"localeMatcher": "best fit", "locale": "zh-CN", "usage": "sort", "sensitivity": "variant", "ignorePunctuation": "false", "numeric": false, "caseFirst": "false", "collation": "default"} ``` ## 判定单复数类别 @@ -228,36 +276,45 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | -------- | -------- | -------- | -| ohos.intl | constructor()8+ | 创建单复数对象。 | -| ohos.intl | constructor(locale:string\|Array<string>,options?:PluralRulesOptions)8+ | 创建单复数对象,并设置提供的locale和其他相关属性。 | -| ohos.intl | select(n:number):string8+ | 依据单复数对象的Locale及其他格式化属性,计算数字的单复数类别。 | +| PluralRules | constructor()8+ | 创建单复数对象。 | +| PluralRules | constructor(locale:string\|Array<string>,options?:PluralRulesOptions)8+ | 创建单复数对象,并设置提供的locale和其他相关属性。 | +| PluralRules | select(n:number):string8+ | 依据单复数对象的Locale及其他格式化属性,计算数字的单复数类别。 | ### 开发步骤 -1. 实例化单复数对象。 +1. 导入Intl模块。 + + 未正确导入包可能会产生不明确的接口行为。 + + ```js + import Intl from '@ohos.intl'; + ``` + +2. 实例化单复数对象。 一种方法是使用PluralRules提供的默认构造函数,通过访问系统的语言和地区以获取系统默认Locale并进行设置(intl为导入的模块名)。 ```js - var pluralRules = new intl.PluralRules(); + let pluralRules = new Intl.PluralRules(); ``` - 另一种方法是使用开发者提供的Locale和其他相关参数来创建单复数对象。完整的参数列表参见[PluralRulesOptions](../reference/apis/js-apis-intl.md#pluralrulesoptions9)。 + 另一种方法是使用开发者提供的Locale和其他相关参数来创建单复数对象。完整的参数列表参见[PluralRulesOptions](../reference/apis/js-apis-intl.md#pluralrulesoptions8)。 ```js - var pluralRules = new intl.PluralRules("zh-CN", {localeMatcher: "best fit", type: "cardinal"}); + let pluralRules = new Intl.PluralRules("zh-CN", {localeMatcher: "best fit", type: "cardinal"}); ``` -2. 计算数字单复数类别。 +3. 计算数字单复数类别。 使用PluralRules的select方法计算传入数字的单复数类别。该方法返回一个字符串作为传入数字的类别,包括:"zero", "one", "two", "few", "many", "other"六个类别。 ```js - var number = 1234.5678 - var categoryResult = plurals.select(number); + let pluralRules = new Intl.PluralRules("zh-CN", {localeMatcher: "best fit", type: "cardinal"}); + let number = 1234.5678; + let categoryResult = pluralRules.select(number); // categoryResult = "other" ``` ## 相对时间格式化 @@ -266,56 +323,67 @@ ### 接口说明 -| 模块 | 接口名称 | 描述 | +| 类名 | 接口名称 | 描述 | | -------- | -------- | -------- | -| ohos.intl | constructor()8+ | 创建相对时间格式化对象。 | -| ohos.intl | constructor(locale:string\|Array<string>,options?:RelativeTimeFormatInputOptions)8+ | 创建相对时间格式化对象,并设置提供的locale和格式化相关属性。 | -| ohos.intl | format(value:number,unit:string):string8+ | 依据相对时间格式化对象的Locale及其他格式化属性,计算相对时间的格式化表示。 | -| ohos.intl | formatToParts(value:number,unit:string):Array<object>8+ | 依据相对时间格式化对象的Locale及其他格式化属性,返回相对时间格式化表示的各个部分。 | -| ohos.intl | resolvedOptions():RelativeTimeFormatResolvedOptions8+ | 获取相对时间格式化对象的相关属性。 | +| RelativeTimeFormat | constructor()8+ | 创建相对时间格式化对象。 | +| RelativeTimeFormat | constructor(locale:string\|Array<string>,options?:RelativeTimeFormatInputOptions)8+ | 创建相对时间格式化对象,并设置提供的locale和格式化相关属性。 | +| RelativeTimeFormat | format(value:number,unit:string):string8+ | 依据相对时间格式化对象的Locale及其他格式化属性,计算相对时间的格式化表示。 | +| RelativeTimeFormat | formatToParts(value:number,unit:string):Array<object>8+ | 依据相对时间格式化对象的Locale及其他格式化属性,返回相对时间格式化表示的各个部分。 | +| RelativeTimeFormat | resolvedOptions():RelativeTimeFormatResolvedOptions8+ | 获取相对时间格式化对象的相关属性。 | ### 开发步骤 -1. 实例化相对时间格式化对象。 +1. 导入Intl模块。 - 一种方法是使用RelativeTimeFormat提供的默认构造函数,通过访问系统的语言和地区以获取系统默认Locale并进行设置(intl为导入的模块名)。 + 未正确导入包可能会产生不明确的接口行为。 ```js - var relativeTimeFormat = new intl.RelativeTimeFormat(); + import Intl from '@ohos.intl'; ``` - 另一种方法是使用开发者提供的Locale和格式化参数来创建相对时间格式化对象。其中,格式化参数是可选的,完整的参数列表参见[ RelativeTimeFormatInputOptions](../reference/apis/js-apis-intl.md#relativetimeformatinputoptions9)。 +2. 实例化相对时间格式化对象。 + + 一种方法是使用RelativeTimeFormat提供的默认构造函数,通过访问系统的语言和地区以获取系统默认Locale并进行设置(intl为导入的模块名)。 + ```js + let relativeTimeFormat = new Intl.RelativeTimeFormat(); ``` - var relativeTimeFormat = new intl.RelativeTimeFormat("zh-CN", {numeric: "always", style: "long"}); + + 另一种方法是使用开发者提供的Locale和格式化参数来创建相对时间格式化对象。其中,格式化参数是可选的,完整的参数列表参见[ RelativeTimeFormatInputOptions](../reference/apis/js-apis-intl.md#relativetimeformatinputoptions8)。 + + ```js + let relativeTimeFormat = new Intl.RelativeTimeFormat("zh-CN", {numeric: "always", style: "long"}); ``` -2. 相对时间格式化。 +3. 相对时间格式化。 使用RelativeTimeFormat的format方法对相对时间进行格式化。方法接收一个表示相对时间长度的数值和表示单位的字符串,其中单位包括:"year", "quarter", "month", "week", "day", "hour", "minute", "second"。方法返回一个字符串作为格式化的结果。 ```js - var number = 2; - var unit = "year" - var formatResult = relativeTimeFormat.format(number, unit); + let relativeTimeFormat = new Intl.RelativeTimeFormat("zh-CN", {numeric: "always", style: "long"}); + let number = 2; + let unit = "year"; + let formatResult = relativeTimeFormat.format(number, unit); // 2年后 ``` -3. 获取相对时间格式化结果的各个部分。 +4. 获取相对时间格式化结果的各个部分。 获取相对时间格式化结果的各个部分,从而自定义格式化结果。 ```js - var number = 2; - var unit = "year" - var formatResult = relativeTimeFormat.formatToParts(number, unit); + let relativeTimeFormat = new Intl.RelativeTimeFormat("zh-CN", {numeric: "always", style: "long"}); + let number = 2; + let unit = "year"; + let formatPartsResult = relativeTimeFormat.formatToParts(number, unit); // formatPartsResult = [{"type": "integer", "value": "2", "unit": "year"}, {"type":"literal", "value": "年后"}] ``` -4. 访问相对时间格式化对象的相关属性。 +5. 访问相对时间格式化对象的相关属性。 RelativeTimeFormat的resolvedOptions方法会返回一个对象,该对象包含了RelativeTimeFormat对象的所有相关属性及其值,完整的属性列表参见[ RelativeTimeFormatResolvedOptions](../reference/apis/js-apis-intl.md#relativetimeformatresolvedoptions8)。 ```js - var options = numberFormat.resolvedOptions(); + let relativeTimeFormat = new Intl.RelativeTimeFormat("zh-CN", {numeric: "always", style: "long"}); + let options = relativeTimeFormat.resolvedOptions(); // options = {"locale": "zh-CN", "style": "long", "numeric": "always", "numberingSystem": "latn"} ``` ## 相关实例 diff --git a/zh-cn/application-dev/media/audio-capturer.md b/zh-cn/application-dev/media/audio-capturer.md index 577d93292181bcd30a2a0c964c8bcb566d69fe26..74e09bf19f2d5e75acab07a2132bdf11a87556a6 100644 --- a/zh-cn/application-dev/media/audio-capturer.md +++ b/zh-cn/application-dev/media/audio-capturer.md @@ -72,7 +72,7 @@ AudioCapturer提供了用于获取原始音频文件的方法。开发者可以 } await audioCapturer.start(); - let state = audioCapturer.state; + state = audioCapturer.state; if (state == audio.AudioState.STATE_RUNNING) { console.info('AudioRecLog: Capturer started'); } else { @@ -86,7 +86,7 @@ AudioCapturer提供了用于获取原始音频文件的方法。开发者可以 参考以下示例,将采集到的数据写入文件。 ```js - import fileio from '@ohos.fileio'; + import fs from '@ohos.file.fs'; let state = audioCapturer.state; // 只有状态为STATE_RUNNING的时候才可以read. @@ -96,31 +96,36 @@ AudioCapturer提供了用于获取原始音频文件的方法。开发者可以 } const path = '/data/data/.pulse_dir/capture_js.wav'; // 采集到的音频文件存储路径 - let fd = fileio.openSync(path, 0o102, 0o777); - if (fd !== null) { - console.info('AudioRecLog: file fd created'); - } - else{ - console.info('AudioRecLog: file fd create : FAILED'); + let file = fs.openSync(filePath, 0o2); + let fd = file.fd; + if (file !== null) { + console.info('AudioRecLog: file created'); + } else { + console.info('AudioRecLog: file create : FAILED'); return; } - - fd = fileio.openSync(path, 0o2002, 0o666); + if (fd !== null) { console.info('AudioRecLog: file fd opened in append mode'); } let numBuffersToCapture = 150; // 循环写入150次 + let count = 0; while (numBuffersToCapture) { + let bufferSize = await audioCapturer.getBufferSize(); let buffer = await audioCapturer.read(bufferSize, true); + let options = { + offset: count * this.bufferSize, + length: this.bufferSize + } if (typeof(buffer) == undefined) { console.info('AudioRecLog: read buffer failed'); } else { - let number = fileio.writeSync(fd, buffer); + let number = fs.writeSync(fd, buffer, options); console.info(`AudioRecLog: data written: ${number}`); - } - + } numBuffersToCapture--; + count++; } ``` @@ -189,7 +194,7 @@ AudioCapturer提供了用于获取原始音频文件的方法。开发者可以 let audioTime : number = await audioCapturer.getAudioTime(); // 获取合理的最小缓冲区大小 - let bufferSize : number = await audioCapturer.getBuffersize(); + let bufferSize : number = await audioCapturer.getBufferSize(); ``` 7. (可选)使用on('markReach')方法订阅采集器标记到达事件,使用off('markReach')取消订阅事件。 diff --git a/zh-cn/application-dev/media/audio-playback.md b/zh-cn/application-dev/media/audio-playback.md index 1bb5841f1cfd21accee96c6f3c7690ec9817385d..67bdd452684d8d1336ddf3229db2f02aeeed6d01 100644 --- a/zh-cn/application-dev/media/audio-playback.md +++ b/zh-cn/application-dev/media/audio-playback.md @@ -38,7 +38,7 @@ AudioPlayer支持的src媒体源输入类型可参考:[src属性说明](../ref ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' // 打印码流轨道信息 function printfDescription(obj) { @@ -112,14 +112,8 @@ async function audioPlayerDemo() { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\01.mp3 /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files" 命令,将其推送到设备上 let path = pathDir + '/01.mp3' - 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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; audioPlayer.src = fdPath; // 设置src属性,并触发'dataLoad'事件回调 } ``` @@ -128,7 +122,7 @@ async function audioPlayerDemo() { ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' export class AudioDemo { // 设置播放器回调函数 @@ -154,14 +148,8 @@ export class AudioDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\01.mp3 /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files" 命令,将其推送到设备上 let path = pathDir + '/01.mp3' - 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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; audioPlayer.src = fdPath; // 设置src属性,并触发'dataLoad'事件回调 } } @@ -171,7 +159,7 @@ export class AudioDemo { ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' export class AudioDemo { // 设置播放器回调函数 @@ -202,14 +190,8 @@ export class AudioDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\02.mp3 /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files" 命令,将其推送到设备上 let nextpath = pathDir + '/02.mp3' - await fileIO.open(nextpath).then((fdNumber) => { - nextFdPath = nextFdPath + '' + fdNumber; - console.info('open fd success fd is' + nextFdPath); - }, (err) => { - console.info('open fd failed err is' + err); - }).catch((err) => { - console.info('open fd failed err is' + err); - }); + let nextFile = await fs.open(nextpath); + nextFdPath = nextFdPath + '' + nextFile.fd; audioPlayer.src = nextFdPath; // 设置src属性,并重新触发触发'dataLoad'事件回调 } @@ -220,14 +202,8 @@ export class AudioDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\01.mp3 /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files" 命令,将其推送到设备上 let path = pathDir + '/01.mp3' - 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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; audioPlayer.src = fdPath; // 设置src属性,并触发'dataLoad'事件回调 } } @@ -237,7 +213,7 @@ export class AudioDemo { ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' export class AudioDemo { // 设置播放器回调函数 @@ -259,14 +235,8 @@ export class AudioDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\01.mp3 /data/app/el2/100/base/ohos.acts.multimedia.audio.audioplayer/haps/entry/files" 命令,将其推送到设备上 let path = pathDir + '/01.mp3' - 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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; audioPlayer.src = fdPath; // 设置src属性,并触发'dataLoad'事件回调 } } diff --git a/zh-cn/application-dev/media/audio-renderer.md b/zh-cn/application-dev/media/audio-renderer.md index fd7eb4a38e168704fa8c200de3ea2df6bfbeb37d..0599b33ab787febb7bfb7f3a38c0312d6cb35ba7 100644 --- a/zh-cn/application-dev/media/audio-renderer.md +++ b/zh-cn/application-dev/media/audio-renderer.md @@ -84,7 +84,7 @@ AudioRenderer提供了渲染音频文件和控制播放的接口,开发者可 将需要播放的音频数据读入缓冲区,重复调用write()方法写入。 ```js - import fileio from '@ohos.fileio'; + import fs from '@ohos.file.fs'; import audio from '@ohos.multimedia.audio'; async function writeBuffer(buf) { @@ -103,35 +103,33 @@ AudioRenderer提供了渲染音频文件和控制播放的接口,开发者可 // 此处是渲染器的合理的最小缓冲区大小(也可以选择其它大小的缓冲区) const bufferSize = await audioRenderer.getBufferSize(); let dir = globalThis.fileDir; //不可直接访问,没权限,切记!!!一定要使用沙箱路径 - const path = dir + '/file_example_WAV_2MG.wav'; // 需要渲染的音乐文件 实际路径为:/data/storage/el2/base/haps/entry/files/file_example_WAV_2MG.wav - console.info(`file path: ${ path}`); - let ss = fileio.createStreamSync(path, 'r'); - const totalSize = fileio.statSync(path).size; // 音乐文件大小 - let discardHeader = new ArrayBuffer(bufferSize); - ss.readSync(discardHeader); - let rlen = 0; - rlen += bufferSize; - - let id = setInterval(() => { - if (audioRenderer.state == audio.AudioState.STATE_RELEASED) { // 如果渲染器状态为release,停止渲染 - ss.closeSync(); - await audioRenderer.stop(); - clearInterval(id); - } - if (audioRenderer.state == audio.AudioState.STATE_RUNNING) { - if (rlen >= totalSize) { // 如果音频文件已经被读取完,停止渲染 - ss.closeSync(); - await audioRenderer.stop(); - clearInterval(id); - } - let buf = new ArrayBuffer(bufferSize); - rlen += ss.readSync(buf); - console.info(`Total bytes read from file: ${rlen}`); - writeBuffer(buf); - } else { - console.info('check after next interval'); + const filePath = dir + '/file_example_WAV_2MG.wav'; // 需要渲染的音乐文件 实际路径为:/data/storage/el2/base/haps/entry/files/file_example_WAV_2MG.wav + console.info(`file filePath: ${ filePath}`); + + let file = fs.openSync(filePath, fs.OpenMode.READ_ONLY); + let stat = await fs.stat(filePath); //音乐文件信息 + let buf = new ArrayBuffer(bufferSize); + let len = stat.size % this.bufferSize == 0 ? Math.floor(stat.size / this.bufferSize) : Math.floor(stat.size / this.bufferSize + 1); + for (let i = 0;i < len; i++) { + let options = { + offset: i * this.bufferSize, + length: this.bufferSize } - }, 30); // 定时器区间根据音频格式设置,单位为毫秒 + let readsize = await fs.read(file.fd, buf, options) + let writeSize = await new Promise((resolve,reject)=>{ + this.audioRenderer.write(buf,(err,writeSize)=>{ + if(err){ + reject(err) + }else{ + resolve(writeSize) + } + }) + }) + } + + fs.close(file) + await audioRenderer.stop(); //停止渲染 + await audioRenderer.release(); //释放资源 ``` 4. (可选)调用pause()方法或stop()方法暂停/停止渲染音频数据。 @@ -236,7 +234,7 @@ AudioRenderer提供了渲染音频文件和控制播放的接口,开发者可 let audioTime : number = await audioRenderer.getAudioTime(); // 获取合理的最小缓冲区大小 - let bufferSize : number = await audioRenderer.getBuffersize(); + let bufferSize : number = await audioRenderer.getBufferSize(); // 获取渲染速率 let renderRate : audio.AudioRendererRate = await audioRenderer.getRenderRate(); @@ -416,35 +414,31 @@ AudioRenderer提供了渲染音频文件和控制播放的接口,开发者可 let dir = globalThis.fileDir; //不可直接访问,没权限,切记!!!一定要使用沙箱路径 const path1 = dir + '/music001_48000_32_1.wav'; // 需要渲染的音乐文件 实际路径为:/data/storage/el2/base/haps/entry/files/music001_48000_32_1.wav console.info(`audioRender1 file path: ${ path1}`); - let ss1 = await fileio.createStream(path1,'r'); - const totalSize1 = fileio.statSync(path1).size; // 音乐文件大小 - console.info(`totalSize1 -------: ${totalSize1}`); - let discardHeader = new ArrayBuffer(bufferSize); - ss1.readSync(discardHeader); - let rlen = 0; - rlen += bufferSize; - - //2.7 通过audioRender对缓存区的原始音频数据进行渲染 - let id = setInterval(async () => { - if (audioRenderer1.state == audio.AudioState.STATE_RELEASED) { // 如果渲染器状态为release,停止渲染 - ss1.closeSync(); - audioRenderer1.stop(); - clearInterval(id); - } - if (audioRenderer1.state == audio.AudioState.STATE_RUNNING) { - if (rlen >= totalSize1) { // 如果音频文件已经被读取完,停止渲染 - ss1.closeSync(); - await audioRenderer1.stop(); - clearInterval(id); - } - let buf = new ArrayBuffer(bufferSize); - rlen += ss1.readSync(buf); - console.info(`Total bytes read from file: ${rlen}`); - await writeBuffer(buf, that.audioRenderer1); - } else { - console.info('check after next interval'); + let file1 = fs.openSync(path1, fs.OpenMode.READ_ONLY); + let stat = await fs.stat(path1); //音乐文件信息 + let buf = new ArrayBuffer(bufferSize); + let len = stat.size % this.bufferSize == 0 ? Math.floor(stat.size / this.bufferSize) : Math.floor(stat.size / this.bufferSize + 1); + + //1.7 通过audioRender对缓存区的原始音频数据进行渲染 + for (let i = 0;i < len; i++) { + let options = { + offset: i * this.bufferSize, + length: this.bufferSize } - }, 30); // 定时器区间根据音频格式设置,单位为毫秒 + let readsize = await fs.read(file.fd, buf, options) + let writeSize = await new Promise((resolve,reject)=>{ + this.audioRenderer1.write(buf,(err,writeSize)=>{ + if(err){ + reject(err) + }else{ + resolve(writeSize) + } + }) + }) + } + fs.close(file1) + await audioRenderer1.stop(); //停止渲染 + await audioRenderer1.release(); //释放资源 } async runningAudioRender2(){ @@ -488,39 +482,35 @@ AudioRenderer提供了渲染音频文件和控制播放的接口,开发者可 const bufferSize = await audioRenderer2.getBufferSize(); console.info(`audio bufferSize: ${bufferSize}`); - //2.6 读取原始音频数据文件 + //2.6 获取原始音频数据文件 let dir = globalThis.fileDir; //不可直接访问,没权限,切记!!!一定要使用沙箱路径 const path2 = dir + '/music002_48000_32_1.wav'; // 需要渲染的音乐文件 实际路径为:/data/storage/el2/base/haps/entry/files/music002_48000_32_1.wav - console.error(`audioRender1 file path: ${ path2}`); - let ss2 = await fileio.createStream(path2,'r'); - const totalSize2 = fileio.statSync(path2).size; // 音乐文件大小 - console.error(`totalSize2 -------: ${totalSize2}`); - let discardHeader2 = new ArrayBuffer(bufferSize); - ss2.readSync(discardHeader2); - let rlen = 0; - rlen += bufferSize; - + console.info(`audioRender2 file path: ${ path2}`); + let file2 = fs.openSync(path2, fs.OpenMode.READ_ONLY); + let stat = await fs.stat(path2); //音乐文件信息 + let buf = new ArrayBuffer(bufferSize); + let len = stat.size % this.bufferSize == 0 ? Math.floor(stat.size / this.bufferSize) : Math.floor(stat.size / this.bufferSize + 1); + //2.7 通过audioRender对缓存区的原始音频数据进行渲染 - let id = setInterval(async () => { - if (audioRenderer2.state == audio.AudioState.STATE_RELEASED) { // 如果渲染器状态为release,停止渲染 - ss2.closeSync(); - that.audioRenderer2.stop(); - clearInterval(id); + for (let i = 0;i < len; i++) { + let options = { + offset: i * this.bufferSize, + length: this.bufferSize } - if (audioRenderer1.state == audio.AudioState.STATE_RUNNING) { - if (rlen >= totalSize2) { // 如果音频文件已经被读取完,停止渲染 - ss2.closeSync(); - await audioRenderer2.stop(); - clearInterval(id); - } - let buf = new ArrayBuffer(bufferSize); - rlen += ss2.readSync(buf); - console.info(`Total bytes read from file: ${rlen}`); - await writeBuffer(buf, that.audioRenderer2); - } else { - console.info('check after next interval'); - } - }, 30); // 定时器区间根据音频格式设置,单位为毫秒 + let readsize = await fs.read(file.fd, buf, options) + let writeSize = await new Promise((resolve,reject)=>{ + this.audioRenderer2.write(buf,(err,writeSize)=>{ + if(err){ + reject(err) + }else{ + resolve(writeSize) + } + }) + }) + } + fs.close(file2) + await audioRenderer2.stop(); //停止渲染 + await audioRenderer2.release(); //释放资源 } async writeBuffer(buf, audioRender) { diff --git a/zh-cn/application-dev/media/avplayer-playback.md b/zh-cn/application-dev/media/avplayer-playback.md index bf14c204cedc43a1d601462a5a31482e4fa741a8..950ccd19857cd5704b86d82828c522e45ddde4aa 100644 --- a/zh-cn/application-dev/media/avplayer-playback.md +++ b/zh-cn/application-dev/media/avplayer-playback.md @@ -111,7 +111,7 @@ AVPlayer主要工作是将Audio/Video媒体资源转码为可供渲染的图像 ```js import media from '@ohos.multimedia.media' import audio from '@ohos.multimedia.audio'; -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' const TAG = 'AVPlayerDemo:' export class AVPlayerDemo { @@ -230,14 +230,8 @@ export class AVPlayerDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" 命令,将其推送到设备上 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) - }); + let file = await fs.open(path) + fdPath = fdPath + '' + file.fd this.avPlayer.url = fdPath } } @@ -247,7 +241,7 @@ export class AVPlayerDemo { ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' const TAG = 'AVPlayerDemo:' export class AVPlayerDemo { @@ -309,24 +303,18 @@ export class AVPlayerDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" 命令,将其推送到设备上 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) - }); + let file = await fs.open(path) + fdPath = fdPath + '' + file.fd this.avPlayer.url = fdPath } } ``` -### 视频切换场景 +### 单曲循环场景 ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' const TAG = 'AVPlayerDemo:' export class AVPlayerDemo { @@ -400,23 +388,17 @@ export class AVPlayerDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" 命令,将其推送到设备上 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) - }); + let file = await fs.open(path) + fdPath = fdPath + '' + file.fd this.avPlayer.url = fdPath } } ``` -### 单曲循环场景 +### 视频切换场景 ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' const TAG = 'AVPlayerDemo:' export class AVPlayerDemo { @@ -429,14 +411,8 @@ export class AVPlayerDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\H264_MP3.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" 命令,将其推送到设备上 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) - }); + let file = await fs.open(path) + fdPath = fdPath + '' + file.fd this.avPlayer.url = fdPath // 再次触发initialized状态机上报 } @@ -500,14 +476,8 @@ export class AVPlayerDemo { let pathDir = "/data/storage/el2/base/haps/entry/files" // pathDir在FA模型和Stage模型的获取方式不同,请参考开发步骤首行的说明,根据实际情况自行获取。 // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" 命令,将其推送到设备上 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) - }); + let file = await fs.open(path) + fdPath = fdPath + '' + file.fd this.avPlayer.url = fdPath } } diff --git a/zh-cn/application-dev/media/figures/zh-ch_image_avplayer_state_machine.png b/zh-cn/application-dev/media/figures/zh-ch_image_avplayer_state_machine.png index aa8afdbcbf142fd745cee03fc422caec51cfe41b..12adecd8865a9ff1faaa2c6654e8558f2fac77aa 100644 Binary files a/zh-cn/application-dev/media/figures/zh-ch_image_avplayer_state_machine.png and b/zh-cn/application-dev/media/figures/zh-ch_image_avplayer_state_machine.png differ diff --git a/zh-cn/application-dev/media/video-playback.md b/zh-cn/application-dev/media/video-playback.md index 7f8586dede5e4700319f05928c4e3666663f1351..ccc3a2126f56cd5778cbb1901cd6e08b12b1ec57 100644 --- a/zh-cn/application-dev/media/video-playback.md +++ b/zh-cn/application-dev/media/video-playback.md @@ -51,7 +51,7 @@ Xcomponent创建方法可参考:[Xcomponent创建方法](../reference/arkui-ts ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' export class VideoPlayerDemo { // 函数调用发生错误时用于上报错误信息 failureCallback(error) { @@ -82,14 +82,8 @@ export class VideoPlayerDemo { let fdPath = 'fd://' // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile" 命令,将其推送到设备上 let path = '/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; // 调用createVideoPlayer接口返回videoPlayer实例对象 await media.createVideoPlayer().then((video) => { if (typeof (video) != 'undefined') { @@ -180,7 +174,7 @@ export class VideoPlayerDemo { ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' export class VideoPlayerDemo { // 函数调用发生错误时用于上报错误信息 failureCallback(error) { @@ -211,14 +205,8 @@ export class VideoPlayerDemo { let fdPath = 'fd://' // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile" 命令,将其推送到设备上 let path = '/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; // 调用createVideoPlayer接口返回videoPlayer实例对象 await media.createVideoPlayer().then((video) => { if (typeof (video) != 'undefined') { @@ -267,7 +255,7 @@ export class VideoPlayerDemo { ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' export class VideoPlayerDemo { // 函数调用发生错误时用于上报错误信息 failureCallback(error) { @@ -299,14 +287,8 @@ export class VideoPlayerDemo { // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile" 命令,将其推送到设备上 let path = '/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/H264_AAC.mp4'; let nextPath = '/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/MP4_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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; // 调用createVideoPlayer接口返回videoPlayer实例对象 await media.createVideoPlayer().then((video) => { if (typeof (video) != 'undefined') { @@ -341,14 +323,8 @@ export class VideoPlayerDemo { // 获取下一个视频fd地址 fdPath = 'fd://' - await fileIO.open(nextPath).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); - }); + let nextFile = await fs.open(nextPath); + fdPath = fdPath + '' + nextFile.fd; // 设置第二个视频播放源 videoPlayer.url = fdPath; @@ -378,7 +354,7 @@ export class VideoPlayerDemo { ```js import media from '@ohos.multimedia.media' -import fileIO from '@ohos.fileio' +import fs from '@ohos.file.fs' export class VideoPlayerDemo { // 函数调用发生错误时用于上报错误信息 failureCallback(error) { @@ -409,14 +385,8 @@ export class VideoPlayerDemo { let fdPath = 'fd://' // path路径的码流可通过"hdc file send D:\xxx\H264_AAC.mp4 /data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile" 命令,将其推送到设备上 let path = '/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/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); - }); + let file = await fs.open(path); + fdPath = fdPath + '' + file.fd; // 调用createVideoPlayer接口返回videoPlayer实例对象 await media.createVideoPlayer().then((video) => { if (typeof (video) != 'undefined') { diff --git a/zh-cn/application-dev/napi/napi-guidelines.md b/zh-cn/application-dev/napi/napi-guidelines.md index dea04eac45bbf7cfe9a97e0f8bcd38728030439f..39a1a1d09fc3f4d02c3eb3a02e8274798b7acee4 100644 --- a/zh-cn/application-dev/napi/napi-guidelines.md +++ b/zh-cn/application-dev/napi/napi-guidelines.md @@ -17,6 +17,8 @@ js侧通过`import`引入native侧包含处理js逻辑的so,如:`import hell ### so命名规则 +**so命名必须符合以下规则:** + * 每个模块对应一个so。 * 如模块名为`hello`,则so的名字为`libhello.so`,`napi_module`中`nm_modname`字段应为`hello`,大小写与模块名保持一致,应用使用时写作:`import hello from 'libhello.so'`。 diff --git a/zh-cn/application-dev/quick-start/arkts-state-mgmt-application-level.md b/zh-cn/application-dev/quick-start/arkts-state-mgmt-application-level.md index 3a08b7c244d07db9ce87bfb28fef11600067da38..7e8c55efd865f4d4689be94fb4be6aecfb50717b 100644 --- a/zh-cn/application-dev/quick-start/arkts-state-mgmt-application-level.md +++ b/zh-cn/application-dev/quick-start/arkts-state-mgmt-application-level.md @@ -120,7 +120,7 @@ export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { // storage作为参数传递给loadContent接口 - windowStage.loadContent('pages/index', this.storage) + windowStage.loadContent('pages/Index', this.storage) } onWindowStageDestroy() { @@ -140,7 +140,7 @@ export default class MainAbility extends Ability { @Component组件获取数据 ```ts -// index.ets +// Index.ets let storage = LocalStorage.GetShared() @Entry(storage) diff --git a/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md b/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md index d69948b247444c57f39dfb6d6402d4423e244e9a..5691c58542787a93566ff2feda118fd608f5eda2 100644 --- a/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md +++ b/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md @@ -490,7 +490,7 @@ struct CompA { this.updateTotal() } - updateTotal(): number { + updateTotal(): void { let sum = 0; this.shopBasket.forEach((i) => { sum += i diff --git a/zh-cn/application-dev/quick-start/figures/hap-release.png b/zh-cn/application-dev/quick-start/figures/hap-release.png index 535c7ab70ee83ff9ef6ad69936e629c97a930035..8cdc278fa3b9c2cf3157ba475a2a6b235fefcff7 100644 Binary files a/zh-cn/application-dev/quick-start/figures/hap-release.png and b/zh-cn/application-dev/quick-start/figures/hap-release.png differ diff --git a/zh-cn/application-dev/quick-start/multi-hap-build-view.md b/zh-cn/application-dev/quick-start/multi-hap-build-view.md index 35255cd1a9f579149b4dbc3ee98cb6f6d26b8e90..b45343e654d906902445f943bcbd69edbd75f48c 100644 --- a/zh-cn/application-dev/quick-start/multi-hap-build-view.md +++ b/zh-cn/application-dev/quick-start/multi-hap-build-view.md @@ -16,8 +16,8 @@ IDE支持在一个应用工程中进行多个HAP的开发与构建,如[多HAP **说明:** - 该目录由IDE自动生成,名称不可更改。 - AppScope目录下面的文件名与Entry、Feature模块下面的文件名不能重复,否则IDE会报错。 - - entry或者featrue目录(名称可由开发者自定义) - - 由IDE引导开发者创建的Module,在该Module中实现应用的业务逻辑;可以创建多个Module,图中entry和featrue即是创建的两个Module。 + - entry或者feature目录(名称可由开发者自定义) + - 由IDE引导开发者创建的Module,在该Module中实现应用的业务逻辑;可以创建多个Module,图中entry和feature即是创建的两个Module。 - resources目录:放置该Module中所使用到的资源。 - ets目录:开发者的业务逻辑。 - [module.json5](module-configuration-file.md):配置该Module的描述信息,如:Module的名称、Module的入口代码路径、包含的组件信息等。 diff --git a/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md b/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md index 753eeee6cd73fb8f4a5adf2ffaa77799f32fb1bf..d592140c8371f4a16346248d401cc3f39a91d303 100644 --- a/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md +++ b/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md @@ -9,29 +9,37 @@ 开发者通过[DevEco Studio](https://developer.harmonyos.com/cn/develop/deveco-studio)工具按照业务的需要创建多个Module,在相应的Module中完成自身业务的开发。 ## 调试 -通过DevEco Studio编译打包,生成单个或者多个HAP,即可基于HAP进行调试。 +通过DevEco Studio编译打包,生成单个或者多个HAP,即可基于HAP进行调试。在调试前,需要先安装或更新HAP,以下介绍具体做法。 * 使用DevEco Studio进行调试 使用指导可参考[应用程序包调试方法](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-debugging-and-running-0000001263040487#section10491183521520),其中包括了单HAP与多HAP通过DevEco Studio工具的安装调试方法。 -* 使用[hdc_std工具](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md)(可通过OpenHarmony SDK获取,在SDK的toolchains目录下)进行调试 +* 使用[hdc工具](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md)(可通过OpenHarmony SDK获取,在SDK的toolchains目录下)进行调试 + + 在调试前,需要先安装或更新HAP,此处有两种方式。 + + 1. 直接使用hdc安装、更新HAP。 + + HAP的路径为开发平台上的文件路径,以Windows开发平台为例,命令参考如下: - 使用hdc_std安装HAP时,HAP的路径为开发平台上的文件路径,以Windows开发平台为例,命令参考如下: ``` // 安装、更新,多HAP可以指定多个文件路径 - hdc_std install C:\entry.hap C:\feature.hap + hdc install C:\entry.hap C:\feature.hap // 执行结果 install bundle successfully. // 卸载 - hdc_std uninstall com.example.myapplication + hdc uninstall com.example.myapplication // 执行结果 uninstall bundle successfully. ``` + + 2. 先执行hdc shell,再使用bm工具安装、更新HAP。 -* 使用[bm工具](../../application-dev/tools/bm-tool.md)进行调试 - - 使用bm工具进行安装、更新HAP时,传入的文件路径为真机上 的文件路径,命令参考如下: + HAP的文件路径为真机上的文件路径,命令参考如下: + ``` + // 先执行hdc shell才能使用bm工具 + hdc shell // 安装、更新,多HAP可以指定多个文件路径 bm install -p /data/app/entry.hap /data/app/feature.hap // 执行结果 @@ -41,6 +49,8 @@ // 执行结果 uninstall bundle successfully. ``` + 完成HAP安装或更新后,即可参考相关调试命令进行[调试](https://docs.openharmony.cn/pages/v3.2Beta/zh-cn/application-dev/tools/aa-tool.md/)。 + ## 发布 当开发的程序包满足发布要求时,可以在工具中打包编译生成App包。将该App包上架到应用市场云端,应用市场会对上架的App包校验签名,校验签名通过后会将App包中的HAP拆分出来,同时对拆分出的HAP重新添加签名,然后对HAP进行分发。 diff --git a/zh-cn/application-dev/quick-start/multi-hap-rules.md b/zh-cn/application-dev/quick-start/multi-hap-rules.md index df77b090d6dd40f522b6c9d779a22104aff5d7de..f93b0a208a9962263a897f6d8a711887ebfa38ab 100644 --- a/zh-cn/application-dev/quick-start/multi-hap-rules.md +++ b/zh-cn/application-dev/quick-start/multi-hap-rules.md @@ -7,7 +7,7 @@ - App Pack包中所有HAP的配置文件中的versionCode标签必须一致。 -- App Pack包中同一设备类型的所有HAP中必须有且只有一个entry类型的HAP,featrue类型的HAP可以有一个或者多个,也可以没有。 +- App Pack包中同一设备类型的所有HAP中必须有且只有一个entry类型的HAP,feature类型的HAP可以有一个或者多个,也可以没有。 - App Pack包中的每个HAP必须配置moduleName标签,同一设备类型的所有HAP对应的moduleName标签必须唯一。 diff --git a/zh-cn/application-dev/quick-start/start-overview.md b/zh-cn/application-dev/quick-start/start-overview.md index 820a82d324855613c5d2f54683cdc217995c39c2..17cfcb5a1cff589cbddf6bffb394eb122e882b3b 100644 --- a/zh-cn/application-dev/quick-start/start-overview.md +++ b/zh-cn/application-dev/quick-start/start-overview.md @@ -41,6 +41,6 @@ FA模型和Stage模型的整体架构和设计思想等更多区别,请见[应 1. 安装最新版[DevEco Studio](https://developer.harmonyos.com/cn/develop/deveco-studio)。 -2. 请参考[配置OpenHarmony SDK](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-setting-up-environment-0000001263160443),完成**DevEco Studio**的安装和开发环境配置。 +2. 请参考[配置OpenHarmony SDK](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ohos-setting-up-environment-0000001263160443-V3),完成**DevEco Studio**的安装和开发环境配置。 完成上述操作及基本概念的理解后,可参照[使用ArkTS语言进行开发(Stage模型)](start-with-ets-stage.md)、[使用ArkTS语言开发(FA模型)](start-with-ets-fa.md)、[使用JS语言开发(FA模型)](../quick-start/start-with-js-fa.md)中的任一章节进行下一步体验和学习。 \ No newline at end of file diff --git a/zh-cn/application-dev/quick-start/start-with-ets-fa.md b/zh-cn/application-dev/quick-start/start-with-ets-fa.md index ad73c71518790635d61d772bf5f43f5980cca4a2..51ab750e5ceb3b80a18cf1f7647da55361cffa82 100644 --- a/zh-cn/application-dev/quick-start/start-with-ets-fa.md +++ b/zh-cn/application-dev/quick-start/start-with-ets-fa.md @@ -20,7 +20,7 @@ > **说明:** > - > DevEco Studio V3.0 Beta3及更高版本支持使用ArkTS[低代码开发](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-low-code-development-0000001218440652)方式。 + > DevEco Studio V3.0 Beta3及更高版本支持使用ArkTS[低代码开发](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ohos-ide-low-code-overview-0000001445605884-V3)方式。 > > 低代码开发方式具有丰富的UI界面编辑功能,通过可视化界面开发方式快速构建布局,可有效降低开发者的上手成本并提升开发者构建UI界面的效率。 > diff --git a/zh-cn/application-dev/quick-start/start-with-ets-stage.md b/zh-cn/application-dev/quick-start/start-with-ets-stage.md index ca99c3a6b0e19ec10c5be2d83c67b9b9427d8430..4008a39eb51715155d08ffe8f0eb66d59db5b064 100644 --- a/zh-cn/application-dev/quick-start/start-with-ets-stage.md +++ b/zh-cn/application-dev/quick-start/start-with-ets-stage.md @@ -20,7 +20,7 @@ > **说明:** > - > 支持使用ArkTS[低代码开发](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-low-code-development-0000001218440652)方式。 + > 支持使用ArkTS[低代码开发](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ohos-ide-low-code-overview-0000001445605884-V3)方式。 > > 低代码开发方式具有丰富的UI界面编辑功能,通过可视化界面开发方式快速构建布局,可有效降低开发者的上手成本并提升开发者构建UI界面的效率。 > diff --git a/zh-cn/application-dev/quick-start/start-with-js-fa.md b/zh-cn/application-dev/quick-start/start-with-js-fa.md index 8dc0d1b5f542dda575ef77925d3b265d21b2cfe9..8782e189ec6d75d73c280c255aab5718e24ab91d 100644 --- a/zh-cn/application-dev/quick-start/start-with-js-fa.md +++ b/zh-cn/application-dev/quick-start/start-with-js-fa.md @@ -18,7 +18,7 @@ > **说明:** > - > DevEco Studio V2.2 Beta1及更高版本支持使用JS[低代码开发](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-low-code-development-0000001218440652)方式。 + > DevEco Studio V2.2 Beta1及更高版本支持使用JS[低代码开发](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ohos-ide-low-code-overview-0000001445605884-V3)方式。 > > 低代码开发方式具有丰富的UI界面编辑功能,通过可视化界面开发方式快速构建布局,可有效降低开发者的上手成本并提升开发者构建UI界面的效率。 > diff --git a/zh-cn/application-dev/reference/apis/Readme-CN.md b/zh-cn/application-dev/reference/apis/Readme-CN.md index 0776f4b8ba38f31b26d0f644b08a2f99dfd40ecc..af8d41f7b515766801124be0a98ad85ba74fa490 100755 --- a/zh-cn/application-dev/reference/apis/Readme-CN.md +++ b/zh-cn/application-dev/reference/apis/Readme-CN.md @@ -109,10 +109,11 @@ - [MissionSnapshot](js-apis-inner-application-missionSnapshot.md) - [ProcessData](js-apis-inner-application-processData.md) - [ProcessRunningInfo](js-apis-inner-application-processRunningInfo.md) - - [ProcessRunningInformation](js-apis-inner-application-processRunningInformation.md) + - [ProcessInformation](js-apis-inner-application-processInformation.md) - [ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md) - [UIAbilityContext](js-apis-inner-application-uiAbilityContext.md) - [shellCmdResult](js-apis-inner-application-shellCmdResult.md) + - [WindowExtensionContext](js-apis-inner-application-windowExtensionContext.md) - wantAgent - [triggerInfo](js-apis-inner-wantAgent-triggerInfo.md) - [wantAgentInfo](js-apis-inner-wantAgent-wantAgentInfo.md) @@ -146,13 +147,13 @@ - [abilityInfo](js-apis-bundleManager-abilityInfo.md) - [applicationInfo](js-apis-bundleManager-applicationInfo.md) - [bundleInfo](js-apis-bundleManager-bundleInfo.md) + - [BundlePackInfo](js-apis-bundleManager-BundlePackInfo.md) - [dispatchInfo](js-apis-bundleManager-dispatchInfo.md) - [elementName](js-apis-bundleManager-elementName.md) - [extensionAbilityInfo](js-apis-bundleManager-extensionAbilityInfo.md) - [hapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) - [launcherAbilityInfo](js-apis-bundleManager-launcherAbilityInfo.md) - [metadata](js-apis-bundleManager-metadata.md) - - [packInfo](js-apis-bundleManager-packInfo.md) - [permissionDef](js-apis-bundleManager-permissionDef.md) - [remoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md) - [shortcutInfo](js-apis-bundleManager-shortcutInfo.md) @@ -323,10 +324,10 @@ - [@ohos.settings (设置数据项名称)](js-apis-settings.md) - [@ohos.stationary (设备状态感知框架)](js-apis-stationary.md) - [@ohos.systemCapability (系统能力)](js-apis-system-capability.md) - - [@ohos.systemParameterV9 (系统属性)](js-apis-system-parameterV9.md) + - [@ohos.systemParameterEnhance (系统参数)](js-apis-system-parameterEnhance.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) - 帐号管理 @@ -388,6 +389,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/figures/zh-cn_image_0000001219864133.PNG b/zh-cn/application-dev/reference/apis/figures/zh-cn_image_0000001219864133.PNG index eababe89d532f5e3f2bdd2e8d6449782054dc348..07ac9bc91d11e50df13af4f435305a4fc62db013 100644 Binary files a/zh-cn/application-dev/reference/apis/figures/zh-cn_image_0000001219864133.PNG and b/zh-cn/application-dev/reference/apis/figures/zh-cn_image_0000001219864133.PNG differ 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 6179c5c2ef17caeec9618fbc6e49d7efbb79e8f1..b35be539bcbb12b2dc1b9d8d80879622aa8982e7 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 daa313f03ac4e5a095acf2cdc86ffc9e95d17b94..68913e83d94e67ca66b91b7f1546f83fa822e09e 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 @@ -30,8 +30,8 @@ class MainAbility extends Ability { | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| abilityInfo | AbilityInfo | 是 | 否 | Abilityinfo相关信息 | -| currentHapModuleInfo | HapModuleInfo | 是 | 否 | 当前hap包的信息 | +| abilityInfo | [AbilityInfo](js-apis-bundleManager-abilityInfo.md) | 是 | 否 | Abilityinfo相关信息 | +| currentHapModuleInfo | [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) | 是 | 否 | 当前hap包的信息 | | config | [Configuration](js-apis-application-configuration.md) | 是 | 否 | 表示配置信息。 | ## AbilityContext.startAbility @@ -40,6 +40,11 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; 启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **参数:** @@ -59,7 +64,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapp", abilityName: "MyAbility" }; @@ -89,6 +94,11 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& 启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **参数:** @@ -96,7 +106,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形式返回启动结果。 | **错误码:** @@ -109,12 +119,12 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var options = { + let options = { windowMode: 0 }; @@ -142,6 +152,11 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; 启动Ability(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 **参数:** @@ -149,7 +164,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所携带的参数。 | **返回值:** @@ -167,11 +182,11 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapp", abilityName: "MyAbility" }; - var options = { + let options = { windowMode: 0, }; @@ -198,7 +213,15 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): void; -启动Ability并在该Ability退出的时候返回执行结果(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动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 @@ -219,7 +242,7 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -248,7 +271,15 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback<AbilityResult>): void; -启动Ability并在该Ability退出的时候返回执行结果(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动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 @@ -257,7 +288,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)> | 是 | 执行结果回调函数。 | **错误码:** @@ -270,12 +301,12 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var options = { + let options = { windowMode: 0, }; @@ -303,7 +334,15 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityResult>; -启动Ability并在该Ability退出的时候返回执行结果(promise形式)。 +启动一个Ability。Ability被启动后,有如下情况(promise形式): + - 正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动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 @@ -312,7 +351,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所携带的参数。 | **返回值:** @@ -331,11 +370,11 @@ startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityRes **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapp", abilityName: "MyAbility" }; - var options = { + let options = { windowMode: 0, }; @@ -363,6 +402,11 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC 启动一个Ability并在该Ability帐号销毁时返回执行结果(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 跨应用场景下,目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md) + **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -375,7 +419,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| callback | AsyncCallback\ | 是 | 启动Ability的回调函数,返回Ability结果。 | +| callback | AsyncCallback\<[AbilityResult](js-apis-inner-ability-abilityResult.md)\> | 是 | 启动Ability的回调函数,返回Ability结果。 | **错误码:** @@ -387,12 +431,12 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityForResultWithAccount(want, accountId, (error, result) => { @@ -420,6 +464,11 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp 启动一个Ability并在该Ability帐号销毁时返回执行结果(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md) + **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -432,7 +481,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的回调函数。 | **错误码:** @@ -445,13 +494,13 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -481,6 +530,11 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartO 启动一个Ability并在该Ability帐号销毁时返回执行结果(promise形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md) + **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -493,13 +547,13 @@ 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所携带的参数。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Promise<AbilityResult> | 返回一个Promise,包含Ability结果。 | +| Promise<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | 返回一个Promise,包含Ability结果。 | **错误码:** @@ -511,13 +565,13 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartO **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -566,7 +620,7 @@ startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -616,7 +670,7 @@ startServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -670,12 +724,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId, (error) => { @@ -724,12 +778,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\ **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId) @@ -775,7 +829,7 @@ stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -825,7 +879,7 @@ stopServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -879,12 +933,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.stopServiceExtensionAbilityWithAccount(want, accountId, (error) => { @@ -933,12 +987,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.stopServiceExtensionAbilityWithAccount(want, accountId) @@ -1034,7 +1088,7 @@ terminateSelf(): Promise<void>; terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<void>): void; -停止Ability,配合startAbilityForResult使用,返回给接口调用方AbilityResult信息(callback形式)。 +停止当前的Ability。如果该Ability是通过调用[startAbilityForResult](#abilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时会将结果返回给调用者,如果该Ability不是通过调用[startAbilityForResult](#abilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时不会有结果返回给调用者(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1055,13 +1109,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 } @@ -1090,6 +1144,7 @@ terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<voi terminateSelfWithResult(parameter: AbilityResult): Promise<void>; 停止Ability,配合startAbilityForResult使用,返回给接口调用方AbilityResult信息(promise形式)。 +停止当前的Ability。如果该Ability是通过调用[startAbilityForResult](#abilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时会将结果返回给调用者,如果该Ability不是通过调用[startAbilityForResult](#abilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时不会有结果返回给调用者(promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1116,13 +1171,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 } @@ -1178,18 +1233,18 @@ connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - 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) { @@ -1236,19 +1291,19 @@ connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - 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) { @@ -1289,7 +1344,7 @@ disconnectServiceExtensionAbility(connection: number): Promise\; ```ts // connection为connectServiceExtensionAbility中的返回值 - var connection = 1; + let connection = 1; try { this.context.disconnectServiceExtensionAbility(connection) @@ -1335,7 +1390,7 @@ disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback\ { @@ -1361,6 +1416,11 @@ startAbilityByCall(want: Want): Promise<Caller>; 启动指定Ability至前台或后台,同时获取其Caller通信接口,调用方可使用Caller与被启动的Ability进行通信。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **系统API**: 此接口为系统接口,三方应用不支持调用。 @@ -1382,10 +1442,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: "MainAbility", @@ -1413,10 +1473,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: "MainAbility", @@ -1450,6 +1510,11 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< 根据account启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md) + **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1474,12 +1539,12 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityWithAccount(want, accountId, (error) => { @@ -1506,6 +1571,11 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca 根据account启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md) + **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1518,7 +1588,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的回调函数。 | **错误码:** @@ -1531,13 +1601,13 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -1566,6 +1636,11 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): 根据account启动Ability(Promise形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md) + **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1578,7 +1653,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所携带的参数。 | **错误码:** @@ -1590,13 +1665,13 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -1685,16 +1760,16 @@ setMissionIcon(icon: image.PixelMap, callback:AsyncCallback\): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| icon | image.PixelMap | 是 | 在最近的任务中显示的ability图标。 | +| icon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 在最近的任务中显示的ability图标。 | | callback | AsyncCallback\ | 是 | 指定的回调函数的结果。 | **示例:** ```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 @@ -1727,7 +1802,7 @@ setMissionIcon(icon: image.PixelMap): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| icon | image.PixelMap | 是 | 在最近的任务中显示的ability图标。 | +| icon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 在最近的任务中显示的ability图标。 | **返回值:** @@ -1739,9 +1814,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 @@ -1779,7 +1854,7 @@ restoreWindowStage(localStorage: LocalStorage) : void; **示例:** ```ts - var storage = new LocalStorage(); + let storage = new LocalStorage(); this.context.restoreWindowStage(storage); ``` @@ -1800,6 +1875,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-dataUriUtils.md b/zh-cn/application-dev/reference/apis/js-apis-ability-dataUriUtils.md index 2a85d32b2cc1970813fa8685d34227161915e7f7..0d5aaf26a22bdc5cd384f4412131cbbd1e2dec6b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-dataUriUtils.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-dataUriUtils.md @@ -1,6 +1,6 @@ # @ohos.ability.dataUriUtils (DataUriUtils模块) -DataUriUtils模块提供用于处理使用DataAbilityHelper方案的对象的实用程序类的能力,包括获取,添加,更新给定uri的路径组件末尾的ID。 +DataUriUtils模块提供用于处理uri对象的能力,包括获取、绑定、删除和更新指定uri对象的路径末尾的ID。本模块将被app.ability.dataUriUtils模块替代,建议优先使用[@ohos.app.ability.dataUriUtils](js-apis-app-ability-dataUriUtils.md)模块。 > **说明:** > @@ -16,7 +16,7 @@ import dataUriUtils from '@ohos.ability.dataUriUtils'; getId(uri: string): number -获取附加到给定uri的路径组件末尾的ID。 +获取指定uri路径末尾的ID。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -24,18 +24,18 @@ getId(uri: string): number | 参数名 | 类型 | 必填 | 说明 | | ---- | ------ | ---- | --------------------------- | -| uri | string | 是 | 指示要从中获取ID的uri对象。 | +| uri | string | 是 | 表示uri对象。 | **返回值:** | 类型 | 说明 | | ------ | ------------------------ | -| number | 附加到路径组件末尾的ID。 | +| number | 返回uri路径末尾的ID。 | **示例:** ```ts -dataUriUtils.getId("com.example.dataUriUtils/1221") +let id = dataUriUtils.getId("com.example.dataUriUtils/1221"); ``` @@ -44,7 +44,7 @@ dataUriUtils.getId("com.example.dataUriUtils/1221") attachId(uri: string, id: number): string -将给定ID附加到给定uri的路径组件的末尾。 +将ID附加到uri的路径末尾。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -52,22 +52,22 @@ attachId(uri: string, id: number): string | 参数名 | 类型 | 必填 | 说明 | | ---- | ------ | ---- | --------------------------- | -| uri | string | 是 | 指示要从中获取ID的uri对象。 | -| id | number | 是 | 指示要附加的ID。 | +| uri | string | 是 | 表示uri对象。 | +| id | number | 是 | 表示要附加的ID。 | **返回值:** | 类型 | 说明 | | ------ | --------------------- | -| string | 附加给定ID的uri对象。 | +| string | 返回附加ID之后的uri对象。 | **示例:** ```ts -var idint = 1122; -dataUriUtils.attachId( +let id = 1122; +let uri = dataUriUtils.attachId( "com.example.dataUriUtils", - idint, + id, ) ``` @@ -77,7 +77,7 @@ dataUriUtils.attachId( deleteId(uri: string): string -从给定uri的路径组件的末尾删除ID。 +删除指定uri路径末尾的ID。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -85,18 +85,18 @@ deleteId(uri: string): string | 参数名 | 类型 | 必填 | 说明 | | ---- | ------ | ---- | --------------------------- | -| uri | string | 是 | 指示要从中删除ID的uri对象。 | +| uri | string | 是 | 表示要从中删除ID的uri对象。 | **返回值:** | 类型 | 说明 | | ------ | ------------------- | -| string | ID已删除的uri对象。 | +| string | 返回删除ID之后的uri对象。 | **示例:** ```ts -dataUriUtils.deleteId("com.example.dataUriUtils/1221") +let uri = dataUriUtils.deleteId("com.example.dataUriUtils/1221") ``` @@ -113,22 +113,22 @@ updateId(uri: string, id: number): string | 参数名 | 类型 | 必填 | 说明 | | ---- | ------ | ---- | ------------------- | -| uri | string | 是 | 指示要更新的uri对象 | -| id | number | 是 | 指示新ID | +| uri | string | 是 | 表示uri对象 | +| id | number | 是 | 表示要更新的ID | **返回值:** | 类型 | 说明 | | ------ | --------------- | -| string | 更新的uri对象。 | +| string | 返回更新ID之后的uri对象。 | **示例:** ```ts -var idint = 1122; -dataUriUtils.updateId( - "com.example.dataUriUtils", - idint +let id = 1122; +let uri = dataUriUtils.updateId( + "com.example.dataUriUtils/1221", + id ) ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-ability-errorCode.md b/zh-cn/application-dev/reference/apis/js-apis-ability-errorCode.md index cc7f3cd647ad9875d302343fe152ecad4b3c47bd..b66275351ef87e69938efc7cbc1a743efe44b7b2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-errorCode.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-errorCode.md @@ -1,8 +1,6 @@ # @ohos.ability.errorCode (ErrorCode) -ErrorCode是定义启动功能时使用的错误代码。 - -本模块提供使用的错误代码的能力,包括没有错误,无效的参数等。 +ErrorCode定义启动Ability时返回的错误码,包括无效的参数、权限拒绝等。 > **说明:** > @@ -16,13 +14,13 @@ import errorCode from '@ohos.ability.errorCode' ## ErrorCode -定义启动功能时使用的错误代码。 +定义启动Ability时返回的错误码。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core | 名称 | 值 | 说明 | | ------------------------------ | ---- | ---------------------------------------- | -| NO_ERROR | 0 | 没有错误。 | +| NO_ERROR | 0 | 没有异常。 | | INVALID_PARAMETER | -1 | 无效的参数。 | | ABILITY_NOT_FOUND | -2 | 找不到ABILITY。 | -| PERMISSION_DENY | -3 | 拒绝许可。 | \ No newline at end of file +| PERMISSION_DENY | -3 | 权限拒绝。 | \ 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 580f5f20ab040d0b779bf8843f59e8f070007ece..888f7536074351fc4314d25d7f6ee7c6b4462be7 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 @@ -1,6 +1,6 @@ # @ohos.ability.featureAbility (FeatureAbility模块) -FeatureAbility模块提供带有UI设计与用户交互的能力,包括启动新的ability、获取dataAbilityHelper、设置此Page Ability、获取当前Ability对应的窗口,连接服务等。 +FeatureAbility模块提供与用户进行交互的Ability的能力,包括启动新的Ability、停止Ability、获取dataAbilityHelper对象、获取当前Ability对应的窗口,连接断连Service等。 > **说明:** > @@ -9,7 +9,7 @@ FeatureAbility模块提供带有UI设计与用户交互的能力,包括启动 ## 使用限制 -FeatureAbility模块的接口只能在Page类型的Ability调用 +FeatureAbility模块的接口只能在Page类型的Ability中调用 ## 导入模块 @@ -21,7 +21,12 @@ import featureAbility from '@ohos.ability.featureAbility'; startAbility(parameter: StartAbilityParameter, callback: AsyncCallback\): void -启动新的ability(callback形式)。 +启动新的Ability(callback形式)。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(FA模型)](../../application-models/component-startup-rules-fa.md) **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -30,13 +35,13 @@ startAbility(parameter: StartAbilityParameter, callback: AsyncCallback\) | 参数名 | 类型 | 必填 | 说明 | | --------- | ---------------------------------------- | ---- | -------------- | | parameter | [StartAbilityParameter](js-apis-inner-ability-startAbilityParameter.md) | 是 | 表示被启动的Ability。 | -| callback | AsyncCallback\ | 是 | 被指定的回调方法。 | +| callback | AsyncCallback\ | 是 | 以callback的形式返回启动Ability的结果。 | **示例:** ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbility( { want: @@ -48,7 +53,7 @@ featureAbility.startAbility( deviceId: "", bundleName: "com.example.myapplication", /* FA模型中abilityName由package + Ability name组成 */ - abilityName: "com.example.entry.secondAbility", + abilityName: "com.example.myapplication.secondAbility", uri: "" }, }, @@ -64,7 +69,12 @@ featureAbility.startAbility( startAbility(parameter: StartAbilityParameter): Promise\ -启动新的ability(Promise形式)。 +启动新的Ability(Promise形式)。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(FA模型)](../../application-models/component-startup-rules-fa.md) **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -74,11 +84,17 @@ startAbility(parameter: StartAbilityParameter): Promise\ | --------- | ---------------------------------------- | ---- | -------------- | | parameter | [StartAbilityParameter](js-apis-inner-ability-startAbilityParameter.md) | 是 | 表示被启动的Ability。 | +**返回值:** + +| 类型 | 说明 | +| ---------------------------------------- | ------- | +| Promise\ | Promise形式返回启动Ability结果。 | + **示例:** ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbility( { want: @@ -90,7 +106,7 @@ featureAbility.startAbility( deviceId: "", bundleName: "com.example.myapplication", /* FA模型中abilityName由package + Ability name组成 */ - abilityName: "com.example.entry.secondAbility", + abilityName: "com.example.myapplication.secondAbility", uri: "" }, } @@ -103,7 +119,7 @@ featureAbility.startAbility( acquireDataAbilityHelper(uri: string): DataAbilityHelper -获取dataAbilityHelper。 +获取dataAbilityHelper对象。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -111,19 +127,19 @@ acquireDataAbilityHelper(uri: string): DataAbilityHelper | 参数名 | 类型 | 必填 | 说明 | | ---- | ------ | ---- | ------------ | -| uri | string | 是 | 指示要打开的文件的路径。 | +| uri | string | 是 | 表示要打开的文件的路径。 | **返回值:** | 类型 | 说明 | | ----------------- | ------------------------------- | -| DataAbilityHelper | 用来协助其他Ability访问DataAbility的工具类。 | +| [DataAbilityHelper](js-apis-inner-ability-dataAbilityHelper.md) | 用来协助其他Ability访问DataAbility的工具类。 | **示例:** ```ts import featureAbility from '@ohos.ability.featureAbility'; -var dataAbilityHelper = featureAbility.acquireDataAbilityHelper( +let dataAbilityHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); ``` @@ -132,7 +148,15 @@ var dataAbilityHelper = featureAbility.acquireDataAbilityHelper( startAbilityForResult(parameter: StartAbilityParameter, callback: AsyncCallback\): void -启动一个ability,并在该ability被销毁时返回执行结果(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(FA模型)](../../application-models/component-startup-rules-fa.md) **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -141,13 +165,13 @@ startAbilityForResult(parameter: StartAbilityParameter, callback: AsyncCallback\ | 参数名 | 类型 | 必填 | 说明 | | --------- | ---------------------------------------- | ---- | -------------- | | parameter | [StartAbilityParameter](js-apis-inner-ability-startAbilityParameter.md) | 是 | 表示被启动的Ability。 | -| callback | AsyncCallback\<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | 是 | 被指定的回调方法。 | +| callback | AsyncCallback\<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | 是 | 以callback的形式返回启动Ability结果。 | **示例:** ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbilityForResult( { want: @@ -159,7 +183,7 @@ featureAbility.startAbilityForResult( deviceId: "", bundleName: "com.example.myapplication", /* FA模型中abilityName由package + Ability name组成 */ - abilityName: "com.example.entry.secondAbility", + abilityName: "com.example.myapplication.secondAbility", uri:"" }, }, @@ -173,7 +197,15 @@ featureAbility.startAbilityForResult( startAbilityForResult(parameter: StartAbilityParameter): Promise\ -启动一个ability,并在该ability被销毁时返回执行结果(Promise形式)。 +启动一个Ability。Ability被启动后,有如下情况(Promise形式): + - 正常情况下可通过调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(FA模型)](../../application-models/component-startup-rules-fa.md) **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -187,13 +219,13 @@ startAbilityForResult(parameter: StartAbilityParameter): Promise\ | 类型 | 说明 | | ---------------------------------------- | ------- | -| Promise\<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | 返回执行结果。 | +| Promise\<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | Promise形式返回启动Ability结果。 | **示例:** ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbilityForResult( { want: @@ -205,7 +237,7 @@ featureAbility.startAbilityForResult( deviceId: "", bundleName: "com.example.myapplication", /* FA模型中abilityName由package + Ability name组成 */ - abilityName: "com.example.entry.secondAbility", + abilityName: "com.example.myapplication.secondAbility", uri:"", parameters: { @@ -229,7 +261,7 @@ featureAbility.startAbilityForResult( terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback\): void -设置此Page Ability将返回给调用者的结果代码和数据并破坏此Page Ability(callback形式)。 +停止当前的Ability。如果该Ability是通过调用[startAbilityForResult](#featureabilitystartabilityforresult7)接口被拉起的,调用terminateSelfWithResult接口时会将结果返回给调用者,如果该Ability不是通过调用[startAbilityForResult](#featureabilitystartabilityforresult7)接口被拉起的,调用terminateSelfWithResult接口时不会有结果返回给调用者(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -237,14 +269,14 @@ terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback\ | 参数名 | 类型 | 必填 | 说明 | | --------- | ------------------------------- | ---- | -------------- | -| parameter | [AbilityResult](js-apis-inner-ability-abilityResult.md) | 是 | 表示被启动的Ability。 | -| callback | AsyncCallback\ | 是 | 被指定的回调方法。 | +| parameter | [AbilityResult](js-apis-inner-ability-abilityResult.md) | 是 | 表示停止Ability之后返回的结果。 | +| callback | AsyncCallback\ | 是 | 以callback的形式返回停止Ability结果。 | **示例:** ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.terminateSelfWithResult( { resultCode: 1, @@ -257,7 +289,7 @@ featureAbility.terminateSelfWithResult( deviceId: "", bundleName: "com.example.myapplication", /* FA模型中abilityName由package + Ability name组成 */ - abilityName: "com.example.entry.secondAbility", + abilityName: "com.example.myapplication.secondAbility", uri:"", parameters: { mykey0: 2222, @@ -281,7 +313,7 @@ featureAbility.terminateSelfWithResult( terminateSelfWithResult(parameter: AbilityResult): Promise\ -设置此Page Ability将返回给调用者的结果代码和数据并破坏此Page Ability(Promise形式)。 +停止当前的Ability。如果该Ability是通过调用[startAbilityForResult](#featureabilitystartabilityforresult7)接口被拉起的,调用terminateSelfWithResult接口时会将结果返回给调用者,如果该Ability不是通过调用[startAbilityForResult](#featureabilitystartabilityforresult7)接口被拉起的,调用terminateSelfWithResult接口时不会有结果返回给调用者(Promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -289,19 +321,19 @@ terminateSelfWithResult(parameter: AbilityResult): Promise\ | 参数名 | 类型 | 必填 | 说明 | | --------- | ------------------------------- | ---- | ------------- | -| parameter | [AbilityResult](js-apis-inner-ability-abilityResult.md) | 是 | 表示被启动的Ability | +| parameter | [AbilityResult](js-apis-inner-ability-abilityResult.md) | 是 | 表示停止Ability之后返回的结果 | **返回值:** | 类型 | 说明 | | -------------- | --------------- | -| Promise\ | 以Promise形式返回结果。 | +| Promise\ | 以Promise形式返回停止当前Ability结果。 | **示例:** ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.terminateSelfWithResult( { resultCode: 1, @@ -314,7 +346,7 @@ featureAbility.terminateSelfWithResult( deviceId: "", bundleName: "com.example.myapplication", /* FA模型中abilityName由package + Ability name组成 */ - abilityName: "com.example.entry.secondAbility", + abilityName: "com.example.myapplication.secondAbility", uri:"", parameters: { mykey0: 2222, @@ -345,7 +377,7 @@ hasWindowFocus(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------- | ---- | ---------------------------------------- | -| callback | AsyncCallback\ | 是 | 被指定的回调方法。
如果此Ability当前具有视窗焦点,则返回true;否则返回false。 | +| callback | AsyncCallback\ | 是 | 以callback的形式返回结果。
如果此Ability当前具有视窗焦点,则返回true;否则返回false。 | **示例:** @@ -368,7 +400,7 @@ hasWindowFocus(): Promise\ | 类型 | 说明 | | ----------------- | ------------------------------------- | -| Promise\ | 如果此Ability当前具有视窗焦点,则返回true;否则返回false。 | +| Promise\ | Promise形式返回结果,如果此Ability当前具有视窗焦点,则返回true;否则返回false。 | **示例:** @@ -383,7 +415,7 @@ featureAbility.hasWindowFocus().then((data) => { getWant(callback: AsyncCallback\): void -获取从Ability发送的Want(callback形式)。 +获取要拉起的Ability对应的Want(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -391,7 +423,7 @@ getWant(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------- | ---- | --------- | -| callback | AsyncCallback\<[Want](js-apis-application-want.md)> | 是 | 被指定的回调方法。 | +| callback | AsyncCallback\<[Want](js-apis-application-want.md)> | 是 | 以callback的形式返回want。 | **示例:** @@ -406,7 +438,7 @@ featureAbility.getWant((err, data) => { getWant(): Promise\ -获取从Ability发送的Want(Promise形式)。 +获取要拉起的Ability对应的Want(Promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -414,7 +446,7 @@ getWant(): Promise\ | 类型 | 说明 | | ----------------------- | ---------------- | -| Promise\<[Want](js-apis-application-want.md)> | 以Promise的形式返回结果。 | +| Promise\<[Want](js-apis-application-want.md)> | 以Promise的形式返回want。 | **示例:** @@ -443,7 +475,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)); }); @@ -453,7 +485,7 @@ context.getBundleName((err, data) => { terminateSelf(callback: AsyncCallback\): void -设置Page Ability返回给被调用方的结果代码和数据,并销毁此Page Ability(callback形式)。 +停止当前的Ability(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -461,7 +493,7 @@ terminateSelf(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------- | ---- | -------- | -| callback | AsyncCallback\ | 是 | 被指定的回调方法 | +| callback | AsyncCallback\ | 是 | 以callback的形式返回停止当前Ability结果 | **示例:** @@ -478,7 +510,7 @@ featureAbility.terminateSelf( terminateSelf(): Promise\ -设置Page Ability返回给被调用方的结果代码和数据,并销毁此Page Ability(Promise形式)。 +停止当前的Ability(Promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -486,7 +518,7 @@ terminateSelf(): Promise\ | 类型 | 说明 | | -------------- | ---------------- | -| Promise\ | 以Promise的形式返回结果。 | +| Promise\ | 以Promise的形式返回停止当前Ability结果。 | **示例:** @@ -501,7 +533,7 @@ featureAbility.terminateSelf().then((data) => { connectAbility(request: Want, options:ConnectOptions): number -将当前ability连接到指定ServiceAbility(callback形式)。 +将当前Ability与指定的ServiceAbility进行连接。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -510,13 +542,13 @@ connectAbility(request: Want, options:ConnectOptions): number | 参数名 | 类型 | 必填 | 说明 | | ------- | -------------- | ---- | --------------------- | | request | [Want](js-apis-application-want.md) | 是 | 表示被连接的ServiceAbility。 | -| options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 是 | 被指定的回调方法。 | +| options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 是 | 表示连接回调函数。 | **返回值:** | 类型 | 说明 | | ------ | -------------------- | -| number | 连接的ServiceAbilityID。 | +| number | 连接的ServiceAbility的ID(ID从0开始自增,每连接成功一次ID加1)。 | **示例:** @@ -532,11 +564,11 @@ 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", - abilityName: "ServiceAbilityA", + abilityName: "com.ix.ServiceAbility.ServiceAbilityA", }, { onConnect: onConnectCallback, @@ -558,8 +590,8 @@ disconnectAbility(connection: number, callback:AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | ---------- | -------------------- | ---- | ----------------------- | -| connection | number | 是 | 指定断开连接的ServiceAbilityID | -| callback | AsyncCallback\ | 是 | 被指定的回调方法 | +| connection | number | 是 | 表示断开连接的ServiceAbility的ID | +| callback | AsyncCallback\ | 是 | 以callback的形式返回断开连接结果 | **示例:** @@ -575,10 +607,10 @@ 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: "ServiceAbilityA", + abilityName: "com.ix.ServiceAbility.ServiceAbilityA", }, { onConnect: onConnectCallback, @@ -605,13 +637,13 @@ disconnectAbility(connection: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ----------------------- | -| connection | number | 是 | 指定断开连接的ServiceAbilityID | +| connection | number | 是 | 表示断开连接的ServiceAbility的ID | **返回值:** | 类型 | 说明 | | -------------- | --------------- | -| Promise\ | 以Promise形式返回结果。 | +| Promise\ | 以Promise形式返回断开连接结果。 | **示例:** @@ -627,10 +659,10 @@ 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: "ServiceAbilityA", + abilityName: "com.ix.ServiceAbility.ServiceAbilityA", }, { onConnect: onConnectCallback, @@ -659,7 +691,7 @@ getWindow(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------- | ---- | ----------------------------- | -| callback | AsyncCallback\ | 是 | 返回与当前Ability对应的窗口。 | +| callback | AsyncCallback\<[window.Window](js-apis-window.md#window)> | 是 | callback形式返回当前Ability对应的窗口。 | **示例:** @@ -681,7 +713,7 @@ getWindow(): Promise\; | 类型 | 说明 | | ----------------------- | ----------------------------- | -| Promise\ | 返回与当前Ability对应的窗口。 | +| Promise\<[window.Window](js-apis-window.md#window)> | Promise形式返回当前Ability对应的窗口。 | **示例:** @@ -693,7 +725,7 @@ featureAbility.getWindow().then((data) => { ## AbilityWindowConfiguration -使用时通过featureAbility.AbilityWindowConfiguration获取。 +表示当前Ability对应的窗口配置项,使用时通过featureAbility.AbilityWindowConfiguration获取。 **示例:** @@ -707,14 +739,14 @@ 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 | 悬浮窗。 | ## AbilityStartSetting -abilityStartSetting属性是一个定义为[key: string]: any的对象,key对应设定类型为:AbilityStartSetting枚举类型,value对应设定类型为:AbilityWindowConfiguration枚举类型。 +表示当前Ability对应的窗口属性,abilityStartSetting属性是一个定义为[key: string]: any的对象,key对应设定类型为:AbilityStartSetting枚举类型,value对应设定类型为:AbilityWindowConfiguration枚举类型。 使用时通过featureAbility.AbilityStartSetting获取。 @@ -734,7 +766,7 @@ featureAbility.AbilityStartSetting.BOUNDS_KEY ## ErrorCode -获取错误代码。 +表示错误码。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.FAModel @@ -742,13 +774,13 @@ featureAbility.AbilityStartSetting.BOUNDS_KEY | ------------------------------ | ---- | ---------------------------------------- | | NO_ERROR7+ | 0 | 没有错误。 | | INVALID_PARAMETER7+ | -1 | 无效的参数。 | -| ABILITY_NOT_FOUND7+ | -2 | 找不到能力。 | -| PERMISSION_DENY7+ | -3 | 拒绝许可。 | +| ABILITY_NOT_FOUND7+ | -2 | 找不到ABILITY。 | +| PERMISSION_DENY7+ | -3 | 权限拒绝。 | ## DataAbilityOperationType -指示数据的操作类型。 +表示数据的操作类型。DataAbility批量操作数据时可以通过该枚举值指定操作类型 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.FAModel @@ -761,24 +793,26 @@ featureAbility.AbilityStartSetting.BOUNDS_KEY ## flags说明 +表示处理Want的方式。 + **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase | 名称 | 值 | 说明 | | ------------------------------------ | ---------- | ---------------------------------------- | -| FLAG_AUTH_READ_URI_PERMISSION | 0x00000001 | 指示对URI执行读取操作的授权。 | -| FLAG_AUTH_WRITE_URI_PERMISSION | 0x00000002 | 指示对URI执行写入操作的授权。 | -| FLAG_ABILITY_FORWARD_RESULT | 0x00000004 | 将结果返回给元能力。 | -| FLAG_ABILITY_CONTINUATION | 0x00000008 | 确定是否可以将本地设备上的功能迁移到远程设备。 | -| FLAG_NOT_OHOS_COMPONENT | 0x00000010 | 指定组件是否属于OHOS。 | -| FLAG_ABILITY_FORM_ENABLED | 0x00000020 | 指定是否启动某个能力。 | -| FLAG_AUTH_PERSISTABLE_URI_PERMISSION | 0x00000040 | 指示URI上可能持久化的授权。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| FLAG_AUTH_PREFIX_URI_PERMISSION | 0x00000080 | 按照前缀匹配的方式验证URI权限。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| FLAG_ABILITYSLICE_MULTI_DEVICE | 0x00000100 | 支持分布式调度系统中的多设备启动。 | -| FLAG_START_FOREGROUND_ABILITY | 0x00000200 | 指示无论主机应用程序是否已启动,都将启动使用服务模板的功能。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| FLAG_ABILITY_CONTINUATION_REVERSIBLE | 0x00000400 | 表示迁移是可拉回的。 | -| FLAG_INSTALL_ON_DEMAND | 0x00000800 | 如果未安装指定的功能,请安装该功能。 | -| FLAG_INSTALL_WITH_BACKGROUND_MODE | 0x80000000 | 如果未安装,使用后台模式安装该功能。 | -| FLAG_ABILITY_CLEAR_MISSION | 0x00008000 | 指示清除其他任务的操作。可以为传递给 **[ohos.app.Context](js-apis-ability-context.md)** 中**startAbility**方法的**Want**设置此标志,并且必须与**flag_ABILITY_NEW_MISSION**一起使用。 | -| FLAG_ABILITY_NEW_MISSION | 0x10000000 | 指示在历史任务堆栈上创建任务的操作。 | -| FLAG_ABILITY_MISSION_TOP | 0x20000000 | 指示如果启动能力的现有实例已位于任务堆栈的顶部,则将重用该实例。否则,将创建一个新的能力实例。 | +| FLAG_AUTH_READ_URI_PERMISSION | 0x00000001 | 表示对URI执行读取操作的授权。 | +| FLAG_AUTH_WRITE_URI_PERMISSION | 0x00000002 | 表示对URI执行写入操作的授权。 | +| FLAG_ABILITY_FORWARD_RESULT | 0x00000004 | 表示将结果返回给源Ability。 | +| FLAG_ABILITY_CONTINUATION | 0x00000008 | 表示是否可以将本地设备上的Ability迁移到远端设备。 | +| FLAG_NOT_OHOS_COMPONENT | 0x00000010 | 表示组件是否不属于OHOS。 | +| FLAG_ABILITY_FORM_ENABLED | 0x00000020 | 表示某个Ability是否已经启动。 | +| FLAG_AUTH_PERSISTABLE_URI_PERMISSION | 0x00000040 | 表示URI上可能持久化的授权。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| FLAG_AUTH_PREFIX_URI_PERMISSION | 0x00000080 | 表示按照前缀匹配的方式验证URI权限。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| FLAG_ABILITYSLICE_MULTI_DEVICE | 0x00000100 | 表示支持分布式调度系统中的多设备启动。 | +| FLAG_START_FOREGROUND_ABILITY | 0x00000200 | 表示无论宿主应用是否已启动,都将使用前台模式启动Ability。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| FLAG_ABILITY_CONTINUATION_REVERSIBLE | 0x00000400 | 表示迁移是否是可反向的。 | +| FLAG_INSTALL_ON_DEMAND | 0x00000800 | 表示如果未安装指定的Ability,将安装该Ability。 | +| FLAG_INSTALL_WITH_BACKGROUND_MODE | 0x80000000 | 表示如果未安装指定的Ability,将在后台安装该Ability。 | +| FLAG_ABILITY_CLEAR_MISSION | 0x00008000 | 表示清除其他任务的操作。可以为传递给 **[ohos.app.Context](js-apis-ability-context.md)** 中**startAbility**方法的**Want**设置此标志,并且必须与**flag_ABILITY_NEW_MISSION**一起使用。 | +| FLAG_ABILITY_NEW_MISSION | 0x10000000 | 表示在已有的任务栈上创建任务的操作。 | +| FLAG_ABILITY_MISSION_TOP | 0x20000000 | 表示如果启动的Ability的现有实例已位于任务栈顶,则将重用该实例。否则,将创建一个新的Ability实例。 | 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 e081616b4318327aa1a17930fa6b21a30e4cb48e..ff2c0379e3a934a26ba54e8da63f77b240540fef 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 @@ -1,6 +1,6 @@ # @ohos.ability.particleAbility (ParticleAbility模块) -particleAbility模块提供了Service类型Ability的能力,包括启动、停止指定的particleAbility,获取dataAbilityHelper,连接、断开当前Ability与指定ServiceAbility等。 +particleAbility模块提供了操作Service类型的Ability的能力,包括启动、停止指定的particleAbility,获取dataAbilityHelper,连接、断连指定的ServiceAbility等。 > **说明:** > @@ -21,7 +21,12 @@ import particleAbility from '@ohos.ability.particleAbility' startAbility(parameter: StartAbilityParameter, callback: AsyncCallback\): void -使用此方法启动指定的particleAbility(callback形式)。 +启动指定的particleAbility(callback形式)。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(FA模型)](../../application-models/component-startup-rules-fa.md) **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -29,8 +34,8 @@ startAbility(parameter: StartAbilityParameter, callback: AsyncCallback\): | 参数名 | 类型 | 必填 | 说明 | | --------- | ----------------------------------------------- | ---- | ----------------- | -| parameter | [StartAbilityParameter](js-apis-inner-ability-startAbilityParameter.md) | 是 | 指示启动的ability | -| callback | AsyncCallback\ | 是 | 被指定的回调方法 | +| parameter | [StartAbilityParameter](js-apis-inner-ability-startAbilityParameter.md) | 是 | 表示启动的ability | +| callback | AsyncCallback\ | 是 | 以callback的形式返回启动Ability的结果 | **示例:** @@ -62,7 +67,12 @@ particleAbility.startAbility( startAbility(parameter: StartAbilityParameter): Promise\; -使用此方法启动指定的particleAbility(Promise形式)。 +启动指定的particleAbility(Promise形式)。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 + - 目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限 + - 组件启动规则详见:[组件启动规则(FA模型)](../../application-models/component-startup-rules-fa.md) **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -70,13 +80,13 @@ startAbility(parameter: StartAbilityParameter): Promise\; | 参数名 | 类型 | 必填 | 说明 | | --------- | ----------------------------------------------- | ---- | ----------------- | -| parameter | [StartAbilityParameter](js-apis-inner-ability-startAbilityParameter.md) | 是 | 指示启动的ability | +| parameter | [StartAbilityParameter](js-apis-inner-ability-startAbilityParameter.md) | 是 | 表示启动的ability | **返回值:** | 类型 | 说明 | | -------------- | ------------------------- | -| Promise\ | 使用Promise形式返回结果。 | +| Promise\ | Promise形式返回启动Ability的结果。 | **示例:** @@ -107,7 +117,7 @@ particleAbility.startAbility( terminateSelf(callback: AsyncCallback\): void -终止particleAbility(callback形式)。 +销毁当前particleAbility(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -115,7 +125,7 @@ terminateSelf(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------- | ---- | -------------------- | -| callback | AsyncCallback\ | 是 | 表示被指定的回调方法 | +| callback | AsyncCallback\ | 是 | 以callback的形式返回停止当前Ability结果 | **示例:** @@ -133,7 +143,7 @@ particleAbility.terminateSelf( terminateSelf(): Promise\ -终止particleAbility(Promise形式)。 +销毁当前particleAbility(Promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -141,7 +151,7 @@ terminateSelf(): Promise\ | 类型 | 说明 | | -------------- | ------------------------- | -| Promise\ | 使用Promise形式返回结果。 | +| Promise\ | 使用Promise形式返回停止当前Ability结果。 | **示例:** @@ -159,7 +169,7 @@ particleAbility.terminateSelf().then((data) => { acquireDataAbilityHelper(uri: string): DataAbilityHelper -获取dataAbilityHelper。 +获取dataAbilityHelper对象。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -167,20 +177,20 @@ acquireDataAbilityHelper(uri: string): DataAbilityHelper | 参数名 | 类型 | 必填 | 说明 | | :--- | ------ | ---- | ------------------------ | -| uri | string | 是 | 指示要打开的文件的路径。 | +| uri | string | 是 | 表示要打开的文件的路径。 | **返回值:** | 类型 | 说明 | | ----------------- | -------------------------------------------- | -| DataAbilityHelper | 用来协助其他Ability访问DataAbility的工具类。 | +| [DataAbilityHelper](js-apis-inner-ability-dataAbilityHelper.md) | 用来协助其他Ability访问DataAbility的工具类。 | **示例:** ```ts import particleAbility from '@ohos.ability.particleAbility' -var uri = ""; +let uri = ""; particleAbility.acquireDataAbilityHelper(uri) ``` @@ -270,7 +280,7 @@ startBackgroundRunning(id: number, request: NotificationRequest): Promise<voi | 类型 | 说明 | | -------------- | ------------------------- | -| Promise\ | 使用Promise形式返回结果。 | +| Promise\ | 使用Promise形式返回启动长时任务的结果。 | **示例**: @@ -326,7 +336,7 @@ cancelBackgroundRunning(callback: AsyncCallback<void>): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<void> | 是 | callback形式返回启动长时任务的结果 | + | callback | AsyncCallback<void> | 是 | callback形式返回取消长时任务的结果 | **示例**: @@ -357,7 +367,7 @@ cancelBackgroundRunning(): Promise<void>; | 类型 | 说明 | | -------------- | ------------------------- | -| Promise\ | 使用Promise形式返回结果。 | +| Promise\ | 使用Promise形式返回取消长时任务的结果。 | **示例**: @@ -376,7 +386,7 @@ particleAbility.cancelBackgroundRunning().then(() => { connectAbility(request: Want, options:ConnectOptions): number -将当前ability连接到指定ServiceAbility(callback形式)。 +将当前ability与指定的ServiceAbility进行连接(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -385,22 +395,13 @@ connectAbility(request: Want, options:ConnectOptions): number | 参数名 | 类型 | 必填 | 说明 | | ------- | -------------- | ---- | ---------------------------- | | request | [Want](js-apis-application-want.md) | 是 | 表示被连接的ServiceAbility。 | -| options | ConnectOptions | 是 | 被指定的回调方法。 | - +| options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 是 | 连接回调方法。 | -**ConnectOptions类型说明:** - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 类型 | 必填 | 说明 | -| ------------ | -------- | ---- | ------------------------- | -| onConnect | function | 是 | 连接成功时的回调函数。 | -| onDisconnect | function | 是 | 连接失败时的回调函数。 | -| onFailed | function | 是 | ConnectAbility调用失败时的回调函数。 | **示例**: ```ts +import particleAbility from '@ohos.ability.particleAbility' import rpc from '@ohos.rpc' function onConnectCallback(element, remote) { @@ -415,7 +416,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", @@ -438,7 +439,7 @@ particleAbility.disconnectAbility(connId).then((data) => { disconnectAbility(connection: number, callback:AsyncCallback\): void; -将功能与服务功能断开连接。 +断开当前ability与指定ServiceAbility的连接(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -451,7 +452,8 @@ disconnectAbility(connection: number, callback:AsyncCallback\): void; **示例**: ```ts -import rpc from '@ohos.rpc' +import particleAbility from '@ohos.ability.particleAbility'; +import rpc from '@ohos.rpc'; function onConnectCallback(element, remote) { console.log('ConnectAbility onConnect remote is proxy:' + (remote instanceof rpc.RemoteProxy)); @@ -465,7 +467,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", @@ -488,7 +490,7 @@ particleAbility.disconnectAbility(connId, (err) => { disconnectAbility(connection: number): Promise\; -将功能与服务功能断开连接。 +断开当前ability与指定ServiceAbility的连接(Promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel @@ -501,7 +503,8 @@ disconnectAbility(connection: number): Promise\; **示例**: ```ts -import rpc from '@ohos.rpc' +import particleAbility from '@ohos.ability.particleAbility'; +import rpc from '@ohos.rpc'; function onConnectCallback(element, remote) { console.log('ConnectAbility onConnect remote is proxy:' + (remote instanceof rpc.RemoteProxy)); @@ -515,7 +518,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", @@ -537,7 +540,7 @@ particleAbility.disconnectAbility(connId).then((data) => { ## ErrorCode -获取错误代码。 +表示错误码。 **系统能力**:SystemCapability.Ability.AbilityRuntime.FAModel diff --git a/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md b/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md index 0b0770c266c89840477e4242b85972395a52dd90..8701519dfa429e90b52fed68a3afef915a01fbab 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md @@ -44,7 +44,7 @@ want操作的常数。 | INTENT_PARAMS_INTENT | ability.want.params.INTENT | 指示用行为选择器来展示选择的操作。 | | INTENT_PARAMS_TITLE | ability.want.params.TITLE | 指示与行为选择器一起使用时的字符序列对话框标题。 | | ACTION_FILE_SELECT7+ | ohos.action.fileSelect | 指示选择文件的操作。 | -| PARAMS_STREAM7+ | ability.params.stream | 指示发送数据时与目标关联的数据流的URI | +| PARAMS_STREAM7+ | ability.params.stream | 指示发送数据时与目标关联的数据流的URI。对应的value必须是string类型的数组。 | | ACTION_APP_ACCOUNT_OAUTH 8+ | ohos.account.appAccount.action.oauth | 指示提供oauth服务的操作。 | | ACTION_APP_ACCOUNT_AUTH 9+ | account.appAccount.action.auth | 指示提供auth服务的操作。 | | ACTION_MARKET_DOWNLOAD 9+ | ohos.want.action.marketDownload | 表示从应用程序市场下载应用程序的的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-animator.md b/zh-cn/application-dev/reference/apis/js-apis-animator.md index 6a7c3c206c0e218fb11093d894d71a761b7bba4f..2e7620ae854bd8f532fe8447040f3fff02160e5b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-animator.md +++ b/zh-cn/application-dev/reference/apis/js-apis-animator.md @@ -37,10 +37,10 @@ create(options: AnimatorOptions): AnimatorResult ```js let options = { duration: 1500, - easing: 'friction', + easing: "friction", delay: 0, - fill: 'forwards', - direction: 'normal', + fill: "forwards", + direction: "normal", iterations: 3, begin: 200.0, end: 400.0 @@ -80,10 +80,10 @@ reset(options: AnimatorOptions): void ```js let options = { duration: 1500, - easing: 'friction', + easing: "friction", delay: 0, - fill: 'forwards', - direction: 'normal', + fill: "forwards", + direction: "normal", iterations: 3, begin: 200.0, end: 400.0 @@ -99,7 +99,7 @@ try { play(): void -启动动画。 +启动动画。动画会保留上一次的播放状态,比如播放状态设置reverse后,再次播放会保留reverse的播放状态。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full @@ -247,16 +247,16 @@ animatorResult.onrepeat = function() { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 必填 | 说明 | -| ---------- | ---------------------------------------- | ---- | ---------------------------------------- | -| duration | number | 是 | 动画播放的时长,单位毫秒,默认为0。 | -| easing | string | 是 | 动画插值曲线,默认为'ease'。 | -| delay | number | 是 | 动画延时播放时长,单位毫秒,默认为0,即不延时。 | -| fill | "none" \| "forwards" \| "backwards" \| "both" | 是 | 动画执行后是否恢复到初始状态,默认值为"none"。动画执行后,动画结束时的状态(在最后一个关键帧中定义)将保留。 | -| direction | "normal" \| "reverse" \| "alternate" \| "alternate-reverse" | 是 | 动画播放模式,默认值"normal"。 | -| iterations | number | 是 | 动画播放次数,默认值1。设置为0时不播放,设置为-1时无限次播放。 | -| begin | number | 是 | 动画插值起点,默认为0。 | -| end | number | 是 | 动画插值终点,默认为1。 | +| 名称 | 类型 | 必填 | 说明 | +| ---------- | ----------------------------------------------------------- | ---- | ------------------------------------------------------------ | +| duration | number | 是 | 动画播放的时长,单位毫秒。 | +| easing | string | 是 | 动画插值曲线,仅支持以下可选值:
"linear":动画线性变化。
"ease":动画开始和结束时的速度较慢,cubic-bezier(0.25、0.1、0.25、1.0)。
"ease-in":动画播放速度先慢后快,cubic-bezier(0.42, 0.0, 1.0, 1.0)。
"ease-out":动画播放速度先快后慢,cubic-bezier(0.0, 0.0, 0.58, 1.0)。
"ease-in-out":动画播放速度先加速后减速,cubic-bezier(0.42, 0.0, 0.58, 1.0)。
"fast-out-slow-in":标准曲线,cubic-bezier(0.4,0.0,0.2,1.0)。
"linear-out-slow-in":减速曲线,cubic-bezier(0.0,0.0,0.2,1.0)。
"friction":阻尼曲线,cubic-bezier(0.2, 0.0, 0.2, 1.0)。
"extreme-deceleration":急缓曲线,cubic-bezier(0.0, 0.0, 0.0, 1.0)。
"rhythm":节奏曲线,cubic-bezier(0.7, 0.0, 0.2, 1.0)。
"sharp":锐利曲线,cubic-bezier(0.33, 0.0, 0.67, 1.0)。
"smooth":平滑曲线,cubic-bezier(0.4, 0.0, 0.4, 1.0)。
cubic-bezier(x1, y1, x2, y2):在三次贝塞尔函数中定义动画变化过程,入参的值必须处于0-1之间。
steps(number, step-position):阶梯曲线。number必须设置,支持的类型为int。step-position参数可选,支持设置start或end,默认值为end。 | +| delay | number | 是 | 动画延时播放时长,单位毫秒,设置为0时,表示不延时。 | +| fill | "none" \| "forwards" \| "backwards" \| "both" | 是 | 动画执行后是否恢复到初始状态,动画执行后,动画结束时的状态(在最后一个关键帧中定义)将保留。
"none":在动画执行之前和之后都不会应用任何样式到目标上。
"forwards":在动画结束后,目标将保留动画结束时的状态(在最后一个关键帧中定义)。
"backwards":动画将在animation-delay期间应用第一个关键帧中定义的值。当animation-direction为"normal"或"alternate"时应用from关键帧中的值,当animation-direction为"reverse"或"alternate-reverse"时应用to关键帧中的值。
"both":动画将遵循forwards和backwards的规则,从而在两个方向上扩展动画属性。 | +| direction | "normal" \| "reverse" \| "alternate" \| "alternate-reverse" | 是 | 动画播放模式。
"normal": 动画正向循环播放。
"reverse": 动画反向循环播放。
"alternate":动画交替循环播放,奇数次正向播放,偶数次反向播放。
"alternate-reverse":动画反向交替循环播放,奇数次反向播放,偶数次正向播放。 | +| iterations | number | 是 | 动画播放次数。设置为0时不播放,设置为-1时无限次播放。
**说明:** 设置为除-1外其他负数视为无效取值,无效取值动画默认播放1次。 | +| begin | number | 是 | 动画插值起点。 | +| end | number | 是 | 动画插值终点。 | ## 完整示例 @@ -280,9 +280,9 @@ export default { onInit() { let options = { duration: 1500, - easing: 'friction', + easing: "friction", delay: 0, - fill: 'forwards', + fill: "forwards", direction: "normal", iterations: 2, begin: 200.0, @@ -293,10 +293,10 @@ export default { Show() { let options1 = { duration: 1500, - easing: 'friction', + easing: "friction", delay: 0, - fill: 'forwards', - direction: 'normal', + fill: "forwards", + direction: "normal", iterations: 2, begin: 0, end: 400.0 @@ -336,10 +336,10 @@ struct AnimatorTest { let _this = this this.backAnimator = animator.create({ duration: 2000, - easing: 'ease', + easing: "ease", delay: 0, - fill: 'none', - direction: 'normal', + fill: "none", + direction: "normal", iterations: 1, begin: 100, end: 200 @@ -444,10 +444,10 @@ struct AnimatorTest { this.flag = false this.backAnimator.reset({ duration: 5000, - easing: 'ease-in', + easing: "ease-in", delay: 0, - fill: 'none', - direction: 'normal', + fill: "none", + direction: "normal", iterations: 4, begin: 100, end: 300 @@ -513,10 +513,10 @@ createAnimator(options: AnimatorOptions): AnimatorResult ```js let options = { duration: 1500, - easing: 'friction', + easing: "friction", delay: 0, - fill: 'forwards', - direction: 'normal', + fill: "forwards", + direction: "normal", iterations: 3, begin: 200.0, end: 400.0 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 a32e9767651e5819fd88ef07e2f8da056a904a08..9f4ac87aacb143e0f0eb9eac09dad2c78478c281 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 @@ -23,8 +23,8 @@ import AbilityConstant from '@ohos.app.ability.AbilityConstant'; | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| launchReason | [LaunchReason](#abilityconstantlaunchreason)| 是 | 是 | 枚举类型,表示启动原因。 | -| lastExitReason | [LastExitReason](#abilityconstantlastexitreason) | 是 | 是 | 枚举类型,表示最后退出原因。 | +| launchReason | [LaunchReason](#abilityconstantlaunchreason)| 是 | 是 | 指示启动原因。 | +| lastExitReason | [LastExitReason](#abilityconstantlastexitreason) | 是 | 是 | 表示最后退出原因。 | ## AbilityConstant.LaunchReason @@ -110,12 +110,14 @@ class MyAbility extends UIAbility { **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core +**系统API**: 此接口为系统接口,三方应用不支持调用。 + | 名称 | 值 | 说明 | | --- | --- | --- | | 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-abilityManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityManager.md index 2ca889c93fbe78893b5ac071bd7fbacfa836ccc7..31bed8d29c42938f8948cbcdfee7ec92c7f01ae1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityManager.md @@ -24,6 +24,7 @@ Ability的状态,该类型为枚举,可配合[AbilityRunningInfo](js-apis-in | 名称 | 值 | 说明 | | -------- | -------- | -------- | | INITIAL | 0 | 表示ability为初始化状态。| +| FOCUS | 2 | 表示ability为获焦状态。 | | FOREGROUND | 9 | 表示ability为前台状态。 | | BACKGROUND | 10 | 表示ability为后台状态。 | | FOREGROUNDING | 11 | 表示ability为前台调度中状态。 | @@ -142,7 +143,7 @@ try { getAbilityRunningInfos(callback: AsyncCallback\>): void -获取Ability运行相关信息(callback形式)。 +获取UIAbility运行相关信息(callback形式)。 **需要权限**: ohos.permission.GET_RUNNING_INFO @@ -185,7 +186,7 @@ try { getAbilityRunningInfos(): Promise\> -获取Ability运行相关信息(Promise形式)。 +获取UIAbility运行相关信息(Promise形式)。 **需要权限**: ohos.permission.GET_RUNNING_INFO diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md index 34cec4de8bedaf1001810412b0c4430df8f065f0..f0a420977e427e87ebab5a8a42bc7d62ca143b5b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md @@ -224,9 +224,9 @@ appManager.getAppMemorySize((err, data) => { }) ``` -## appManager.getProcessRunningInformation +## appManager.getRunningProcessInformation -getProcessRunningInformation(): Promise\>; +getRunningProcessInformation(): Promise\>; 获取有关运行进程的信息。 @@ -234,13 +234,11 @@ getProcessRunningInformation(): Promise\>; **系统能力**:SystemCapability.Ability.AbilityRuntime.Core -**系统API**: 此接口为系统接口,三方应用不支持调用。 - **返回值:** | 类型 | 说明 | | -------- | -------- | -| Promise\> | 以Promise方式返回接口运行结果及有关运行进程的信息,可进行错误处理或其他自定义处理。 | +| Promise\> | 以Promise方式返回接口运行结果及有关运行进程的信息,可进行错误处理或其他自定义处理。 | **错误码**: @@ -255,16 +253,16 @@ getProcessRunningInformation(): Promise\>; ```ts import appManager from '@ohos.app.ability.appManager'; -appManager.getProcessRunningInformation().then((data) => { - console.log("The process running information is:" + JSON.stringify(data)); +appManager.getRunningProcessInformation().then((data) => { + console.log("The running process information is:" + JSON.stringify(data)); }).catch((error) => { console.log("error:" + JSON.stringify(error)); }); ``` -## appManager.getProcessRunningInformation9+ +## appManager.getRunningProcessInformation9+ -getProcessRunningInformation(callback: AsyncCallback\>): void; +getRunningProcessInformation(callback: AsyncCallback\>): void; 获取有关运行进程的信息。 @@ -272,13 +270,11 @@ getProcessRunningInformation(callback: AsyncCallback\> | 以回调方式返回接口运行结果及有关运行进程的信息,可进行错误处理或其他自定义处理。 | +|AsyncCallback\> | 以回调方式返回接口运行结果及有关运行进程的信息,可进行错误处理或其他自定义处理。 | **错误码**: @@ -293,9 +289,9 @@ getProcessRunningInformation(callback: AsyncCallback\ { +appManager.getRunningProcessInformation((err, data) => { if (err.code !== 0) { - console.log("getProcessRunningInformation faile, err: " + JSON.stringify(err)); + console.log("getRunningProcessInformation faile, err: " + JSON.stringify(err)); } else { console.log("The process running information is:" + JSON.stringify(data)); } @@ -588,7 +584,7 @@ try { getForegroundApplications(callback: AsyncCallback\>): void; -获取当前所有前台应用的信息。该应用信息由[AppStateData](js-apis-inner-application-appStateData.md)定义。 +获取所有当前处于前台的应用信息。该应用信息由[AppStateData](js-apis-inner-application-appStateData.md)定义。 **需要权限**:ohos.permission.GET_RUNNING_INFO @@ -608,7 +604,7 @@ getForegroundApplications(callback: AsyncCallback\>): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| callback | AsyncCallback\> | 是 | 以Promise方式返回接口运行结果及应用状态数据数组,可进行错误处理或其他自定义处理。 | +| callback | AsyncCallback\> | 是 | 以Callback方式返回接口运行结果及应用状态数据数组,可进行错误处理或其他自定义处理。 | **示例:** @@ -633,7 +629,7 @@ try { getForegroundApplications(): Promise\>; -获取当前所有前台应用的信息。该应用信息由[AppStateData](js-apis-inner-application-appStateData.md)定义。 +获取所有当前处于前台的应用信息。该应用信息由[AppStateData](js-apis-inner-application-appStateData.md)定义。 **需要权限**:ohos.permission.GET_RUNNING_INFO @@ -645,7 +641,7 @@ getForegroundApplications(): Promise\>; | 类型 | 说明 | | -------- | -------- | -| Promise\> | 返回前台进程应用程序的数组。 | +| Promise\> | 以Promise形式返回所有当前处于前台的应用信息。 | **错误码**: 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-configuration.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-configuration.md index 449367a1b7cffda3e77125db26e6fc3cac69ee3e..240d075b5cc339c0ef242b3a8401fadcf167f797 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-environmentCallback.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-environmentCallback.md index cddc137417a2316d1ad26f022b973dfbc3037081..047bbb974f205611b317f4af60e27d96647dd5d4 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 Ability from "@ohos.application.Ability"; -var callbackId; +let callbackId; export default class MyAbility extends Ability { 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 d7dddb5e0c007f0ab09f397b9788284803dfb73c..747f5901d306b6157976639d6d5dc5d29b715b49 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 @@ -29,7 +29,7 @@ on(type: "error", observer: ErrorObserver): number; **示例:** ```js -var observer = { +let observer = { onUnhandledException(errorMsg) { console.log('onUnhandledException, errorMsg: ', errorMsg) } @@ -60,7 +60,7 @@ off(type: "error", observerId: number, callback: AsyncCallback\): void; **示例:** ```js -var observerId = 100; +let observerId = 100; function unregisterErrorObserverCallback(err) { if (err) { @@ -98,7 +98,7 @@ off(type: "error", observerId: number): Promise\; **示例:** ```js -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 80adf4b8d887a5e2694d7d6986321e94bf4b17c5..030e37ff8c1e33875c5766561171ae9a025c5567 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 @@ -32,7 +32,7 @@ on(type:"mission", listener: MissionListener): number; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | listener | MissionListener | 是 | 系统任务监听方法。 | + | listener | [MissionListener](js-apis-inner-application-missionListener.md) | 是 | 系统任务监听方法。 | **返回值:** @@ -43,7 +43,7 @@ on(type:"mission", 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 @@ on(type:"mission", listener: MissionListener): number; }; console.log("registerMissionListener") try { - var listenerid = missionManager.on("mission", listener); + let listenerid = missionManager.on("mission", listener); } catch (paramError) { console.log("error: " + paramError.code + ", " + paramError.message); } @@ -82,7 +82,7 @@ off(type: "mission", listenerId: number, callback: AsyncCallback<void>): v **示例:** ```ts - var listener = { + let listener = { onMissionCreated: function (mission) {console.log("--------onMissionCreated-------")}, onMissionDestroyed: function (mission) {console.log("--------onMissionDestroyed-------")}, onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, @@ -92,7 +92,7 @@ off(type: "mission", listenerId: number, callback: AsyncCallback<void>): v }; console.log("registerMissionListener") try { - var listenerid = missionManager.registerMissionListener(listener); + let listenerid = missionManager.registerMissionListener(listener); missionManager.unregisterMissionListener(listenerid, (error) => { console.log("unregisterMissionListener"); @@ -130,7 +130,7 @@ off(type: "mission", 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-------")}, @@ -140,7 +140,7 @@ off(type: "mission", listenerId: number): Promise<void>; }; console.log("registerMissionListener") try { - var listenerid = missionManager.registerMissionListener(listener); + let listenerid = missionManager.registerMissionListener(listener); missionManager.unregisterMissionListener(listenerid).catch(function (err) { console.log(err); @@ -177,7 +177,7 @@ getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<M import missionManager from '@ohos.app.ability.missionManager' try { - 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) => { console.log("getMissionInfo is called, error.code = " + error.code) console.log("mission.missionId = " + mission.missionId); @@ -224,7 +224,7 @@ getMissionInfo(deviceId: string, missionId: number): Promise<MissionInfo>; import missionManager from '@ohos.app.ability.missionManager' try { - var mission = missionManager.getMissionInfo("", 10).catch(function (err){ + let mission = missionManager.getMissionInfo("", 10).catch(function (err){ console.log(err); }); } catch (paramError) { @@ -301,7 +301,7 @@ getMissionInfos(deviceId: string, numMax: number): Promise<Array<MissionIn import missionManager from '@ohos.app.ability.missionManager' try { - var allMissions = missionManager.getMissionInfos("", 10).catch(function (err){ + let allMissions = missionManager.getMissionInfos("", 10).catch(function (err){ console.log(err); }); } catch (paramError) { @@ -340,7 +340,7 @@ getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback& console.log("getMissionInfos is called, error.code = " + error.code); 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) => { console.log("getMissionSnapShot is called, error.code = " + error.code); @@ -384,15 +384,15 @@ getMissionSnapShot(deviceId: string, missionId: number): Promise<MissionSnaps import missionManager from '@ohos.app.ability.missionManager' try { - 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); }); } catch (paramError) { @@ -430,7 +430,7 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: A console.log("getMissionInfos is called, error.code = " + error.code); 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) => { console.log("getLowResolutionMissionSnapShot is called, error.code = " + error.code); @@ -474,15 +474,15 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise\ | 返回应用的快速修复信息。 | + | Promise\<[ApplicationQuickFixInfo](#applicationquickfixinfo)> | 返回应用的快速修复信息。 | **示例:** @@ -199,4 +201,4 @@ getApplicationQuickFixInfo(bundleName: string): Promise\ { + 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 6d9f7d70b72da1fa92413438a544bbd983602f95..1a2866d05b592418dd2016e8f206ebeb77059533 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 @@ -42,7 +42,7 @@ Ability创建时回调,执行初始化业务逻辑操作。 | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-app-ability-want.md) | 是 | 当前Ability的Want类型信息,包括ability名称、bundle名称等。 | - | param | AbilityConstant.LaunchParam | 是 | 创建 ability、上次异常退出的原因信息。 | + | param | [AbilityConstant.LaunchParam](js-apis-app-ability-abilityConstant.md#abilityconstantlaunchparam) | 是 | 创建 ability、上次异常退出的原因信息。 | **示例:** @@ -67,7 +67,7 @@ onWindowStageCreate(windowStage: window.WindowStage): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | windowStage | window.WindowStage | 是 | WindowStage相关信息。 | + | windowStage | [window.WindowStage](js-apis-window.md#windowstage9) | 是 | WindowStage相关信息。 | **示例:** @@ -111,7 +111,7 @@ onWindowStageRestore(windowStage: window.WindowStage): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | windowStage | window.WindowStage | 是 | WindowStage相关信息。 | + | windowStage | [window.WindowStage](js-apis-window.md#windowstage9) | 是 | WindowStage相关信息。 | **示例:** @@ -199,13 +199,13 @@ onContinue(wantParam : {[key: string]: any}): AbilityConstant.OnContinueResult; | 类型 | 说明 | | -------- | -------- | - | AbilityConstant.OnContinueResult | 继续的结果。 | + | [AbilityConstant.OnContinueResult](js-apis-app-ability-abilityConstant.md#abilityconstantoncontinueresult) | 继续的结果。 | **示例:** ```ts - import AbilityConstant from "@ohos.application.AbilityConstant" - class myAbility extends Ability { + import AbilityConstant from "@ohos.app.ability.AbilityConstant" + class MyUIAbility extends UIAbility { onContinue(wantParams) { console.log('onContinue'); wantParams["myData"] = "my1234567"; @@ -219,7 +219,7 @@ onContinue(wantParam : {[key: string]: any}): AbilityConstant.OnContinueResult; onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; -当ability的启动模式设置为单例时回调会被调用。 +当传入新的Want,ability再次被拉起时会回调执行该方法。 **系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore @@ -227,17 +227,18 @@ onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | want | [Want](js-apis-application-want.md) | 是 | Want类型参数,如ability名称,包名等。 | - | launchParams | AbilityConstant.LaunchParam | 是 | Ability启动的原因、上次异常退出的原因信息。 | + | want | [Want](js-apis-app-ability-want.md) | 是 | Want类型参数,如ability名称,包名等。 | + | launchParams | [AbilityConstant.LaunchParam](js-apis-app-ability-abilityConstant.md#abilityconstantlaunchparam) | 是 | UIAbility启动的原因、上次异常退出的原因信息。 | **示例:** ```ts - class myAbility extends Ability { - onNewWant(want) { + class MyUIAbility extends UIAbility { + onNewWant(want, launchParams) { console.log('onNewWant, want:' + want.abilityName); - } - } + console.log('onNewWant, launchParams:' + JSON.stringify(launchParams)); + } + } ``` ## Ability.onDump @@ -290,9 +291,9 @@ onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: any}) **示例:** ```ts -import AbilityConstant from '@ohos.application.AbilityConstant' +import AbilityConstant from '@ohos.app.ability.AbilityConstant' -class myAbility extends Ability { +class MyUIAbility extends UIAbility { onSaveState(reason, wantParam) { console.log('onSaveState'); wantParam["myData"] = "my1234567"; @@ -320,7 +321,7 @@ call(method: string, data: rpc.Sequenceable): Promise<void>; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | method | string | 是 | 约定的服务端注册事件字符串。 | - | data | rpc.Sequenceable | 是 | 由开发者实现的Sequenceable可序列化数据。 | + | data | [rpc.Sequenceable](js-apis-rpc.md#sequenceabledeprecated) | 是 | 由开发者实现的Sequenceable可序列化数据。 | **返回值:** @@ -360,8 +361,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 MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -401,13 +402,13 @@ callWithResult(method: string, data: rpc.Sequenceable): Promise<rpc.MessagePa | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | method | string | 是 | 约定的服务端注册事件字符串。 | - | data | rpc.Sequenceable | 是 | 由开发者实现的Sequenceable可序列化数据。 | + | data | [rpc.Sequenceable](js-apis-rpc.md#sequenceabledeprecated) | 是 | 由开发者实现的Sequenceable可序列化数据。 | **返回值:** | 类型 | 说明 | | -------- | -------- | - | Promise<rpc.MessageParcel> | Promise形式返回通用组件服务端应答数据。 | + | Promise<[rpc.MessageParcel](js-apis-rpc.md#sequenceabledeprecated)> | Promise形式返回通用组件服务端应答数据。 | **错误码:** @@ -441,8 +442,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 MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -492,7 +493,7 @@ release(): void; ```ts import Ability from '@ohos.app.ability.UIAbility'; - var caller; + let caller; export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -527,13 +528,13 @@ release(): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | callback | OnReleaseCallBack | 是 | 返回onRelease回调结果。 | + | callback | [OnReleaseCallBack](#onreleasecallback) | 是 | 返回onRelease回调结果。 | **示例:** ```ts import Ability from '@ohos.application.Ability'; - var caller; + let caller; export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -547,7 +548,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) => { @@ -571,7 +572,7 @@ release(): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | type | string | 是 | 监听releaseCall事件,固定为'release'。 | - | callback | OnReleaseCallback | 是 | 返回onRelease回调结果。 | + | callback | [OnReleaseCallBack](#onreleasecallback) | 是 | 返回onRelease回调结果。 | **错误码:** @@ -584,7 +585,7 @@ release(): void; ```ts import Ability from '@ohos.app.ability.UIAbility'; - var caller; + let caller; export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -609,6 +610,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 @@ -627,7 +730,7 @@ on(method: string, callback: CalleeCallback): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | method | string | 是 | 与客户端约定的通知消息字符串。 | - | callback | CalleeCallback | 是 | 一个rpc.MessageParcel类型入参的js通知同步回调函数, 回调函数至少要返回一个空的rpc.Sequenceable数据对象, 其他视为函数执行错误。 | + | callback | [CalleeCallback](#calleecallback) | 是 | 一个[rpc.MessageParcel](js-apis-rpc.md#sequenceabledeprecated)类型入参的js通知同步回调函数, 回调函数至少要返回一个空的[rpc.Sequenceable](js-apis-rpc.md#sequenceabledeprecated)数据对象, 其他视为函数执行错误。 | **错误码:** @@ -661,7 +764,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", ""); @@ -707,7 +810,7 @@ off(method: string): void; ```ts import Ability from '@ohos.app.ability.UIAbility'; - var method = 'call_Function'; + let method = 'call_Function'; export default class MainAbility extends Ability { onCreate(want, launchParam) { console.log('Callee onCreate is called'); @@ -739,4 +842,4 @@ off(method: string): void; | 名称 | 可读 | 可写 | 类型 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| (indata: rpc.MessageParcel) | 是 | 否 | rpc.Sequenceable | 被调用方注册的消息侦听器函数接口的原型。 | +| (indata: [rpc.MessageParcel](js-apis-rpc.md#sequenceabledeprecated)) | 是 | 否 | [rpc.Sequenceable](js-apis-rpc.md#sequenceabledeprecated) | 被调用方注册的消息侦听器函数接口的原型。 | 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 46990a60deb4414d7b9d06369cb0ef88ecd119a7..79cb1a5f4a26454cdb17b87860355a953dfb6646 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 @@ -25,7 +25,7 @@ import Want from '@ohos.app.ability.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来表示对数据要执行的操作。 | -| 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-bundleManager-bundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | | | entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器),在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。 | | moduleName | string | 否 | 表示待启动的Ability所属的模块(module)。 | @@ -122,7 +122,7 @@ import Want from '@ohos.app.ability.Want'; "abilityName": "MainAbility", "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 20aa63ed78f52a50a1254e1dafc7dc3f0f9c59bd..738fa467d05b1f83ef6eabab35e1638c4ead277f 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 @@ -16,7 +16,7 @@ import WantAgent from '@ohos.app.ability.wantAgent'; getWantAgent(info: WantAgentInfo, callback: AsyncCallback\): void -创建WantAgent(callback形式)。 +创建WantAgent(callback形式)。 创建失败返回的WantAgent为空值。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -77,7 +77,7 @@ try { getWantAgent(info: WantAgentInfo): Promise\ -创建WantAgent(Promise形式)。 +创建WantAgent(Promise形式)。 创建失败返回的WantAgent为空值。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -85,7 +85,7 @@ getWantAgent(info: WantAgentInfo): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ---- | ------------- | ---- | ------------- | -| info | WantAgentInfo | 是 | WantAgent信息。 | +| info | [WantAgentInfo](js-apis-inner-wantAgent-wantAgentInfo.md) | 是 | WantAgent信息。 | **返回值:** @@ -451,7 +451,7 @@ getWant(agent: WantAgent, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ------------------------------- | | agent | WantAgent | 是 | WantAgent对象。 | -| callback | AsyncCallback\ | 是 | 获取WantAgent对象want的回调方法。 | +| callback | AsyncCallback\<[Want](js-apis-app-ability-want.md)\> | 是 | 获取WantAgent对象want的回调方法。 | **示例:** @@ -752,7 +752,7 @@ trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: AsyncCallback\ | 否 | 主动激发WantAgent实例的回调方法。 | +| callback | AsyncCallback\<[CompleteData](#completedata)\> | 否 | 主动激发WantAgent实例的回调方法。 | **示例:** @@ -1152,6 +1152,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 91383bd62de559f15313821736fd0281ca8029f6..bf2ba9894dad3f611d2e903ea0e45c26c98df4e3 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 @@ -79,17 +79,4 @@ Flags说明。 | ------------------------------------ | ---------- | ------------------------------------------------------------ | | FLAG_AUTH_READ_URI_PERMISSION | 0x00000001 | 指示对URI执行读取操作的授权。 | | FLAG_AUTH_WRITE_URI_PERMISSION | 0x00000002 | 指示对URI执行写入操作的授权。 | -| FLAG_ABILITY_FORWARD_RESULT | 0x00000004 | 将结果返回给元能力。 | -| FLAG_ABILITY_CONTINUATION | 0x00000008 | 确定是否可以将本地设备上的功能迁移到远程设备。 | -| FLAG_NOT_OHOS_COMPONENT | 0x00000010 | 指定组件是否属于OHOS。 | -| FLAG_ABILITY_FORM_ENABLED | 0x00000020 | 指定是否启动某个能力。 | -| FLAG_AUTH_PERSISTABLE_URI_PERMISSION | 0x00000040 | 指示URI上可能持久化的授权。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| FLAG_AUTH_PREFIX_URI_PERMISSION | 0x00000080 | 按照前缀匹配的方式验证URI权限。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| FLAG_ABILITYSLICE_MULTI_DEVICE | 0x00000100 | 支持分布式调度系统中的多设备启动。 | -| FLAG_START_FOREGROUND_ABILITY | 0x00000200 | 指示无论主机应用程序是否已启动,都将启动使用服务模板的功能。 | -| FLAG_ABILITY_CONTINUATION_REVERSIBLE | 0x00000400 | 表示迁移是可拉回的。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| FLAG_INSTALL_ON_DEMAND | 0x00000800 | 如果未安装指定的功能,请安装该功能。 | -| FLAG_INSTALL_WITH_BACKGROUND_MODE | 0x80000000 | 如果未安装,使用后台模式安装该功能。 | -| FLAG_ABILITY_CLEAR_MISSION | 0x00008000 | 指示清除其他任务的操作。可以为传递给 **[ohos.app.Context](js-apis-ability-context.md)** 中**startAbility**方法的**Want**设置此标志,并且必须与**flag_ABILITY_NEW_MISSION**一起使用。 | -| FLAG_ABILITY_NEW_MISSION | 0x10000000 | 指示在历史任务堆栈上创建任务的操作。 | -| FLAG_ABILITY_MISSION_TOP | 0x20000000 | 指示如果启动能力的现有实例已位于任务堆栈的顶部,则将重用该实例。否则,将创建一个新的能力实例。 | \ No newline at end of file +| FLAG_INSTALL_ON_DEMAND | 0x00000800 | 如果未安装指定的功能,请安装该功能。 | \ No newline at end of file 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 37b084c3b3e5f2e2cb74e8f4c3f06ba94a3d90e7..c076b5bf92491f5eecc1286b5d5697b41d4af8b7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md @@ -198,18 +198,23 @@ createAccountImplicitly(owner: string, callback: AuthCallback): void **示例:** ```js - import featureAbility from '@ohos.ability.featureAbility'; - function onResultCallback(code, result) { console.log("resultCode: " + code); console.log("result: " + JSON.stringify(result)); } function onRequestRedirectedCallback(request) { - let abilityStartSetting = {want: request}; - featureAbility.startAbility(abilityStartSetting, (err) => { + let wantInfo = { + deviceId: '', + bundleName: 'com.example.accountjsdemo', + action: 'ohos.want.action.viewData', + entities: ['entity.system.default'], + } + this.context.startAbility(wantInfo).then(() => { + console.log("startAbility successfully"); + }).catch((err) => { console.log("startAbility err: " + JSON.stringify(err)); - }); + }) } try { @@ -252,18 +257,23 @@ createAccountImplicitly(owner: string, options: CreateAccountImplicitlyOptions, **示例:** ```js - import featureAbility from '@ohos.ability.featureAbility'; - function onResultCallback(code, result) { console.log("resultCode: " + code); console.log("result: " + JSON.stringify(result)); } function onRequestRedirectedCallback(request) { - let abilityStartSetting = {want: request}; - featureAbility.startAbility(abilityStartSetting, (err) => { + let wantInfo = { + deviceId: '', + bundleName: 'com.example.accountjsdemo', + action: 'ohos.want.action.viewData', + entities: ['entity.system.default'], + } + this.context.startAbility(wantInfo).then(() => { + console.log("startAbility successfully"); + }).catch((err) => { console.log("startAbility err: " + JSON.stringify(err)); - }); + }) } let options = { @@ -1354,7 +1364,7 @@ auth(name: string, owner: string, authType: string, callback: AuthCallback): voi **示例:** ```js - import featureAbility from '@ohos.ability.featureAbility'; + function onResultCallback(code, authResult) { console.log("resultCode: " + code); @@ -1362,10 +1372,17 @@ auth(name: string, owner: string, authType: string, callback: AuthCallback): voi } function onRequestRedirectedCallback(request) { - let abilityStartSetting = {want: request}; - featureAbility.startAbility(abilityStartSetting, (err) => { - console.log("startAbility err: " + JSON.stringify(err)); - }); + let wantInfo = { + deviceId: '', + bundleName: 'com.example.accountjsdemo', + action: 'ohos.want.action.viewData', + entities: ['entity.system.default'], + } + this.context.startAbility(wantInfo).then(() => { + console.log("startAbility successfully"); + }).catch((err) => { + console.log("startAbility err: " + JSON.stringify(err)); + }) } try { @@ -1410,7 +1427,7 @@ auth(name: string, owner: string, authType: string, options: {[key: string]: Obj **示例:** ```js - import featureAbility from '@ohos.ability.featureAbility'; + function onResultCallback(code, authResult) { console.log("resultCode: " + code); @@ -1418,10 +1435,17 @@ auth(name: string, owner: string, authType: string, options: {[key: string]: Obj } function onRequestRedirectedCallback(request) { - let abilityStartSetting = {want: request}; - featureAbility.startAbility(abilityStartSetting, (err) => { - console.log("startAbility err: " + JSON.stringify(err)); - }); + let wantInfo = { + deviceId: '', + bundleName: 'com.example.accountjsdemo', + action: 'ohos.want.action.viewData', + entities: ['entity.system.default'], + } + this.context.startAbility(wantInfo).then(() => { + console.log("startAbility successfully"); + }).catch((err) => { + console.log("startAbility err: " + JSON.stringify(err)); + }) } let options = { @@ -2810,7 +2834,7 @@ addAccountImplicitly(owner: string, authType: string, options: {[key: string]: a **示例:** ```js - import featureAbility from '@ohos.ability.featureAbility'; + function onResultCallback(code, result) { console.log("resultCode: " + code); @@ -2818,10 +2842,17 @@ addAccountImplicitly(owner: string, authType: string, options: {[key: string]: a } function onRequestRedirectedCallback(request) { - let abilityStartSetting = {want: request}; - featureAbility.startAbility(abilityStartSetting, (err)=>{ + let wantInfo = { + deviceId: '', + bundleName: 'com.example.accountjsdemo', + action: 'ohos.want.action.viewData', + entities: ['entity.system.default'], + } + this.context.startAbility(wantInfo).then(() => { + console.log("startAbility successfully"); + }).catch((err) => { console.log("startAbility err: " + JSON.stringify(err)); - }); + }) } appAccountManager.addAccountImplicitly("com.example.accountjsdemo", "getSocialData", {}, { @@ -3758,18 +3789,23 @@ authenticate(name: string, owner: string, authType: string, options: {[key: stri **示例:** ```js - import featureAbility from '@ohos.ability.featureAbility'; - function onResultCallback(code, result) { console.log("resultCode: " + code); console.log("result: " + JSON.stringify(result)); } function onRequestRedirectedCallback(request) { - let abilityStartSetting = {want: request}; - featureAbility.startAbility(abilityStartSetting, (err)=>{ - console.log("startAbility err: " + JSON.stringify(err)); - }); + let wantInfo = { + deviceId: '', + bundleName: 'com.example.accountjsdemo', + action: 'ohos.want.action.viewData', + entities: ['entity.system.default'], + } + this.context.startAbility(wantInfo).then(() => { + console.log("startAbility successfully"); + }).catch((err) => { + console.log("startAbility err: " + JSON.stringify(err)); + }) } appAccountManager.authenticate("LiSi", "com.example.accountjsdemo", "getSocialData", {}, { @@ -4528,10 +4564,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 892e1d64dc7e9db9ac953f7178e8d3c0d8e41ab8..ba7425428945eb12aada1253c191a19330591d3e 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 @@ -67,7 +67,7 @@ onWindowStageCreate(windowStage: window.WindowStage): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | windowStage | window.WindowStage | 是 | WindowStage相关信息。 | + | windowStage | [window.WindowStage](js-apis-window.md#windowstage9) | 是 | WindowStage相关信息。 | **示例:** @@ -111,7 +111,7 @@ onWindowStageRestore(windowStage: window.WindowStage): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | windowStage | window.WindowStage | 是 | WindowStage相关信息。 | + | windowStage | [window.WindowStage](js-apis-window.md#windowstage9) | 是 | WindowStage相关信息。 | **示例:** @@ -219,7 +219,7 @@ onContinue(wantParam : {[key: string]: any}): AbilityConstant.OnContinueResult; onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; -当ability的启动模式设置为单例时回调会被调用。 +当传入新的Want,ability再次被拉起时会回调执行该方法。 **系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore @@ -234,8 +234,9 @@ onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; ```ts class myAbility extends Ability { - onNewWant(want) { + onNewWant(want, launchParams) { console.log('onNewWant, want:' + want.abilityName); + console.log('onNewWant, launchParams:' + JSON.stringify(launchParams)); } } ``` @@ -325,7 +326,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相关参数。 | **返回值:** @@ -410,8 +411,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 MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -494,8 +495,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 MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -545,7 +546,7 @@ release(): void; ```ts import Ability from '@ohos.application.Ability'; - var caller; + let caller; export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -586,7 +587,7 @@ release(): void; ```ts import Ability from '@ohos.application.Ability'; - var caller; + let caller; export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -664,7 +665,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", ""); @@ -711,7 +712,7 @@ off(method: string): void; ```ts import Ability from '@ohos.application.Ability'; - var method = 'call_Function'; + let method = 'call_Function'; export default class MainAbility extends Ability { onCreate(want, launchParam) { console.log('Callee onCreate is called'); 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 index afd313ca4a34807a43e8b473ec67082cd02ac454..5d203e65258053d5df1822f037899289d4aab808 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityConstant.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-abilityConstant.md @@ -21,8 +21,8 @@ import AbilityConstant from '@ohos.application.AbilityConstant'; | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| launchReason | LaunchReason| 是 | 是 | 指示启动原因。 | -| lastExitReason | LastExitReason | 是 | 是 | 表示最后退出原因。 | +| launchReason | [LaunchReason](#abilityconstantlaunchreason)| 是 | 是 | 指示启动原因。 | +| lastExitReason | [LastExitReason](#abilityconstantlastexitreason) | 是 | 是 | 表示最后退出原因。 | ## AbilityConstant.LaunchReason 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 7316469ebf390dacd4684f08a3b454cff18d6491..1d5a6b763f438966e57aa075085f47a6aa2b433e 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 a1edb414999f831aea317c75d7c4d0c2b1504630..ed03531bf9656276c822294678dac2f383978897 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 @@ -159,7 +159,7 @@ onAbilityContinue(ability: Ability): void; ```ts import AbilityStage from "@ohos.application.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 b734967666cdd2beb6e8302137135c598d34c1e8..cfd957798884eb47998a9dca6d1a3bebd0f618f3 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 @@ -51,7 +51,7 @@ updateConfiguration(config: Configuration, callback: AsyncCallback\): void ```ts import abilitymanager from '@ohos.application.abilityManager'; -var config = { +let config = { language: 'chinese' } @@ -87,7 +87,7 @@ updateConfiguration(config: Configuration): Promise\ ```ts import abilitymanager from '@ohos.application.abilityManager'; -var config = { +let config = { language: 'chinese' } @@ -112,7 +112,7 @@ getAbilityRunningInfos(callback: AsyncCallback\>): vo | 参数名 | 类型 | 必填 | 说明 | | --------- | ---------------------------------------- | ---- | -------------- | -| callback | AsyncCallback\> | 是 | 被指定的回调方法。 | +| callback | AsyncCallback\> | 是 | 被指定的回调方法。 | **示例**: @@ -138,7 +138,7 @@ getAbilityRunningInfos(): Promise\> | 类型 | 说明 | | ---------------------------------------- | ------- | -| Promise\> | 返回执行结果。 | +| Promise\> | 返回执行结果。 | **示例**: @@ -150,119 +150,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 -import abilitymanager from '@ohos.application.abilityManager'; - -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 -import abilitymanager from '@ohos.application.abilityManager'; - -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\ | 是 | 被指定的回调方法。 | - -**示例**: - -```ts -import abilitymanager from '@ohos.application.abilityManager'; - -abilitymanager.getTopAbility((err,data) => { - console.log("getTopAbility err: " + err + " data: " + JSON.stringify(data)); -}); -``` - -## getTopAbility9+ - -getTopAbility(): Promise\; - -获取窗口焦点的ability接口(Promise形式)。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -**返回值:** - -| 类型 | 说明 | -| ---------------------------------------- | ------- | -| Promise\| 返回执行结果。 | - -**示例**: - -```ts -import abilitymanager from '@ohos.application.abilityManager'; - -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-accessibilityExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md index 2804125a07b0e6406101d314360b1ec2874aadbb..ef6a02866bd167e79d6f7bd148403401b1daaec7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md @@ -31,7 +31,7 @@ import AccessibilityExtensionAbility from '@ohos.application.AccessibilityExtens | 名称 | 类型 | 可读 | 可写 | 说明 | | --------- | ---------------------------------------- | ---- | ---- | ---------- | | eventType | [accessibility.EventType](js-apis-accessibility.md#EventType) \| [accessibility.WindowUpdateType](js-apis-accessibility.md#WindowUpdateType) \| [TouchGuideType](#touchguidetype) \| [GestureType](#gesturetype) \| [PageUpdateType](#pageupdatetype) | 是 | 否 | 具体事件类型。 | -| target | AccessibilityElement | 是 | 否 | 发生事件的目标组件。 | +| target | [AccessibilityElement](js-apis-inner-application-accessibilityExtensionContext.md#accessibilityelement9) | 是 | 否 | 发生事件的目标组件。 | | timeStamp | number | 是 | 否 | 事件时间戳。 | ## GestureType 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 f3f51dfbed3ba36ea4e154b4663c28acb92294f5..962caf6feae6616f83eb8b6e708bc7d482a6f33c 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 @@ -121,7 +121,7 @@ getAppMemorySize(): Promise\; | 类型 | 说明 | | -------- | -------- | - | Promise<number> | 应用程序内存大小。 | + | Promise<number> | 应用程序内存大小, 单位为M。 | **示例:** @@ -145,7 +145,7 @@ getAppMemorySize(callback: AsyncCallback\): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<number> | 是 | 应用程序内存大小。 | + | callback | AsyncCallback<number> | 是 | 应用程序内存大小, 单位为M。 | **示例:** @@ -161,7 +161,7 @@ getProcessRunningInfos(): Promise\>; 获取有关运行进程的信息。 -> 从 API Version 9 开始废弃,建议使用[appManager.getProcessRunningInformation9+](#appmanagergetprocessrunninginformation9)替代。 +> 从 API Version 9 开始废弃,建议使用[appManager.getRunningProcessInformation9+](js-apis-app-ability-appManager.md#appmanagergetrunningprocessinformation)替代。 **需要权限**:ohos.permission.GET_RUNNING_INFO @@ -171,7 +171,7 @@ getProcessRunningInfos(): Promise\>; | 类型 | 说明 | | -------- | -------- | -| Promise\> | 获取有关运行进程的信息。 | +| Promise\> | 获取有关运行进程的信息。 | **示例:** @@ -189,7 +189,7 @@ getProcessRunningInfos(callback: AsyncCallback\>): vo 获取有关运行进程的信息。 -> 从 API Version 9 开始废弃,建议使用[appManager.getProcessRunningInformation9+](#appmanagergetprocessrunninginformation9-1)替代。 +> 从 API Version 9 开始废弃,建议使用[appManager.getRunningProcessInformation9+](js-apis-app-ability-appManager.md#appmanagergetrunningprocessinformation9)替代。 **需要权限**:ohos.permission.GET_RUNNING_INFO @@ -199,7 +199,7 @@ getProcessRunningInfos(callback: AsyncCallback\>): vo | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| callback | AsyncCallback\> | 是 | 获取有关运行进程的信息。 | +| callback | AsyncCallback\> | 是 | 获取有关运行进程的信息。 | **示例:** @@ -210,57 +210,6 @@ getProcessRunningInfos(callback: AsyncCallback\>): vo }) ``` -## appManager.getProcessRunningInformation9+ - -getProcessRunningInformation(): Promise\>; - -获取有关运行进程的信息。 - -**需要权限**:ohos.permission.GET_RUNNING_INFO - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| Promise\> | 获取有关运行进程的信息。 | - -**示例:** - - ```ts - app.getProcessRunningInformation().then((data) => { - console.log('success:' + JSON.stringify(data)); - }).catch((error) => { - console.log('failed:' + JSON.stringify(error)); - }); - ``` - -## appManager.getProcessRunningInformation9+ - -getProcessRunningInformation(callback: AsyncCallback\>): void; - -获取有关运行进程的信息。 - -**需要权限**:ohos.permission.GET_RUNNING_INFO - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback\> | 是 | 获取有关运行进程的信息。 | - -**示例:** - - ```ts - app.getProcessRunningInformation((err, data) => { - console.log('startAbility result failed :' + JSON.stringify(err)); - console.log('startAbility result success:' + JSON.stringify(data)); - }) - ``` - ## appManager.registerApplicationStateObserver8+ registerApplicationStateObserver(observer: ApplicationStateObserver): number; @@ -282,7 +231,7 @@ registerApplicationStateObserver(observer: ApplicationStateObserver): number; **示例:** ```ts - var applicationStateObserver = { + let applicationStateObserver = { onForegroundApplicationChanged(appStateData) { console.log('------------ onForegroundApplicationChanged -----------', appStateData); }, @@ -325,7 +274,7 @@ registerApplicationStateObserver(observer: ApplicationStateObserver, bundleNameL **示例:** ```ts - var applicationStateObserver = { + let applicationStateObserver = { onForegroundApplicationChanged(appStateData) { console.log('------------ onForegroundApplicationChanged -----------', appStateData); }, @@ -342,7 +291,7 @@ registerApplicationStateObserver(observer: ApplicationStateObserver, bundleNameL console.log('------------ onProcessStateChanged -----------', processData); } } - var bundleNameList = ['bundleName1', 'bundleName2']; + let bundleNameList = ['bundleName1', 'bundleName2']; const observerCode = app.registerApplicationStateObserver(applicationStateObserver, bundleNameList); console.log('-------- observerCode: ---------', observerCode); ``` @@ -368,7 +317,7 @@ unregisterApplicationStateObserver(observerId: number, callback: AsyncCallback\ **示例:** ```ts - var observerId = 100; + let observerId = 100; function unregisterApplicationStateObserverCallback(err) { if (err) { @@ -405,7 +354,7 @@ unregisterApplicationStateObserver(observerId: number): Promise\; **示例:** ```ts - var observerId = 100; + let observerId = 100; app.unregisterApplicationStateObserver(observerId) .then((data) => { @@ -420,8 +369,8 @@ unregisterApplicationStateObserver(observerId: number): Promise\; getForegroundApplications(callback: AsyncCallback\>): void; -获取前台进程的应用程序。 - +获取所有当前处于前台的应用信息。该应用信息由[AppStateData](js-apis-inner-application-appStateData.md)定义。 + **需要权限**:ohos.permission.GET_RUNNING_INFO **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -432,7 +381,7 @@ getForegroundApplications(callback: AsyncCallback\>): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| callback | AsyncCallback\> | 是 | 表示应用的状态数据。 | +| callback | AsyncCallback\> | 是 | callback形式返回所有当前处于前台的应用信息。 | **示例:** @@ -451,7 +400,7 @@ getForegroundApplications(callback: AsyncCallback\>): void; getForegroundApplications(): Promise\>; -获取前台进程的应用程序。 +获取所有当前处于前台的应用信息。该应用信息由[AppStateData](js-apis-inner-application-appStateData.md)定义。 **需要权限**:ohos.permission.GET_RUNNING_INFO @@ -463,7 +412,7 @@ getForegroundApplications(): Promise\>; | 类型 | 说明 | | -------- | -------- | -| Promise\> | 返回进程运行信息的数组。 | +| Promise\> | Promise形式返回所有当前处于前台的应用信息。 | **示例:** @@ -499,8 +448,8 @@ killProcessWithAccount(bundleName: string, accountId: number): Promise\ **示例:** ```ts -var bundleName = 'bundleName'; -var accountId = 0; +let bundleName = 'bundleName'; +let accountId = 0; app.killProcessWithAccount(bundleName, accountId) .then((data) => { console.log('------------ killProcessWithAccount success ------------', data); @@ -534,8 +483,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); @@ -568,7 +517,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); @@ -606,7 +555,7 @@ killProcessesByBundleName(bundleName: string): Promise\; **示例:** ```ts - var bundleName = 'bundleName'; + let bundleName = 'bundleName'; app.killProcessesByBundleName(bundleName) .then((data) => { console.log('------------ killProcessesByBundleName success ------------', data); @@ -638,7 +587,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); @@ -676,7 +625,7 @@ clearUpApplicationData(bundleName: string): Promise\; **示例:** ```ts - var bundleName = 'bundleName'; + let bundleName = 'bundleName'; app.clearUpApplicationData(bundleName) .then((data) => { console.log('------------ clearUpApplicationData success ------------', data); @@ -684,32 +633,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 b632f5ddd1e8703b864c507ec8376325bfc6a88f..1e4211c7b01b29f38829f231f2b9f054db71b47c 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 | 是 | 是 | 表示应用程序的当前语言。 | | 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文件 @@ -45,10 +35,6 @@ export default class MainAbility extends Ability { 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 e0d8ab2476362df2412df2164b073177f9a23a78..00483e42a205167dcd62722f40c576a4e745e276 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 @@ -35,7 +35,7 @@ onConfigurationUpdated(config: Configuration): void; ```ts import Ability from "@ohos.application.Ability"; -var callbackId; +let callbackId; export default class MyAbility extends Ability { 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 d5674d410da3e50dc081b098a2a2903c045e7f75..f70378719e985d1f44f1c963b9cc83e773ffb9de 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-missionManager.md b/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md index c95a76feec5ab019a2411ba88f0db2ce2eaf66d4..39bf6bb3888af54ec793b06425ab3334beda3426 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) => { console.log("getMissionInfo is called, error.code = " + error.code) console.log("mission.missionId = " + mission.missionId); @@ -210,7 +210,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); }); ``` @@ -279,7 +279,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); }); ``` @@ -314,7 +314,7 @@ getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback& console.log("getMissionInfos is called, error.code = " + error.code); 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) => { console.log("getMissionSnapShot is called, error.code = " + error.code); @@ -354,15 +354,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); }); ``` @@ -396,7 +396,7 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: A console.log("getMissionInfos is called, error.code = " + error.code); 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) => { console.log("getLowResolutionMissionSnapShot is called, error.code = " + error.code); @@ -436,15 +436,15 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise\ **说明:** > -> 本模块首批接口从API version 8 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块首批接口从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来表示对数据要执行的操作。 | -| 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类型。 | | 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..a147cdf9888d5fb9f2a864fc3745302c8bc04beb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-audio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-audio.md @@ -74,7 +74,7 @@ createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback\ ```js import featureAbility from '@ohos.ability.featureAbility'; -import fileio from '@ohos.fileio'; +import fs from '@ohos.file.fs'; import audio from '@ohos.multimedia.audio'; let audioStreamInfo = { @@ -456,7 +456,7 @@ async function createTonePlayerBefore(){ | SAMPLE_FORMAT_S16LE | 1 | 带符号的16位整数,小尾数。 | | SAMPLE_FORMAT_S24LE | 2 | 带符号的24位整数,小尾数。
由于系统限制,该采样格式仅部分设备支持,请根据实际情况使用。| | SAMPLE_FORMAT_S32LE | 3 | 带符号的32位整数,小尾数。
由于系统限制,该采样格式仅部分设备支持,请根据实际情况使用。| -| SAMPLE_FORMAT_F32LE9+ | 4 | 带符号的32位整数,小尾数。
由于系统限制,该采样格式仅部分设备支持,请根据实际情况使用。| +| SAMPLE_FORMAT_F32LE9+ | 4 | 带符号的32位浮点数,小尾数。
由于系统限制,该采样格式仅部分设备支持,请根据实际情况使用。| ## AudioErrors9+ @@ -4020,7 +4020,7 @@ audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => | ----------------------------- | -------------------------- | ---- | ---- | ---------- | | deviceRole | [DeviceRole](#devicerole) | 是 | 否 | 设备角色。 | | deviceType | [DeviceType](#devicetype) | 是 | 否 | 设备类型。 | -| id9+ | number | 是 | 否 | 设备id。 | +| id9+ | number | 是 | 否 | 设备id,唯一。 | | name9+ | string | 是 | 否 | 设备名称。 | | address9+ | string | 是 | 否 | 设备地址。 | | sampleRates9+ | Array<number> | 是 | 否 | 支持的采样率。 | @@ -4530,16 +4530,26 @@ async function getCacheDir(){ path = await context.getCacheDir(); } let filePath = path + '/StarWars10s-2C-48000-4SW.wav'; -let ss = fileio.createStreamSync(filePath, 'r'); +let file = fs.openSync(filePath, fs.OpenMode.READ_ONLY); +let stat = await fs.stat(path); let buf = new ArrayBuffer(bufferSize); -ss.readSync(buf); -audioRenderer.write(buf, (err, writtenbytes) => { - if (writtenbytes < 0) { - console.error('write failed.'); - } else { - console.info(`Actual written bytes: ${writtenbytes}`); - } -}); +let len = stat.size % this.bufferSize == 0 ? Math.floor(stat.size / this.bufferSize) : Math.floor(stat.size / this.bufferSize + 1); +for (let i = 0;i < len; i++) { + let options = { + offset: i * this.bufferSize, + length: this.bufferSize + } + let readsize = await fs.read(file.fd, buf, options) + let writeSize = await new Promise((resolve,reject)=>{ + this.audioRenderer.write(buf,(err,writeSize)=>{ + if(err){ + reject(err) + }else{ + resolve(writeSize) + } + }) + }) +} ``` ### write8+ @@ -4573,18 +4583,22 @@ async function getCacheDir(){ path = await context.getCacheDir(); } let filePath = path + '/StarWars10s-2C-48000-4SW.wav'; -let ss = fileio.createStreamSync(filePath, 'r'); +let file = fs.openSync(filePath, fs.OpenMode.READ_ONLY); +let stat = await fs.stat(path); let buf = new ArrayBuffer(bufferSize); -ss.readSync(buf); -audioRenderer.write(buf).then((writtenbytes) => { - if (writtenbytes < 0) { - console.error('write failed.'); - } else { - console.info(`Actual written bytes: ${writtenbytes}`); - } -}).catch((err) => { - console.error(`ERROR: ${err}`); -}); +let len = stat.size % this.bufferSize == 0 ? Math.floor(stat.size / this.bufferSize) : Math.floor(stat.size / this.bufferSize + 1); +for (let i = 0;i < len; i++) { + let options = { + offset: i * this.bufferSize, + length: this.bufferSize + } + let readsize = await fs.read(file.fd, buf, options) + try{ + let writeSize = await this.audioRenderer.write(buf); + } catch(err) { + console.error(`audioRenderer.write err: ${err}`); + } +} ``` ### getAudioTime8+ 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..af11fb4902b5fa0cbe451bfc5c3b19a8ac08061b 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 @@ -30,7 +30,7 @@ import batteryInfo from '@ohos.batteryInfo'; | batteryTemperature | number | 是 | 否 | 表示当前设备电池的温度,单位0.1摄氏度。 | | isBatteryPresent7+ | boolean | 是 | 否 | 表示当前设备是否支持电池或者电池是否在位。 | | batteryCapacityLevel9+ | [BatteryCapacityLevel](#batterycapacitylevel9) | 是 | 否 | 表示当前设备电池电量的等级。 | -| estimatedRemainingChargeTime9+ | number | 是 | 否 | 表示当前设备充满电的预估时间,单位毫秒。 | +| estimatedRemainingChargeTime9+ | number | 是 | 否 | 表示当前设备充满电的预估时间,单位毫秒。此接口为系统接口。 | | totalEnergy9+ | number | 是 | 否 | 表示当前设备电池的总容量,单位毫安时。此接口为系统接口。 | | nowCurrent9+ | number | 是 | 否 | 表示当前设备电池的电流,单位毫安。此接口为系统接口。 | | remainingEnergy9+ | number | 是 | 否 | 表示当前设备电池的剩余容量,单位毫安时。此接口为系统接口。 | @@ -84,14 +84,15 @@ 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+ +## CommonEventBatteryChangedKey9+ 表示COMMON_EVENT_BATTERY_CHANGED通用事件附加信息的查询键。 @@ -99,14 +100,12 @@ import batteryInfo from '@ohos.batteryInfo'; | 名称 | 值 | 说明 | | -------------------- | ------ | -------------------------------------------------- | -| EXTRA_SOC | 0 | 表示剩余电池电量百分比的查询键。 | -| EXTRA_VOLTAGE | 1 | 表示当前设备电池电压的查询键。 | -| EXTRA_TEMPERATURE | 2 | 表示当前设备电池温度的查询键。 | -| EXTRA_HEALTH_STATE | 3 | 表示当前设备电池健康状态的查询键。 | -| EXTRA_PLUGGED_TYPE | 4 | 表示当前设备连接的充电器类型的查询键。 | -| EXTRA_MAX_CURRENT | 5 | 表示当前设备电池最大电流的查询键。 | -| EXTRA_MAX_VOLTAGE | 6 | 表示当前设备电池最大电压的查询键。 | -| EXTRA_CHARGE_STATE | 7 | 表示当前设备电池充电状态的查询键。 | -| EXTRA_CHARGE_COUNTER | 8 | 表示当前设备电池充电次数的查询键。 | -| EXTRA_PRESENT | 9 | 表示当前设备是否支持电池或者电池是否在位的查询键。 | -| EXTRA_TECHNOLOGY | 10 | 表示当前设备电池技术型号的查询键。 | +| EXTRA_SOC | "soc" | 表示剩余电池电量百分比的查询键。 | +| EXTRA_CHARGE_STATE | "chargeState" | 表示当前设备电池充电状态的查询键。 | +| EXTRA_HEALTH_STATE | "healthState" | 表示当前设备电池健康状态的查询键。 | +| EXTRA_PLUGGED_TYPE | "pluggedType" | 表示当前设备连接的充电器类型的查询键。 | +| EXTRA_VOLTAGE | "voltage" | 表示当前设备电池电压的查询键。 | +| EXTRA_TECHNOLOGY | "technology" | 表示当前设备电池技术型号的查询键。 | +| EXTRA_TEMPERATURE | "temperature" | 表示当前设备电池温度的查询键。 | +| EXTRA_PRESENT | "present" | 表示当前设备是否支持电池或者电池是否在位的查询键。 | +| EXTRA_CAPACITY_LEVEL | "capacityLevel" | 表示当前设备电池电量等级的查询键。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-packInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-BundlePackInfo.md similarity index 97% rename from zh-cn/application-dev/reference/apis/js-apis-bundleManager-packInfo.md rename to zh-cn/application-dev/reference/apis/js-apis-bundleManager-BundlePackInfo.md index 0d860491a8a30356c125cc7f5ea514d3b435e3ed..08b83485afe01fbc3fde8e13156a1532a8b1b620 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-packInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-BundlePackInfo.md @@ -1,4 +1,4 @@ -# PackInfo +# BundlePackInfo > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** @@ -91,7 +91,7 @@ | ------- | ------------------------------------------- | ---- | ---- | ------------------------------------------------------------ | | name | string | 是 | 否 | 表示当前ability的名称,该名称在整个应用要唯一。 | | label | string | 是 | 否 | 表示ability对用户显示的名称,标签值配置为该名称的资源索引以支持多语言。 | -| visible | boolean | 是 | 否 | 表示ability是否可以被其它应用调用,true表示可以被其它应用调用,false表示不可以被其它应用调用。 | +| exported | boolean | 是 | 否 | 表示ability是否可以被其它应用调用,true表示可以被其它应用调用,false表示不可以被其它应用调用。 | | forms | Array\<[AbilityFormInfo](#abilityforminfo)> | 是 | 否 | 卡片信息。 | ## ExtensionAbility diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md index 898617063242ab6362b664cb307415eeae7487e2..8a205d6b595dc9f92882affcc9736f8ebb999c80 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md @@ -22,7 +22,7 @@ Ability信息,系统应用可以通过[bundleManager.queryAbilityInfo](js-apis | icon | string | 是 | 否 | Ability的图标资源文件索引。 | | iconId | number | 是 | 否 | Ability的图标资源id。 | | process | string | 是 | 否 | Ability的进程,如果不设置,默认为包的名称。 | -| isVisible | boolean | 是 | 否 | 判断Ability是否可以被其他应用调用。 | +| exported | boolean | 是 | 否 | 判断Ability是否可以被其他应用调用。 | | type | [AbilityType](js-apis-bundleManager.md#abilitytype) | 是 | 否 | Ability类型
此属性仅可在FA模型下使用。 | | orientation | [DisplayOrientation](js-apis-bundleManager.md#displayorientation) | 是 | 否 | Ability的显示模式。 | | launchType | [LaunchType](js-apis-bundleManager.md#launchtype) | 是 | 否 | Ability的启动模式。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md index c0c78d5314de14552ffe72ffc43860e8feb07871..5a60a7b6ac2c192b3f5a2aceee32c2fd72135f5e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md @@ -12,12 +12,12 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | -------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | | name | string | 是 | 否 | 应用程序的名称。 | -| description | string | 是 | 否 | 标识应用的描述信息。 | +| description | string | 是 | 否 | 标识应用的描述信息,使用示例:"description": $string: mainability_description"。 | | descriptionId | number | 是 | 否 | 标识应用的描述信息的资源id。 | | enabled | boolean | 是 | 否 | 判断应用程序是否可以使用,默认为true。 | -| label | string | 是 | 否 | 标识应用的名称。 | +| label | string | 是 | 否 | 标识应用的名称,使用示例:"label": "$string: mainability_description"。| | labelId | number | 是 | 否 | 标识应用名称的资源id。 | -| icon | string | 是 | 否 | 应用程序的图标。 | +| icon | string | 是 | 否 | 应用程序的图标,使用示例:"icon": "$media:icon"。 | | iconId | number | 是 | 否 | 应用程序图标的资源id。 | | process | string | 是 | 否 | 应用程序的进程,如果不设置,默认为包的名称。 | | permissions | Array\ | 是 | 否 | 访问应用程序所需的权限,通过调用[bundleManager.getApplicationInfo](js-apis-bundleManager.md#bundlemanagergetapplicationinfo)接口,传入GET_APPLICATION_INFO_WITH_PERMISSION获取。 | @@ -26,9 +26,9 @@ | removable | boolean | 是 | 否 | 应用程序是否可以被移除。 | | accessTokenId | number | 是 | 否 | 应用程序的accessTokenId。 | | uid | number | 是 | 否 | 应用程序的uid。 | -| iconResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的图标资源信息。 | -| labelResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的标签资源信息。 | -| descriptionResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的描述资源信息。 | +| iconResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的图标资源信息,通过ApplicationInfo 获取的resource 包含了该资源的信息的bundleName、moduleName 和 id,可以调用全球化的接口[@ohos.resourceManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.resourceManager.d.ts)中的getMediaContent来获取详细的资源数据信息。 | +| labelResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的标签资源信息,通过ApplicationInfo 获取的resource 包含了该资源的信息的bundleName、moduleName 和 id,可以调用全球化的接口[@ohos.resourceManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.resourceManager.d.ts)中的getMediaContent来获取详细的资源数据信息。 | +| descriptionResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的描述资源信息,通过ApplicationInfo 获取的resource 包含了该资源的信息的bundleName、moduleName 和 id,可以调用全球化的接口[@ohos.resourceManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.resourceManager.d.ts)中的getMediaContent来获取详细的资源数据信息。| | appDistributionType | string | 是 | 否 | 应用程序签名证书的分发类型,分为:app_gallery、enterprise、os_integration和crowdtesting。 | | appProvisionType | string | 是 | 否 | 应用程序签名证书文件的类型,分为debug和release两种类型。 | | systemApp | boolean | 是 | 否 | 标识应用是否为系统应用。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md index 7555f12952f79890c53e42290911ef54c18bebb0..bc6c7a699d588bc9fde4c16cbcb6c0eb1017c89b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md @@ -16,7 +16,7 @@ ExtensionAbility信息,系统应用可以通过[bundleManager.getBundleInfo](j | labelId | number | 是 | 否 | ExtensionAbility的标签资源id | | descriptionId | number | 是 | 否 | ExtensionAbility的描述资源id | | iconId | number | 是 | 否 | ExtensionAbility的图标资源id | -| isVisible | boolean | 是 | 否 | 判断ExtensionAbility是否可以被其他应用调用 | +| exported | boolean | 是 | 否 | 判断ExtensionAbility是否可以被其他应用调用 | | extensionAbilityType | [ExtensionAbilityType](js-apis-bundleManager.md#extensionabilitytype) | 是 | 否 | ExtensionAbility类型 | | permissions | Array\ | 是 | 否 | 被其他应用ExtensionAbility调用时需要申请的权限集合 | | applicationInfo | [ApplicationInfo](js-apis-bundleManager-applicationInfo.md) | 是 | 否 | 应用程序的配置信息 | 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 2116ec5f322da5c10ca1cd8a7220ecd9b7f61df4..41a5f9004569ddfb3ca89240c5a6e6df5431dd27 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md @@ -146,7 +146,7 @@ Ability组件信息标志,指示需要获取的Ability组件信息的内容。 | 名称 | 值 | 说明 | |:----------------:|:---:|:---:| | SINGLETON | 0 | ability的启动模式,表示单实例。 | -| STANDARD | 1 | ability的启动模式,表示普通多实例。 | +| MULTITON | 1 | ability的启动模式,表示普通多实例。 | | SPECIFIED | 2 | ability的启动模式,表示该ability内部根据业务自己置顶多实例。 | ### AbilityType @@ -2654,119 +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 = 'MainAbility'; - -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 = 'MainAbility'; - -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 getApplicationInfoSync(bundleName: string, applicationFlags: number, userId: number) : [ApplicationInfo](js-apis-bundleManager-applicationInfo.md); 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..4dd94b70f16f436860dc429e206371b6b6f8aafe 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开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -14,13 +14,13 @@ import call from '@ohos.telephony.call'; ``` -## call.dial +## call.dial(deprecated) dial\(phoneNumber: string, callback: AsyncCallback\): void 拨打电话。使用callback异步回调。 -**需要权限**:ohos.permission.PLACE\_CALL,该权限为系统权限 +**需要权限**:ohos.permission.PLACE_CALL **系统能力**:SystemCapability.Telephony.CallManager @@ -40,13 +40,13 @@ call.dial("138xxxxxxxx", (err, data) => { ``` -## call.dial +## call.dial(deprecated) dial\(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void 拨打电话,可设置通话参数。使用callback异步回调。 -**需要权限**:ohos.permission.PLACE\_CALL,该权限为系统权限 +**需要权限**:ohos.permission.PLACE_CALL **系统能力**:SystemCapability.Telephony.CallManager @@ -69,13 +69,13 @@ call.dial("138xxxxxxxx", { ``` -## call.dial +## call.dial(deprecated) dial\(phoneNumber: string, options?: DialOptions\): Promise 拨打电话,可设置通话参数。使用Promise异步回调。 -**需要权限**:ohos.permission.PLACE\_CALL,该权限为系统权限 +**需要权限**:ohos.permission.PLACE_CALL **系统能力**:SystemCapability.Telephony.CallManager @@ -105,6 +105,142 @@ promise.then(data => { }); ``` + +## call.dialCall9+ + +dialCall\(phoneNumber: string, callback: AsyncCallback\): void + +拨打电话。使用callback异步回调。 + +**系统接口:** 此接口为系统接口。 + +**需要权限**:ohos.permission.PLACE_CALL + +**系统能力**:SystemCapability.Telephony.CallManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ---------------------------- | ---- | --------------------------------------- | +| phoneNumber | string | 是 | 电话号码。 | +| callback | AsyncCallback<void> | 是 | 回调函数。 | + +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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<void> | 是 | 回调函数。 | + +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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)| 否 | 通话参数,选择为语音通话还是视频通话。 | + +**返回值:** + +| 类型 | 说明 | +| ---------------------- | ------------------------------------------------------------ | +| Promise<void> | 以Promise形式返回拨打电话的结果。 | + +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +256,22 @@ makeCall(phoneNumber: string, callback: AsyncCallback\): void | phoneNumber | string | 是 | 电话号码。 | | callback | AsyncCallback<void> | 是 | 以callback形式异步返回跳转拨号界面的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +296,25 @@ makeCall(phoneNumber: string): Promise\ | ------------------- | --------------------------------- | | Promise<void> | 以Promise形式异步返回拨号的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +449,17 @@ isEmergencyPhoneNumber\(phoneNumber: string, callback: AsyncCallback\) | phoneNumber | string | 是 | 电话号码。 | | callback | AsyncCallback<boolean> | 是 | 回调函数。返回true表示是紧急电话号码,返回false表示不是紧急电话号码。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +485,17 @@ isEmergencyPhoneNumber\(phoneNumber: string, options: EmergencyNumberOptions, ca | options | [EmergencyNumberOptions](#emergencynumberoptions7) | 是 | 电话号码参数。 | | callback | AsyncCallback<boolean> | 是 | 回调函数。返回true表示是紧急电话号码,返回false表示不是紧急电话号码。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +526,17 @@ isEmergencyPhoneNumber\(phoneNumber: string, options?: EmergencyNumberOptions\): | ---------------------- | --------------------------------------------------- | | Promise<boolean> | 以Promise形式异步返回判断是否是紧急电话号码的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +565,17 @@ formatPhoneNumber\(phoneNumber: string, callback: AsyncCallback\): void | phoneNumber | string | 是 | 电话号码。 | | callback | AsyncCallback<string> | 是 | 回调函数,返回格式化电话号码的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +602,17 @@ formatPhoneNumber\(phoneNumber: string, options: NumberFormatOptions, callback: | options | [NumberFormatOptions](#numberformatoptions7) | 是 | 格式化参数,如国家码。 | | callback | AsyncCallback<string> | 是 | 回调函数,返回格式化电话号码的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +647,17 @@ formatPhoneNumber\(phoneNumber: string, options?: NumberFormatOptions\): Promise | --------------------- | ------------------------------------------- | | Promise<string> | 以Promise形式异步返回格式化电话号码的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +689,17 @@ formatPhoneNumberToE164\(phoneNumber: string, countryCode: string, callback: Asy | countryCode | string | 是 | 国家码,支持所有国家码,如:中国(CN)。 | | callback | AsyncCallback<string> | 是 | 回调函数,返回将电话号码格式化为E.164表示形式的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +734,17 @@ formatPhoneNumberToE164\(phoneNumber: string, countryCode: string\): Promise\): void 如果来电铃声响起,设备将停止铃声。否则,此方法不起作用。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -528,6 +774,17 @@ muteRinger\(callback: AsyncCallback\): void | ----------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +800,7 @@ muteRinger\(\): Promise 如果来电铃声响起,设备将停止铃声。否则,此方法不起作用。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -555,6 +812,18 @@ muteRinger\(\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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,13 +836,13 @@ promise.then(data => { ``` -## call.answer7+ +## call.answerCall7+ -answer\(callId: number, callback: AsyncCallback\): void +answerCall\(callId: number, callback: AsyncCallback\): void 接听来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -586,22 +855,34 @@ answer\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。可以通过订阅callDetailsChange事件获得。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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.answer(1, (err, data) => { +call.answerCall(1, (err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` -## call.answer7+ +## call.answerCall7+ -answer(callId?: number\): Promise +answerCall(callId?: number\): Promise 接听来电。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -619,25 +900,37 @@ answer(callId?: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 -let promise = call.answer(1); +let promise = call.answerCall(1); promise.then(data => { - console.log(`answer success, promise: data->${JSON.stringify(data)}`); + console.log(`answerCall success, promise: data->${JSON.stringify(data)}`); }).catch(err => { - console.error(`answer fail, promise: err->${JSON.stringify(err)}`); + console.error(`answerCall fail, promise: err->${JSON.stringify(err)}`); }); ``` -## call.hangup7+ +## call.answerCall9+ -hangup\(callId: number, callback: AsyncCallback\): void +answerCall\(callback: AsyncCallback\): void -挂断电话。使用callback异步回调。 +接听来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -645,27 +938,38 @@ hangup\(callId: number, callback: AsyncCallback\): void **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------- | ---- | ----------------------------------------------- | -| callId | number | 是 | 呼叫id。可以通过订阅callDetailsChange事件获得。 | -| callback | AsyncCallback<void> | 是 | 回调函数。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------- | ---- | ---------- | +| callback | AsyncCallback<void> | 是 | 回调函数。 | + +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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.hangup(1, (err, data) => { +call.answerCall((err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` -## call.answer9+ +## call.hangUpCall7+ -answer\(callback: AsyncCallback\): void +hangUpCall\(callId: number, callback: AsyncCallback\): void -接听来电。使用callback异步回调。 +挂断电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -673,26 +977,39 @@ answer\(callback: AsyncCallback\): void **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------- | ---- | ---------- | -| callback | AsyncCallback<void> | 是 | 回调函数。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------- | ---- | ----------------------------------------------- | +| callId | number | 是 | 呼叫id。可以通过订阅callDetailsChange事件获得。 | +| callback | AsyncCallback<void> | 是 | 回调函数。 | + +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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.answer((err, data) => { +call.hangUpCall(1, (err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` -## call.hangup7+ +## call.hangUpCall7+ -hangup\(callId?: number\): Promise +hangUpCall\(callId?: number\): Promise 挂断电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -710,25 +1027,37 @@ hangup\(callId?: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 -let promise = call.hangup(1); +let promise = call.hangUpCall(1); promise.then(data => { - console.log(`hangup success, promise: data->${JSON.stringify(data)}`); + console.log(`hangUpCall success, promise: data->${JSON.stringify(data)}`); }).catch(err => { - console.error(`hangup fail, promise: err->${JSON.stringify(err)}`); + console.error(`hangUpCall fail, promise: err->${JSON.stringify(err)}`); }); ``` -## call.hangup9+ +## call.hangUpCall9+ -hangup\(callback: AsyncCallback\): void +hangUpCall\(callback: AsyncCallback\): void 挂断电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -740,22 +1069,35 @@ hangup\(callback: AsyncCallback\): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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.hangup((err, data) => { +call.hangUpCall((err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` -## call.reject7+ +## call.rejectCall7+ -reject(callId: number, callback: AsyncCallback\): void +rejectCall(callId: number, callback: AsyncCallback\): void 拒绝来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -768,22 +1110,35 @@ reject(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。可以通过订阅callDetailsChange事件获得。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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.reject(1, (err, data) => { +call.rejectCall(1, (err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` -## call.reject7+ +## call.rejectCall7+ -reject\(callId: number, options: RejectMessageOptions, callback: AsyncCallback\): void +rejectCall\(callId: number, options: RejectMessageOptions, callback: AsyncCallback\): void 拒绝来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -797,25 +1152,37 @@ reject\(callId: number, options: RejectMessageOptions, callback: AsyncCallback { +call.rejectCall(1, rejectMessageOptions, (err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` -## call.reject7+ +## call.rejectCall7+ -reject(callId?: number, options?: RejectMessageOptions\): Promise +rejectCall(callId?: number, options?: RejectMessageOptions\): Promise 拒绝来电。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -834,28 +1201,40 @@ reject(callId?: number, options?: RejectMessageOptions\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 let rejectMessageOptions={ messageContent: "拦截陌生号码" } -let promise = call.reject(1, rejectMessageOptions); +let promise = call.rejectCall(1, rejectMessageOptions); promise.then(data => { - console.log(`reject success, promise: data->${JSON.stringify(data)}`); + console.log(`rejectCall success, promise: data->${JSON.stringify(data)}`); }).catch(err => { - console.error(`reject fail, promise: err->${JSON.stringify(err)}`); + console.error(`rejectCall fail, promise: err->${JSON.stringify(err)}`); }); ``` -## call.reject9+ +## call.rejectCall9+ -reject\(callback: AsyncCallback\): void +rejectCall\(callback: AsyncCallback\): void 拒绝来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -867,22 +1246,34 @@ reject\(callback: AsyncCallback\): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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.reject((err, data) => { +call.rejectCall((err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` -## call.reject9+ +## call.rejectCall9+ -reject\(options: RejectMessageOptions, callback: AsyncCallback\): void +rejectCall\(options: RejectMessageOptions, callback: AsyncCallback\): void 拒绝来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -895,13 +1286,25 @@ reject\(options: RejectMessageOptions, callback: AsyncCallback\): void | options | [RejectMessageOptions](#rejectmessageoptions7) | 是 | 拒绝消息选项。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 let rejectMessageOptions={ messageContent: "拦截陌生号码" } -call.reject(rejectMessageOptions, (err, data) => { +call.rejectCall(rejectMessageOptions, (err, data) => { console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); }); ``` @@ -913,7 +1316,7 @@ holdCall\(callId: number, callback: AsyncCallback\): void 保持通话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -926,6 +1329,18 @@ holdCall\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1356,7 @@ holdCall\(callId: number\): Promise 保持通话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -959,6 +1374,18 @@ holdCall\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1403,7 @@ unHoldCall\(callId: number, callback: AsyncCallback\): void 取消保持通话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -989,6 +1416,18 @@ unHoldCall\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1443,7 @@ unHoldCall\(callId: number\): Promise 取消保持通话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -1022,6 +1461,18 @@ unHoldCall\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1490,7 @@ switchCall\(callId: number, callback: AsyncCallback\): void 切换呼叫。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -1052,6 +1503,18 @@ switchCall\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1530,7 @@ switchCall\(callId: number\): Promise 切换呼叫。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -1085,6 +1548,18 @@ switchCall\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1577,7 @@ combineConference\(callId: number, callback: AsyncCallback\): void 合并通话,将两通电话合并成会议电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1113,6 +1588,17 @@ combineConference\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1614,7 @@ combineConference\(callId: number\): Promise 合并通话,将两通电话合并成会议电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1144,6 +1630,17 @@ combineConference\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1658,7 @@ getMainCallId\(callId: number, callback: AsyncCallback\): void 获取主呼叫Id。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1172,6 +1669,18 @@ getMainCallId\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<number> | 是 | 回调函数。返回主呼叫Id。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1696,7 @@ getMainCallId\(callId: number\): Promise 获取主呼叫Id。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1203,6 +1712,17 @@ getMainCallId\(callId: number\): Promise | ------------------- | ------------------------------- | | Promise<void> | 以Promise形式异步返回主呼叫Id。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1740,7 @@ getSubCallIdList\(callId: number, callback: AsyncCallback\>\): vo 获取子呼叫Id列表。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1231,6 +1751,17 @@ getSubCallIdList\(callId: number, callback: AsyncCallback\>\): vo | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback\> | 是 | 回调函数。返回子呼叫Id列表。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1777,7 @@ getSubCallIdList\(callId: number\): Promise\> 获取子呼叫Id列表。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1262,6 +1793,17 @@ getSubCallIdList\(callId: number\): Promise\> | ----------------------------- | ----------------------------------- | | Promise<Array> | 以Promise形式异步返回子呼叫Id列表。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1821,7 @@ getCallIdListForConference\(callId: number, callback: AsyncCallback> | 是 | 回调函数。返回会议的呼叫Id列表。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1858,7 @@ getCallIdListForConference\(callId: number\): Promise\> 获取会议的呼叫Id列表。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1321,6 +1874,17 @@ getCallIdListForConference\(callId: number\): Promise\> | ----------------------------- | --------------------------------------- | | Promise<Array> | 以Promise形式异步返回会议的呼叫Id列表。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1902,7 @@ getCallWaitingStatus\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<[CallWaitingStatus](#callwaitingstatus7)\> | 是 | 回调函数。
返回呼叫等待状态。
- 0:禁用呼叫等待
- 1:启用呼叫等待 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1942,7 @@ getCallWaitingStatus\(slotId: number\): Promise 获取呼叫等待状态。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.GET_TELEPHONY_STATE @@ -1384,6 +1960,18 @@ getCallWaitingStatus\(slotId: number\): Promise | ------------------------------------------------------- | ------------------------------------------------------------ | | Promise<[CallWaitingStatus](#callwaitingstatus7)> | 以Promise形式异步返回呼叫等待状态。
- 0:禁用呼叫等待
- 1:启用呼叫等待 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1989,7 @@ setCallWaiting\(slotId: number, activate: boolean, callback: AsyncCallback- false:禁用呼叫等待
- true:启用呼叫等待 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2030,7 @@ setCallWaiting\(slotId: number, activate: boolean\): Promise 设置呼叫等待。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1449,6 +2049,18 @@ setCallWaiting\(slotId: number, activate: boolean\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2078,7 @@ startDTMF\(callId: number, character: string, callback: AsyncCallback\): 启动双音多频。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1478,6 +2090,17 @@ startDTMF\(callId: number, character: string, callback: AsyncCallback\): | character | string | 是 | DTMF码。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2116,7 @@ startDTMF\(callId: number, character: string\): Promise 启动双音多频。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1510,6 +2133,17 @@ startDTMF\(callId: number, character: string\): Promise | ------------------- | ----------------------- | | Promise<void> | 以Promise形式异步返回。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2161,7 @@ stopDTMF\(callId: number, callback: AsyncCallback\): void 停止双音多频。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1538,6 +2172,17 @@ stopDTMF\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2198,7 @@ stopDTMF\(callId: number\): Promise 停止双音多频。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1569,6 +2214,17 @@ stopDTMF\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2242,7 @@ isInEmergencyCall\(callback: AsyncCallback\): void 判断是否正在处于紧急呼叫。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1598,6 +2254,18 @@ isInEmergencyCall\(callback: AsyncCallback\): void | -------- | ---------------------------- | ---- | ---------- | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2281,7 @@ isInEmergencyCall\(\): Promise 判断是否正在处于紧急呼叫。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1625,6 +2293,18 @@ isInEmergencyCall\(\): Promise | ---------------------- | --------------------------- | | Promise<boolean> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2322,7 @@ on\(type: 'callDetailsChange', callback: Callback\): void 订阅callDetailsChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1655,6 +2335,18 @@ on\(type: 'callDetailsChange', callback: Callback\): void | type | string | 是 | 通话时监听通话详情的变化。 | | callback | Callback<[CallAttributeOptions](#callattributeoptions7)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2361,7 @@ on\(type: 'callEventChange', callback: Callback\): void 订阅callEventChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1682,6 +2374,18 @@ on\(type: 'callEventChange', callback: Callback\): void | type | string | 是 | 通话时监听通话事件的变化。 | | callback | Callback<[CallEventOptions](#calleventoptions8)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2400,7 @@ on\(type: 'callDisconnectedCause', callback: Callback): vo 订阅callDisconnectedCause事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1709,6 +2413,18 @@ on\(type: 'callDisconnectedCause', callback: Callback): vo | type | string | 是 | 通话时监听断开连接的原因。 | | callback | Callback<[DisconnectedDetails](#disconnecteddetails9)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2439,7 @@ on\(type: 'mmiCodeResult', callback: Callback\): void 订阅mmiCodeResult事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1736,6 +2452,18 @@ on\(type: 'mmiCodeResult', callback: Callback\): void | type | string | 是 | 通话时监听MMI码结果。 | | callback | Callback<[MmiCodeResults](#mmicoderesults9)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2478,7 @@ off\(type: 'callDetailsChange', callback?: Callback\): vo 取消订阅callDetailsChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1763,6 +2491,18 @@ off\(type: 'callDetailsChange', callback?: Callback\): vo | type | string | 是 | 通话结束时取消监听通话详情的变化。 | | callback | Callback<[CallAttributeOptions](#callattributeoptions7)> | 否 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2517,7 @@ off\(type: 'callEventChange', callback?: Callback\): void 取消订阅callEventChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1790,6 +2530,18 @@ off\(type: 'callEventChange', callback?: Callback\): void | type | string | 是 | 通话结束时取消监听通话事件的变化。 | | callback | Callback<[CallEventOptions](#calleventoptions8)> | 否 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2556,7 @@ off\(type: 'callDisconnectedCause', callback?: Callback\): 取消订阅callDisconnectedCause事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1817,6 +2569,18 @@ off\(type: 'callDisconnectedCause', callback?: Callback\): | type | 'callDisconnectedCause' | 是 | 调用断开连接的原因。 | | callback | Callback**<**[DisconnectedDetails](#disconnecteddetails9)> | 否 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2595,7 @@ off\(type: 'mmiCodeResult', callback?: Callback\): void 取消订阅mmiCodeResult事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1844,6 +2608,18 @@ off\(type: 'mmiCodeResult', callback?: Callback\): void | type | 'mmiCodeResult' | 是 | MMI码结果。 | | callback | Callback<[MmiCodeResults](#mmicoderesults9)> | 否 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2634,7 @@ isNewCallAllowed\(callback: AsyncCallback\): void 判断是否允许再拨打一通新电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1868,6 +2644,17 @@ isNewCallAllowed\(callback: AsyncCallback\): void | -------- | ---------------------------- | ---- | ---------- | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2670,7 @@ isNewCallAllowed\(\): Promise 判断是否允许再拨打一通新电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1893,6 +2680,17 @@ isNewCallAllowed\(\): Promise | ---------------------- | --------------------------- | | Promise<boolean> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2708,7 @@ separateConference\(callId: number, callback: AsyncCallback\): void 分离会议电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1921,6 +2719,17 @@ separateConference\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2745,7 @@ separateConference\(callId: number\): Promise 分离会议电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1952,6 +2761,17 @@ separateConference\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2789,7 @@ getCallRestrictionStatus\(slotId: number, type: CallRestrictionType, callback: A 获取呼叫限制状态。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.GET_TELEPHONY_STATE @@ -1983,6 +2803,18 @@ getCallRestrictionStatus\(slotId: number, type: CallRestrictionType, callback: A | type | [CallRestrictionType](#callrestrictiontype8) | 是 | 呼叫限制类型。 | | callback | AsyncCallback<[RestrictionStatus](#restrictionstatus8)> | 是 | 回调函数。返回限制状态。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2830,7 @@ getCallRestrictionStatus\(slotId: number, type: CallRestrictionType\): Promise 设置呼叫限制状态。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2087,6 +2943,18 @@ setCallRestriction\(slotId: number, info: CallRestrictionInfo\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2977,7 @@ getCallTransferInfo\(slotId: number, type: CallTransferType, callback: AsyncCall 获取呼叫转移信息。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.GET_TELEPHONY_STATE @@ -2123,6 +2991,18 @@ getCallTransferInfo\(slotId: number, type: CallTransferType, callback: AsyncCall | type | [CallTransferType](#calltransfertype8) | 是 | 呼叫转移类型。 | | callback | AsyncCallback<[CallTransferResult](#calltransferresult8)> | 是 | 回调函数。返回呼叫转移信息。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3018,7 @@ getCallTransferInfo\(slotId: number, type: CallTransferType): Promise 设置呼叫转移信息。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2227,6 +3131,18 @@ setCallTransfer\(slotId: number, info: CallTransferInfo): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3165,7 @@ isRinging\(callback: AsyncCallback\): void 判断是否正在响铃。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2261,6 +3177,18 @@ isRinging\(callback: AsyncCallback\): void | -------- | ---------------------------- | ---- | ---------- | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3204,7 @@ isRinging\(\): Promise 判断是否正在响铃。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2288,6 +3216,18 @@ isRinging\(\): Promise | ---------------------- | --------------------------- | | Promise<boolean> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3245,7 @@ setMuted\(callback: AsyncCallback\): void 设置通话中的静音。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2315,6 +3255,17 @@ setMuted\(callback: AsyncCallback\): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3281,7 @@ setMuted\(\): Promise 设置通话中的静音。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2340,6 +3291,17 @@ setMuted\(\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3319,7 @@ cancelMuted(callback: AsyncCallback): void 取消通话中的静音。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2367,6 +3329,17 @@ cancelMuted(callback: AsyncCallback): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3355,7 @@ cancelMuted(): Promise 取消通话中的静音。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2392,6 +3365,17 @@ cancelMuted(): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3393,7 @@ setAudioDevice\(device: AudioDevice, callback: AsyncCallback\): void 设置通话音频设备。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2420,6 +3404,17 @@ setAudioDevice\(device: AudioDevice, callback: AsyncCallback\): void | device | [AudioDevice](#audiodevice8) | 是 | 音频设备。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3430,7 @@ setAudioDevice\(device: AudioDevice, options: AudioDeviceOptions, callback: Asyn 设置通话音频设备。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2447,6 +3442,17 @@ setAudioDevice\(device: AudioDevice, options: AudioDeviceOptions, callback: Asyn | options | [AudioDeviceOptions](#audiodeviceoptions9) | 是 | 音频设备参数。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3471,7 @@ setAudioDevice(device: AudioDevice, options?: AudioDeviceOptions): Promise, callback: Asy 加入会议。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2514,6 +3531,17 @@ joinConference(mainCallId: number, callNumberList: Array, callback: Asy | callNumberList | Array | 是 | 呼叫号码列表。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3559,7 @@ joinConference(mainCallId: number, callNumberList: Array): Promise): Promise 更新Ims呼叫模式。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2611,6 +3661,17 @@ updateImsCallMode(callId: number, mode: ImsCallMode): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3689,7 @@ enableImsSwitch(slotId: number, callback: AsyncCallback): void 启用Ims开关。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2641,6 +3702,18 @@ enableImsSwitch(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3728,7 @@ enableImsSwitch(slotId: number): Promise 启用Ims开关。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2673,6 +3746,18 @@ enableImsSwitch(slotId: number): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3775,7 @@ disableImsSwitch(slotId: number, callback: AsyncCallback): void 禁用Ims开关。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2703,6 +3788,18 @@ disableImsSwitch(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3814,7 @@ disableImsSwitch(slotId: number): Promise 禁用Ims开关。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2735,6 +3832,18 @@ disableImsSwitch(slotId: number): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3861,7 @@ isImsSwitchEnabled(slotId: number, callback: AsyncCallback): void 判断Ims开关是否启用。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2763,6 +3872,17 @@ isImsSwitchEnabled(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3897,7 @@ isImsSwitchEnabled(slotId: number): Promise 判断Ims开关是否启用。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2793,6 +3913,17 @@ isImsSwitchEnabled(slotId: number): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3941,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 +3999,7 @@ promise.then(data => { IP多媒体系统调用模式。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2871,7 +4015,7 @@ IP多媒体系统调用模式。 音频设备。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2887,7 +4031,7 @@ IP多媒体系统调用模式。 呼叫限制类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2906,7 +4050,7 @@ IP多媒体系统调用模式。 呼叫转移信息。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2924,7 +4068,7 @@ IP多媒体系统调用模式。 呼叫转移类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2939,7 +4083,7 @@ IP多媒体系统调用模式。 设置呼叫转移类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2954,7 +4098,7 @@ IP多媒体系统调用模式。 调用属性选项。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2975,7 +4119,7 @@ IP多媒体系统调用模式。 会议状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2990,7 +4134,7 @@ IP多媒体系统调用模式。 通话类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3005,7 +4149,7 @@ IP多媒体系统调用模式。 视频状态类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3018,7 +4162,7 @@ IP多媒体系统调用模式。 详细的呼叫状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3038,7 +4182,7 @@ IP多媒体系统调用模式。 呼叫限制信息。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3052,7 +4196,7 @@ IP多媒体系统调用模式。 呼叫限制模式。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3065,7 +4209,7 @@ IP多媒体系统调用模式。 呼叫事件的可选参数。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3077,7 +4221,7 @@ IP多媒体系统调用模式。 呼叫能力事件Id。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3090,7 +4234,7 @@ IP多媒体系统调用模式。 拨号场景。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3104,7 +4248,7 @@ IP多媒体系统调用模式。 拨号类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3118,7 +4262,7 @@ IP多媒体系统调用模式。 拒绝消息可选参数。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3130,7 +4274,7 @@ IP多媒体系统调用模式。 呼叫转移结果。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3147,7 +4291,7 @@ IP多媒体系统调用模式。 呼叫等待状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3160,7 +4304,7 @@ IP多媒体系统调用模式。 限制状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3173,7 +4317,7 @@ IP多媒体系统调用模式。 转移状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3186,7 +4330,7 @@ IP多媒体系统调用模式。 通话结束原因。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3199,7 +4343,7 @@ IP多媒体系统调用模式。 断开连接的详细信息。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3289,7 +4433,7 @@ IP多媒体系统调用模式。 MMI码结果。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3302,7 +4446,7 @@ MMI码结果。 MMI码结果。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3315,7 +4459,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 a0e1ef64d93c3cef2a5a03b4a4324fd3320fdf39..a212608f96b6d043e869fe1484d8a353cf510674 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -2,7 +2,8 @@ > **说明:** > -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块接口为系统接口。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md index 3564cc50adef98cdf2f872af46c3fe8c320d45ed..b2d36361def6fdb491a82d8a267a0419ef633687 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md @@ -155,6 +155,8 @@ registerContinuation(callback: AsyncCallback\): void; 注册流转管理服务,并获取对应的注册token,无过滤条件,使用AsyncCallback方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -196,6 +198,8 @@ registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\< 连接流转管理服务,并获取对应的注册token,使用AsyncCallback方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -241,6 +245,8 @@ registerContinuation(options?: ContinuationExtraParams): Promise\; 连接流转管理服务,并获取对应的注册token,使用Promise方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -292,7 +298,7 @@ on(type: "deviceConnect", callback: Callback\): void; 异步方法,监听设备连接状态,使用Callback形式返回连接的设备信息。 -> 从API version 9开始不再维护,建议使用[on](#continuationmanagerondeviceconnect9)替代。 +> 从API version 9开始不再维护,建议使用[on](#continuationmanagerondeviceselected9)替代。 **系统能力**:SystemCapability.Ability.DistributedAbilityManager @@ -331,7 +337,7 @@ on(type: "deviceDisconnect", callback: Callback\): void; 异步方法,监听设备断开状态,使用Callback形式返回断开的设备信息。 -> 从API version 9开始不再维护,建议使用[on](#continuationmanagerondevicedisconnect9)替代。 +> 从API version 9开始不再维护,建议使用[on](#continuationmanagerondeviceunselected9)替代。 **系统能力**:SystemCapability.Ability.DistributedAbilityManager @@ -368,7 +374,7 @@ off(type: "deviceConnect", callback?: Callback\): void; 异步方法,取消监听设备连接状态,使用Callback形式返回连接的设备信息。 -> 从API version 9开始不再维护,建议使用[off](#continuationmanageroffdeviceconnect9)替代。 +> 从API version 9开始不再维护,建议使用[off](#continuationmanageroffdeviceselected9)替代。 **系统能力**:SystemCapability.Ability.DistributedAbilityManager @@ -407,7 +413,7 @@ off(type: "deviceDisconnect", callback?: Callback\): void; 异步方法,取消监听设备断开状态,使用Callback形式返回连接的设备信息。 -> 从API version 9开始不再维护,建议使用[off](#continuationmanageroffdevicedisconnect9)替代。 +> 从API version 9开始不再维护,建议使用[off](#continuationmanageroffdeviceunselected9)替代。 **系统能力**:SystemCapability.Ability.DistributedAbilityManager @@ -438,19 +444,21 @@ off(type: "deviceDisconnect", callback?: Callback\): void; }); ``` -## continuationManager.on("deviceConnect")9+ +## continuationManager.on("deviceSelected")9+ -on(type: "deviceConnect", token: number, callback: Callback\>): void; +on(type: "deviceSelected", token: number, callback: Callback\>): void; 异步方法,监听设备连接状态,使用Callback形式返回连接的设备信息。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | type | string | 是 | 监听的事件类型,固定值"deviceConnect"。 | + | type | string | 是 | 监听的事件类型,固定值"deviceSelected"。 | | token | number | 是 | 注册后的token。 | | callback | Callback\> | 是 | 当用户从设备选择模块中选择设备时调用,返回设备ID、设备类型和设备名称供开发者使用。 | @@ -469,12 +477,12 @@ on(type: "deviceConnect", token: number, callback: Callback\ { - console.info('onDeviceConnect len: ' + data.length); + continuationManager.on("deviceSelected", token, (data) => { + console.info('onDeviceSelected len: ' + data.length); for (let i = 0; i < data.length; i++) { - console.info('onDeviceConnect deviceId: ' + JSON.stringify(data[i].id)); - console.info('onDeviceConnect deviceType: ' + JSON.stringify(data[i].type)); - console.info('onDeviceConnect deviceName: ' + JSON.stringify(data[i].name)); + console.info('onDeviceSelected deviceId: ' + JSON.stringify(data[i].id)); + console.info('onDeviceSelected deviceType: ' + JSON.stringify(data[i].type)); + console.info('onDeviceSelected deviceName: ' + JSON.stringify(data[i].name)); } }); } catch (err) { @@ -482,21 +490,23 @@ on(type: "deviceConnect", token: number, callback: Callback\9+
+## continuationManager.on("deviceUnselected")9+ -on(type: "deviceDisconnect", token: number, callback: Callback\>): void; +on(type: "deviceUnselected", token: number, callback: Callback\>): void; 异步方法,监听设备断开状态,使用Callback形式返回断开的设备信息。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | type | string | 是 | 监听的事件类型,固定值"deviceDisconnect"。 | + | type | string | 是 | 监听的事件类型,固定值"deviceUnselected"。 | | token | number | 是 | 注册后的token。 | - | callback | Callback\> | 是 | 当用户从设备选择模块中断开设备时调用,返回设备ID供开发者使用。 | + | callback | Callback\> | 是 | 当用户从设备选择模块中断开设备时调用,返回设备ID、设备类型和设备名称供开发者使用。 | **错误码:** @@ -513,31 +523,35 @@ on(type: "deviceDisconnect", token: number, callback: Callback\>) ```ts let token = 1; try { - continuationManager.on("deviceDisconnect", token, (data) => { - console.info('onDeviceDisconnect len: ' + data.length); + continuationManager.on("deviceUnselected", token, (data) => { + console.info('onDeviceUnselected len: ' + data.length); for (let i = 0; i < data.length; i++) { - console.info('onDeviceDisconnect deviceId: ' + JSON.stringify(data[i])); + console.info('onDeviceUnselected deviceId: ' + JSON.stringify(data[i].id)); + console.info('onDeviceUnselected deviceType: ' + JSON.stringify(data[i].type)); + console.info('onDeviceUnselected deviceName: ' + JSON.stringify(data[i].name)); } - console.info('onDeviceDisconnect finished.'); + console.info('onDeviceUnselected finished.'); }); } catch (err) { console.error('on failed, cause: ' + JSON.stringify(err)); } ``` -## continuationManager.off("deviceConnect")9+ +## continuationManager.off("deviceSelected")9+ -off(type: "deviceConnect", token: number): void; +off(type: "deviceSelected", token: number): void; 取消监听设备连接状态。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | type | string | 是 | 取消监听的事件类型,固定值"deviceConnect"。 | + | type | string | 是 | 取消监听的事件类型,固定值"deviceSelected"。 | | token | number | 是 | 注册后的token。 | **错误码:** @@ -555,25 +569,27 @@ off(type: "deviceConnect", token: number): void; ```ts let token = 1; try { - continuationManager.off("deviceConnect", token); + continuationManager.off("deviceSelected", token); } catch (err) { console.error('off failed, cause: ' + JSON.stringify(err)); } ``` -## continuationManager.off("deviceDisconnect")9+ +## continuationManager.off("deviceUnselected")9+ -off(type: "deviceDisconnect", token: number): void; +off(type: "deviceUnselected", token: number): void; 取消监听设备断开状态。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | type | string | 是 | 取消监听的事件类型,固定值"deviceDisconnect"。 | + | type | string | 是 | 取消监听的事件类型,固定值"deviceUnselected"。 | | token | number | 是 | 注册后的token。 | **错误码:** @@ -591,7 +607,7 @@ off(type: "deviceDisconnect", token: number): void; ```ts let token = 1; try { - continuationManager.off("deviceDisconnect", token); + continuationManager.off("deviceUnselected", token); } catch (err) { console.error('off failed, cause: ' + JSON.stringify(err)); } @@ -745,6 +761,8 @@ startContinuationDeviceManager(token: number, callback: AsyncCallback\): v 拉起设备选择模块,可显示组网内可选择设备列表信息,无过滤条件,使用AsyncCallback方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -786,6 +804,8 @@ startContinuationDeviceManager(token: number, options: ContinuationExtraParams, 拉起设备选择模块,可显示组网内可选择设备列表信息,使用AsyncCallback方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -831,6 +851,8 @@ startContinuationDeviceManager(token: number, options?: ContinuationExtraParams) 拉起设备选择模块,可显示组网内可选择设备列表信息,使用Promise方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -978,6 +1000,8 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt 通知设备选择模块,更新当前的连接状态,使用AsyncCallback方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -1022,6 +1046,8 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt 通知设备选择模块,更新当前的连接状态,使用Promise方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -1157,6 +1183,8 @@ unregisterContinuation(token: number, callback: AsyncCallback\): void; 解注册流转管理服务,传入注册时获取的token进行解注册,使用AsyncCallback方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** @@ -1198,6 +1226,8 @@ unregisterContinuation(token: number): Promise\; 解注册流转管理服务,传入注册时获取的token进行解注册,使用Promise方式作为异步方法。 +**需要权限**:ohos.permission.DISTRIBUTED_DATASYNC + **系统能力**:SystemCapability.Ability.DistributedAbilityManager **参数:** 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..ba5f0890e965eae69492c42dfc7014a059c85161 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-cryptoFramework.md +++ b/zh-cn/application-dev/reference/apis/js-apis-cryptoFramework.md @@ -1,2651 +1,2683 @@ -# @ohos.security.cryptoFramework (加解密算法库框架) - -为屏蔽底层硬件和算法库,向上提供统一的密码算法库加解密相关接口。 - -> **说明:** -> -> 本模块首批接口从API version 9开始支持。 - -## 导入模块 - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" -``` - -## Result - - 表示执行结果的枚举。 - - **系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 值 | 说明 | -| ------------------------------------- | -------- | ---------------------------- | -| INVALID_PARAMS | 401 | 非法入参。 | -| NOT_SUPPORT | 801 | 操作不支持。 | -| ERR_OUT_OF_MEMORY | 17620001 | 内存错误。 | -| ERR_RUNTIME_ERROR | 17620002 | 运行时外部错误。 | -| ERR_CRYPTO_OPERATION | 17630001 | 调用三方算法库API出错。 | - -## DataBlob - -buffer数组。 - - **系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ---- | ---------- | ---- | ---- | ------ | -| data | Uint8Array | 是 | 是 | 数据。 | - - -## cryptoFramework.createMac - -createMac(algName : string) : Mac - -生成Mac实例,用于进行消息认证码的计算与操作 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | 是 | 指定摘要算法,支持算法范围:SHA1/SHA224/SHA256/SHA384/SHA512 | - -**返回值**: - -| 类型 | 说明 | -| ---- | --------------------------------------- | -| Mac | 返回由输入算法指定生成的[Mac](#mac)对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ------------------ | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var mac; -try { - // 参数选择请参考上述算法支持范围 - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); -} -``` - -## Mac - -Mac类,调用Mac方法可以进行MAC(Message Authentication Code)加密计算。调用前,需要通过[createMac](#cryptoframeworkcreatemac)构造Mac实例。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | -------------------- | -| algName | string | 是 | 否 | 代表指定的摘要算法名 | - -### init - -init(key : SymKey, callback : AsyncCallback\) : void; - -使用对称密钥初始化Mac计算 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ------------ | -| key | [SymKey](#symkey) | 是 | 共享对称密钥 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var mac; -try { - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); -} -var KeyBlob; -var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); -symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { - if (err) { - console.error("[Callback] err: " + err.code); - } - mac.init(symKey, (err1, ) => { - if (err1) { - console.error("[Callback] err: " + err1.code); - } - }); -}); -``` - -### init - -init(key : SymKey) : Promise\; - -使用对称密钥初始化Mac计算 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------------ | -| key | [SymKey](#symkey) | 是 | 共享对称密钥 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var mac; -try { - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Mac algName is: " + mac.algName); - -var KeyBlob; -var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); -var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); -promiseConvertKey.then(symKey => { - var promiseMacInit = mac.init(symKey); - return promiseMacInit; -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); - -``` - -### update - -update(input : DataBlob, callback : AsyncCallback\) : void; - -传入消息进行Mac更新计算 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------- | -| input | [DataBlob](#datablob)| 是 | 传入的消息 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var KeyBlob; -var mac; -try { - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); -symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { - if (err) { - console.error("[Callback] err: " + err.code); - } - mac.init(symKey, (err1, ) => { - if (err1) { - console.error("[Callback] err: " + err1.code); - } - let blob; - mac.update(blob, (err2, data) => { - if (err2) { - console.error("[Callback] err: " + err2.code); - } - }); - }); -}); -``` - -### update - -update(input : DataBlob) : Promise\; - -传入消息进行Mac更新计算 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | -------- | ---- | ---------- | -| input | [DataBlob](#datablob) | 是 | 传入的消息 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var mac; -try { - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Mac algName is: " + mac.algName); - -var KeyBlob; -var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); -var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); -promiseConvertKey.then(symKey => { - var promiseMacInit = mac.init(symKey); - return promiseMacInit; -}).then(() => { - let blob; - var promiseMacUpdate = mac.update(blob); - return promiseMacUpdate; -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); - -``` - -### doFinal - -doFinal(callback : AsyncCallback\) : void; - -返回Mac的计算结果 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------ | ---- | -------- | -| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var KeyBlob; -var mac; -try { - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); -symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { - if (err) { - console.error("[Callback] err: " + err.code); - } - mac.init(symKey, (err1, ) => { - if (err1) { - console.error("[Callback] err: " + err1.code); - } - let blob; - mac.update(blob, (err2, ) => { - if (err2) { - console.error("[Callback] err: " + err2.code); - } - mac.doFinal((err3, macOutput) => { - if (err3) { - console.error("[Callback] err: " + err3.code); - } else { - console.error("[Promise]: HMAC result: " + macOutput); - } - }); - }); - }); -}); -``` - -### doFinal - -doFinal() : Promise\ - -返回Mac的计算结果 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| ------------------ | ----------- | -| Promise\<[DataBlob](#datablob)> | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var mac; -try { - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Mac algName is: " + mac.algName); - -var KeyBlob; -var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); -var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); -promiseConvertKey.then(symKey => { - var promiseMacInit = mac.init(symKey); - return promiseMacInit; -}).then(() => { - let blob; - var promiseMacUpdate = mac.update(blob); - return promiseMacUpdate; -}).then(() => { - var PromiseMacDoFinal = mac.doFinal(); - return PromiseMacDoFinal; -}).then(macOutput => { - console.error("[Promise]: HMAC result: " + macOutput.data); -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); -``` - -### getMacLength - -getMacLength() : number - -获取Mac消息认证码的长度(字节数) - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| ------ | ------------------------- | -| number | 返回mac计算结果的字节长度 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var mac; -try { - mac = cryptoFramework.createMac("SHA256"); -} catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Mac algName is: " + mac.algName); - -var KeyBlob; -var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); -var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); -promiseConvertKey.then(symKey => { - var promiseMacInit = mac.init(symKey); - return promiseMacInit; -}).then(() => { - let blob; - var promiseMacUpdate = mac.update(blob); - return promiseMacUpdate; -}).then(() => { - var PromiseMacDoFinal = mac.doFinal(); - return PromiseMacDoFinal; -}).then(macOutput => { - console.error("[Promise]: HMAC result: " + macOutput.data); - let macLen = mac.getMacLength(); - console.error("MAC len: " + macLen); -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); -``` - -## cryptoFramework.createMd - -createMd(algName : string) : Md - -生成Md实例,用于进行消息摘要的计算与操作 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | 是 | 指定摘要算法,支持算法范围:SHA1/SHA224/SHA256/SHA384/SHA512/MD5 | - -**返回值**: - -| 类型 | 说明 | -| ---- | ------------------------------------- | -| Md | 返回由输入算法指定生成的[Md](#md)对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ------------------ | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var md; -try { - // 参数选择请参考上述算法支持范围 - md = cryptoFramework.createMd("SHA256"); -} catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); -} -``` - -## Md - -Md类,调用Md方法可以进行MD(Message Digest)摘要计算。调用前,需要通过[createMd](#cryptoframeworkcreatemd)构造Md实例。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | -------------------- | -| algName | string | 是 | 否 | 代表指定的摘要算法名 | - -### update - -update(input : DataBlob, callback : AsyncCallback\) : void; - -传入消息进行Md更新计算 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------- | -| input | [DataBlob](#datablob)| 是 | 传入的消息 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var md; -try { - md = cryptoFramework.createMd("SHA256"); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Md algName is: " + md.algName); - -let blob; -md.update(blob, (err,) => { - if (err) { - console.error("[Callback] err: " + err.code); - } -}); -``` - -### update - -update(input : DataBlob) : Promise\; - -传入消息进行Md更新计算 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | -------- | ---- | ---------- | -| input | DataBlob | 是 | 传入的消息 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var md; -try { - md = cryptoFramework.createMd("SHA256"); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Md algName is: " + md.algName); - -let blob; -var promiseMdUpdate = md.update(blob); -promiseMdUpdate.then(() => { - // do something -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); -``` - -### digest - -digest(callback : AsyncCallback\) : void - -返回Md的计算结果 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------ | ---- | -------- | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var md; -try { - md = cryptoFramework.createMd("SHA256"); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Md algName is: " + md.algName); - -let blob; -md.update(blob, (err,) => { - if (err) { - console.error("[Callback] err: " + err.code); - } - md.digest((err1, mdOutput) => { - if (err1) { - console.error("[Callback] err: " + err1.code); - } else { - console.error("[Callback]: MD result: " + mdOutput); - } - }); -}); -``` - -### digest - -digest() : Promise\ - -返回Md的计算结果 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| ------------------ | ----------- | -| Promise\<[DataBlob](#datablob)> | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var md; -try { - md = cryptoFramework.createMd("SHA256"); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Md algName is: " + md.algName); - -let blob; -var promiseMdUpdate = md.update(blob); -promiseMdUpdate.then(() => { - var PromiseMdDigest = md.digest(); - return PromiseMdDigest; -}).then(mdOutput => { - console.error("[Promise]: MD result: " + mdOutput.data); -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); -``` - -### getMdLength - -getMdLength() : number - -获取Md消息摘要长度(字节数) - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| ------ | ------------------------ | -| number | 返回md计算结果的字节长度 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var md; -try { - md = cryptoFramework.createMd("SHA256"); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -console.error("Md algName is: " + md.algName); - -let blob; -var promiseMdUpdate = md.update(blob); -promiseMdUpdate.then(() => { - var PromiseMdDigest = md.digest(); - return PromiseMdDigest; -}).then(mdOutput => { - console.error("[Promise]: MD result: " + mdOutput.data); - let mdLen = md.getMdLength(); - console.error("MD len: " + mdLen); -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); -``` - -## cryptoFramework.createRandom - -createRandom() : Random - -生成Random实例,用于进行随机数的计算与设置种子 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值**: - -| 类型 | 说明 | -| ------ | --------------------------------------------- | -| Random | 返回由输入算法指定生成的[Random](#random)对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ------------ | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -try { - var rand = cryptoFramework.createRandom(); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -``` - -## Random - -Random类,调用Random方法可以进行随机数计算。调用前,需要通过[createRandom](#cryptoframeworkcreaterandom)构造Random实例。 - -### generateRandom - -generateRandom(len : number, callback: AsyncCallback\) : void; - -生成指定长度的随机数 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------ | ---- | -------------------- | -| len | number | 是 | 表示生成随机数的长度 | -| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var rand; -try { - rand = cryptoFramework.createRandom(); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} -rand.generateRandom(12, (err, randData) => { - if (err) { - console.error("[Callback] err: " + err.code); - } else { - console.error("[Callback]: generate random result: " + randData.data); - } -}); -``` - -### generateRandom - -generateRandom(len : number) : Promise\; - -生成指定长度的随机数 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | -------------------- | -| len | number | 是 | 表示生成随机数的长度 | - -**返回值:** - -| 类型 | 说明 | -| ------------------ | ----------- | -| Promise\<[DataBlob](#datablob)> | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17630001 | crypto operation error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var rand; -try { - rand = cryptoFramework.createRandom(); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} - -var promiseGenerateRand = rand.generateRandom(12); -promiseGenerateRand.then(randData => { - console.error("[Promise]: rand result: " + randData.data); -}).catch(error => { - console.error("[Promise]: error: " + error.message); -}); -``` - -### setSeed - -setSeed(seed : DataBlob) : void; - -设置指定的种子 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | --------------------- | ---- | ---------- | -| seed | DataBlob | 是 | 设置的种子 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ----------------- | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -var rand; -try { - rand = cryptoFramework.createRandom(); -} catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); -} - -rand.generateRandom(12, (err, randData) => { - if (err) { - console.error("[Callback] err: " + err.code); - } else { - console.error("[Callback]: generate random result: " + randData.data); - try { - rand.setSeed(randData); - } catch (error) { - console.log("setSeed failed, errCode: " + error.code + ", errMsg: " + error.message); - } - } -}); -``` - -## ParamsSpec - -加解密参数,在进行对称加解密时需要构造其子类对象,并将子类对象传入[init()](#init-2)方法。
适用于需要iv等参数的对称加解密模式(对于无iv等参数的模式如ECB模式,无需构造,在[init()](#init-2)中传入null即可)。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| -------- | ------ | ---- | ---- | ----------------------- | -| algoName | string | 是 | 是 | 指明对称加解密参数的算法模式。可选值如下:
- "IvParamsSpec": 适用于CBC\|CTR\|OFB\|CFB模式
- "GcmParamsSpec": 适用于GCM模式
- "CcmParamsSpec": 适用于CCM模式 | - -> **说明:** -> 由于[init()](#init-2)的params参数是ParamsSpec类型(父类),而实际需要传入具体的子类对象(如IvParamsSpec),因此在构造子类对象时应设置其父类ParamsSpec的algoName参数,使算法库在init()时知道传入的是哪种子类对象。 - -## IvParamsSpec - -加解密参数[ParamsSpec](#paramsspec)的子类,用于在对称加解密时作为[init()](#init-2)方法的参数。
适用于CBC、CTR、OFB、CFB这些仅使用iv作为参数的加解密模式。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ---- | --------------------- | ---- | ---- | ------------------------------------------------------------ | -| iv | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数iv。常见取值如下:
- AES的CBC\|CTR\|OFB\|CFB模式:iv长度为16字节
- 3DES的CBC\|OFB\|CFB模式:iv长度为8字节 | - -> **说明:** -> 传入[init()](#init-2)方法前需要指定其algoName属性(来源于父类[ParamsSpec](#paramsspec))。 - -## GcmParamsSpec - -加解密参数[ParamsSpec](#paramsspec)的子类,用于在对称加解密时作为[init()](#init-2)方法的参数。
适用于GCM模式。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | --------------------- | ---- | ---- | ------------------------------------------------------------ | -| iv | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数iv,长度为12字节 | -| 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))。 - -## CcmParamsSpec - -加解密参数[ParamsSpec](#paramsspec)的子类,用于在对称加解密时作为[init()](#init-2)方法的参数。
适用于CCM模式。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | --------------------- | ---- | ---- | ------------------------------------------------------------ | -| iv | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数iv,长度为7字节 | -| 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))。 - -## CryptoMode - -表示加解密操作的枚举。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 值 | 说明 | -| ------------ | ---- | ---------------- | -| ENCRYPT_MODE | 0 | 表示进行加密操作 | -| DECRYPT_MODE | 1 | 表示进行解密操作 | - -## Key - -密钥(父类),在运行密码算法(如加解密)时需要提前生成其子类对象,并传入[Cipher](#cipher)实例的[init()](#init-2)方法。
密钥可以通过密钥生成器来生成。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ---------------------------- | -| format | string | 是 | 否 | 密钥的格式。 | -| algName | string | 是 | 否 | 密钥对应的算法名(含长度)。 | - -### getEncoded - -getEncoded() : DataBlob - -以同步方法,获取16进制形式的密钥内容。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| --------------------- | ------------------------ | -| [DataBlob](#datablob) | 用于查看密钥的具体内容。 | - -**示例:** - -```js -import cryptoFramework from "@ohos.security.cryptoFramework" -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -let key; // key为使用对称密钥生成器 生成的密钥,此处省略生成过程 -let encodedKey = key.getEncoded(); -console.info("key hex:" + uint8ArrayToShowStr(encodedKey.data)); -``` - -## SymKey - -对称密钥,是[Key](#key)的子类,在对称加解密时需要将其对象传入[Cipher](#cipher)实例的[init()](#init-2)方法使用。
对称密钥可以通过对称密钥生成器[SymKeyGenerator](#symkeygenerator)来生成。 - -### clearMem - -clearMem() : void - -以同步方法,将系统底层内存中的的密钥内容清零。建议在不再使用对称密钥实例时,调用本函数,避免内存中密钥数据存留过久。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**示例:** - -```js -import cryptoFramework from "@ohos.security.cryptoFramework" -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -let key; // key为使用对称密钥生成器 生成的密钥,此处省略生成过程 -let encodedKey = key.getEncoded(); -console.info("key hex:" + uint8ArrayToShowStr(encodedKey.data)); // 输出密钥内容 -key.clearMem(); -encodedKey = key.getEncoded(); -console.info("key hex:" + uint8ArrayToShowStr(encodedKey.data)); // 输出全零 -``` - -## PubKey - -公钥,是Key的子类,在非对称加解密、验签、密钥协商时需要将其对象作为输入使用。
公钥可以通过非对称密钥生成器AsyKeyGenerator来生成。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ---------------------------- | -| format | string | 是 | 否 | 密钥的格式。 | -| algName | string | 是 | 否 | 密钥对应的算法名(含长度)。 | - - -### getEncoded - -getEncoded() : DataBlob - -以同步方法,获取二进制形式的密钥内容。公钥格式满足ASN.1语法、X.509规范、DER编码格式。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| --------------------- | ------------------------ | -| [DataBlob](#datablob) | 用于查看密钥的具体内容。 | - -**示例:** - -```js -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -let key; // key为使用非对称密钥生成器生成的非对称密钥的公钥对象,此处省略生成过程 -console.info("key format:" + key.format); -console.info("key algName:" + key.algName); -var encodedKey = key.getEncoded(); -console.info("key encoded:" + uint8ArrayToShowStr(encodedKey.data)); -``` - -## PriKey - -私钥,是Key的子类,在非对称加解密、签名、密钥协商时需要将其作为输入使用。
私钥可以通过非对称密钥生成器AsyKeyGenerator来生成。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ---------------------------- | -| format | string | 是 | 否 | 密钥的格式。 | -| algName | string | 是 | 否 | 密钥对应的算法名(含长度)。 | - -### getEncoded - -getEncoded() : DataBlob - -以同步方法,获取二进制形式的密钥内容。私钥格式满足ASN.1语法,PKCS#8规范、DER编码方式。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| --------------------- | ------------------------ | -| [DataBlob](#datablob) | 用于查看密钥的具体内容。 | - -**示例:** - -```js -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -let key; // key为使用非对称密钥生成器生成的非对称密钥的私钥对象,此处省略生成过程 -console.info("key format:" + key.format); -console.info("key algName:" + key.algName); -var encodedKey = key.getEncoded(); -console.info("key encoded:" + uint8ArrayToShowStr(encodedKey.data)); -``` - -### clearMem - -clearMem() : void - -以同步方法,将系统底层内存中的的密钥内容清零。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**示例:** - -```js -let key; // key为使用非对称密钥生成器生成的非对称密钥的私钥对象,此处省略生成过程 -key.clearMem(); -``` - -## KeyPair - -非对称密钥对,包含:公钥与私钥,。
可以通过非对称密钥生成器AsyKeyGenerator来生成。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ------------ | -| priKey | [PriKey](#prikey) | 是 | 否 | 私钥。 | -| pubKey | [PubKey](#pubkey) | 是 | 否 | 公钥。 | - - -## cryptoFramework.createSymKeyGenerator - -createSymKeyGenerator(algName : string) : SymKeyGenerator - -通过指定算法名称的字符串,获取相应的对称密钥生成器实例。
支持的规格详见框架概述“[密钥生成规格](../../security/cryptoFramework-overview.md#密钥生成规格)”一节。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | 是 | 待生成对称密钥生成器的算法名称。
具体取值详见框架概述“[密钥生成规格](../../security/cryptoFramework-overview.md#密钥生成规格)”一节中的“字符串参数”。 | - -**返回值:** - -| 类型 | 说明 | -| ----------------------------------- | -------------------------- | -| [SymKeyGenerator](#symkeygenerator) | 返回对称密钥生成器的对象。 | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator('3DES192'); -``` - -## SymKeyGenerator - -对称密钥生成器。
在使用该类的方法前,需要先使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)方法构建一个symKeyGenerator实例。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ------------------------------ | -| algName | string | 是 | 否 | 对称密钥生成器指定的算法名称。 | - -### generateSymKey - -generateSymKey(callback : AsyncCallback\) : void - -异步获取对称密钥生成器随机生成的密钥,通过注册回调函数获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。
目前支持使用OpenSSL的RAND_priv_bytes()作为底层能力生成随机密钥。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | --------------------------------- | ---- | ------------------------------------------------------------ | -| callback | AsyncCallback\<[SymKey](#symkey)> | 是 | 回调函数。当生成对称密钥成功,err为undefined,data为获取到的SymKey;否则为错误对象。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ------------- | -| 17620001 | memory error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; -let symAlgoName = '3DES192'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); -symKeyGenerator.generateSymKey((err, symKey) => { - if (err) { - console.error(`Generate symKey failed, ${err.code}, ${err.message}`); - } else { - console.info(`Generate symKey success, algName: ${symKey.algName}`); - } -}) -``` - -### generateSymKey - -generateSymKey() : Promise\ - -异步获取该对称密钥生成器随机生成的密钥,通过Promise获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。
目前支持使用OpenSSL的RAND_priv_bytes()作为底层能力生成随机密钥。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| --------------------------- | --------------------------------- | -| Promise\<[SymKey](#symkey)> | Promise对象,返回对称密钥SymKey。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ------------- | -| 17620001 | memory error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; -let symAlgoName = 'AES128'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); -symKeyGenerator.generateSymKey() -.then(symKey => { - console.info(`Generate symKey success, algName: ${symKey.algName}`); -}, error => { - console.error(`Generate symKey failed, ${error.code}, ${error.message}`); -}) -``` - -### convertKey - -convertKey(key : DataBlob, callback : AsyncCallback\) : void - -异步根据指定数据生成对称密钥,通过注册回调函数获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | --------------------------------- | ---- | ------------------------------------------------------------ | -| key | [DataBlob](#datablob) | 是 | 指定的对称密钥材料。 | -| callback | AsyncCallback\<[SymKey](#symkey)> | 是 | 回调函数。当生成对称密钥成功,err为undefined,data为获取到的SymKey;否则为错误对象。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | --------------------------------------------------- | -| 17620001 | memory error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -function genKeyMaterialBlob() { - let arr = [ - 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, - 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, - 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) - let keyMaterial = new Uint8Array(arr); - return {data : keyMaterial}; -} - -let symAlgoName = '3DES192'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); -let keyMaterialBlob = genKeyMaterialBlob(); -symKeyGenerator.convertKey(keyMaterialBlob, (err, symKey) => { - if (err) { - console.error(`Convert symKey failed, ${err.code}, ${err.message}`); - } else { - console.info(`Convert symKey success, algName: ${symKey.algName}`); - } -}) -``` - -### convertKey - -convertKey(key : DataBlob) : Promise\ - -异步根据指定数据生成对称密钥,通过Promise获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ---- | --------------------- | ---- | -------------------- | -| key | [DataBlob](#datablob) | 是 | 指定的密钥材料数据。 | - -**返回值:** - -| 类型 | 说明 | -| --------------------------- | --------------------------------- | -| Promise\<[SymKey](#symkey)> | Promise对象,返回对称密钥SymKey。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | --------------------------------------------- | -| 17620001 | memory error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -function genKeyMaterialBlob() { - let arr = [ - 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, - 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, - 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) - let keyMaterial = new Uint8Array(arr); - return {data : keyMaterial}; -} - -let symAlgoName = '3DES192'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); -let keyMaterialBlob = genKeyMaterialBlob(); -symKeyGenerator.convertKey(keyMaterialBlob) -.then(symKey => { - console.info(`Convert symKey success, algName: ${symKey.algName}`); -}, error => { - console.error(`Convert symKey failed, ${error.code}, ${error.message}`); -}) -``` - -## cryptoFramework.createAsyKeyGenerator - -createAsyKeyGenerator(algName : string) : AsyKeyGenerator - -通过指定算法名称的字符串,获取相应的非对称密钥生成器实例。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | -------------------------------- | -| algName | string | 是 | 待生成对称密钥生成器的算法名称。 | - -**返回值:** - -| 类型 | 说明 | -| --------------- | ---------------------------- | -| [AsyKeyGenerator](#asykeygenerator) | 返回非对称密钥生成器的对象。 | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); -``` - -## AsyKeyGenerator - -非对称密钥生成器。在使用该类的方法前,需要先使用createAsyKeyGenerator()方法构建一个AsyKeyGenerator实例。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | -------------------------------- | -| algName | string | 是 | 否 | 非对称密钥生成器指定的算法名称。 | - -### generateKeyPair - -generateKeyPair(callback : AsyncCallback\) : void; - -异步获取非对称密钥生成器随机生成的密钥,通过注册回调函数获取结果。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ----------------------- | ---- | ------------------------------ | -| callback | AsyncCallback\<[KeyPair](#keypair)> | 是 | 回调函数,用于获取非对称密钥。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); -asyKeyGenerator.generateKeyPair((err, keyPair) => { - if (err) { - console.error("generateKeyPair: error."); - return; - } - console.info("generateKeyPair: success."); -}) -``` - - -### generateKeyPair - -generateKeyPair() : Promise\ - -异步获取该非对称密钥生成器随机生成的密钥,通过Promise获取结果。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**返回值:** - -| 类型 | 说明 | -| ----------------- | --------------------------------- | -| Promise\<[KeyPair](#keypair)> | 使用Promise的方式获取非对称密钥。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); -let keyGenPromise = asyKeyGenerator.generateKeyPair(); -keyGenPromise.then( keyPair => { - console.info("generateKeyPair success."); -}).catch(error => { - console.error("generateKeyPair error."); -}); -``` - -### convertKey - -convertKey(pubKey : DataBlob, priKey : DataBlob, callback : AsyncCallback\) : void - -异步获取指定数据生成非对称密钥,通过注册回调函数获取结果。详情请看下方**密钥转换说明** - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ----------- | ---- | ------------------------------ | -| pubKey | [DataBlob](#datablob) | 是 | 指定的公钥材料。如果公钥不需要转换,可直接传入null。 | -| priKey | [DataBlob](#datablob) | 是 | 指定的私钥材料。如果私钥不需要转换,可直接传入null。 | -| callback | AsyncCallback\<[KeyPair](#keypair)> | 是 | 回调函数,用于获取非对称密钥。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" -let pubKey; // X.509规范、DER格式的公钥数据,此处省略数据。 -let priKey; // PKCS#8规范、DER格式的私钥数据,此处省略数据。 -let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); -asyKeyGenerator.convertKey(pubKey, priKey, (err, keyPair) => { - if (err) { - console.error("convertKey: error."); - return; - } - console.info("convertKey: success."); -}) -``` - -### convertKey - -convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise\ - -异步获取指定数据生成非对称密钥,通过Promise获取结果。详情请看下方**密钥转换说明** - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | -------- | ---- | ---------------- | -| pubKey | DataBlob | 是 | 指定的公钥材料。如果公钥不需要转换,可直接传入null | -| priKey | DataBlob | 是 | 指定的私钥材料。如果私钥不需要转换,可直接传入null | - -**返回值:** - -| 类型 | 说明 | -| ----------------- | --------------------------------- | -| Promise\<[KeyPair](#keypair)> | 使用Promise的方式获取非对称密钥。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); -let pubKey; // pubKey为使用非对称密钥生成器生成的非对称密钥的公钥对象,此处省略生成过程 -let priKey; // priKey为使用非对称密钥生成器生成的非对称密钥的私钥对象,此处省略生成过程 -let keyGenPromise = asyKeyGenerator.convertKey(pubKey, priKey); -keyGenPromise.then( keyPair => { - console.info("convertKey success."); -}).catch(error => { - console.error("convertKey error."); -}); -``` - -**密钥转换说明** - -1. 非对称密钥(RSA、ECC)的公钥和私钥调用getEncoded()方法后,分别返回X.509格式和PKCS#8格式的二进制数据,此数据可用于跨应用传输或持久化存储。 -2. 当调用convertKey方法将外来二进制数据转换为算法库非对称密钥对象时,公钥应满足ASN.1语法、X.509规范、DER编码格式,私钥应满足ASN.1语法、PKCS#8规范、DER编码格式。 -3. convertKey方法中,公钥和密钥二进制数据非必选项,可单独传入公钥或私钥的数据,生成对应只包含公钥或私钥的KeyPair对象。 - -## cryptoFramework.createCipher - -createCipher(transformation : string) : Cipher - -通过指定算法名称,获取相应的[Cipher](#cipher)实例。
支持的规格详见框架概述“[加解密规格](../../security/cryptoFramework-overview.md#加解密规格)”一节。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------------- | ------ | ---- | ------------------------------------------------------------ | -| 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对象进行加解密操作)。 - -**返回值:** - -| 类型 | 说明 | -| ----------------- | ------------------------ | -| [Cipher](#cipher) | 返回加解密生成器的对象。 | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let cipherAlgoName = '3DES192|ECB|PKCS7'; -var cipher; -try { - cipher = cryptoFramework.createCipher(cipherAlgoName); - console.info(`cipher algName: ${cipher.algName}`); -} catch (error) { - console.error(`createCipher failed, ${error.code}, ${error.message}`); -} -``` - -## Cipher - -提供加解密的算法操作功能,按序调用本类中的[init()](#init-2)、[update()](#update-4)、[doFinal()](#dofinal-2)方法,可以实现对称加密/对称解密/非对称加密/非对称解密。
完整的加解密流程示例可参考开发指导中的“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”一节。 - -一次完整的加/解密流程在对称加密和非对称加密中略有不同: - -- 对称加解密:init为必选,update为可选(且允许多次update加/解密大数据),doFinal为必选;doFinal结束后可以重新init开始新一轮加/解密流程。 -- RSA非对称加解密:init为必选,不支持update操作,doFinal为必选(允许连续多次doFinal加/解密大数据);RSA不支持重复init,切换加解密模式或填充方式时,需要重新创建Cipher对象。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ---------------------------- | -| algName | string | 是 | 否 | 加解密生成器指定的算法名称。 | - -### init - -init(opMode : CryptoMode, key : Key, params : ParamsSpec, callback : AsyncCallback\) : void - -初始化加解密的[cipher](#cipher)对象,通过注册回调函数获取结果。
必须在使用[createCipher](#cryptoframeworkcreatecipher)创建[Cipher](#cipher)实例后,才能使用本函数。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------- | ---- | ------------------------------------------------------------ | -| opMode | [CryptoMode](#cryptomode) | 是 | 加密或者解密模式。 | -| key | [Key](#key) | 是 | 指定加密或解密的密钥。 | -| params | [ParamsSpec](#paramsspec) | 是 | 指定加密或解密的参数,对于ECB等没有参数的算法模式,可以传入null。 | -| callback | AsyncCallback\ | 是 | 回调函数。当初始化成功,err为undefined,否则为错误对象。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | --------------------------------------------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error.| - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; -let symKey; // 此处省略生成对称密钥的过程 -let cipher; // 此处省略生成cipher实例的过程 - -cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, null, (err, ) => { - if (err) { - console.error(`Failed to init cipher, ${err.code}, ${err.message}`); - } else { - console.info(`Init cipher success`); - // 此处进行update等后续操作 - } -}) -``` - -### init - -init(opMode : CryptoMode, key : Key, params : ParamsSpec) : Promise\ - -初始化加解密的cipher对象,通过Promise获取结果。
必须在使用[createCipher](#cryptoframeworkcreatecipher)创建[Cipher](#cipher)实例后,才能使用本函数。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------------------------- | ---- | ------------------------------------------------------------ | -| opMode | [CryptoMode](#cryptomode) | 是 | 加密或者解密模式。 | -| key | [Key](#key) | 是 | 指定加密或解密的密钥。 | -| params | [ParamsSpec](#paramsspec) | 是 | 指定加密或解密的参数,对于ECB等没有参数的算法模式,可以传入null。 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | -------------------------------------- | -| Promise\ | Promise对象。无返回结果的Promise对象。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ------------------------------------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error.| - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; -let symKey; // 此处省略生成对称密钥的过程 -let cipher; // 此处省略生成cipher实例的过程 -cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, null) -.then(() => { - console.info(`Init cipher success`); - // 此处进行update等后续操作 -}, error => { - console.error(`Failed to init cipher, ${error.code}, ${error.message}`); -}) -``` - -### update - -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操作。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------------------- | ---- | ------------------------------------------------------------ | -| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。data不能为null,也不允许传入{data : Uint8Array(空) } | -| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数。当更新加/解密数据成功,err为undefined,data为此次更新的加/解密结果DataBlob;否则为错误对象。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ------------------------------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -function stringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -let cipher; // 此处省略生成cipher实例的过程 -// 此处省略init()过程 -let plainText = {data : stringToUint8Array('this is test!')}; -cipher.update(plainText, (err, output) => { // 加密过程举例 - if (err) { - console.error(`Failed to update cipher`); - } else { - console.info(`Update cipher success`); - if (output != null) { - // 拼接output.data到密文 - } - // 此处进行doFinal等后续操作 - } -}) -``` - -### update - -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操作。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ---- | --------------------- | ---- | -------------------- | -| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。data不能为null,也不允许传入{data : Uint8Array(空) } | - -**返回值:** - -| 类型 | 说明 | -| ------------------------------- | ------------------------------------------------ | -| Promise\<[DataBlob](#datablob)> | Promise对象,返回此次更新的加/解密结果DataBlob。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | -------------------------------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -function stringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -let cipher; // 此处省略生成cipher实例的过程 -// 此处省略init()过程 -let plainText = {data : stringToUint8Array('this is test!')}; -cipher.update(plainText) -.then((output) => { - console.info(`Update cipher success.`); - if (output != null) { - // 拼接output.data到密文 - } - // 此处进行doFinal等后续操作 -}, error => { - console.info(`Update cipher failed.`); -}) -``` - -### doFinal - -doFinal(data : DataBlob, callback : AsyncCallback\) : void - -(1)在对称加解密中,doFinal加/解密(分组模式产生的)剩余数据和本次传入的数据,最后结束加密或者解密数据操作,通过注册回调函数获取加密或者解密数据。
如果数据量较小,可以在doFinal中一次性传入数据,而不使用update;如果在本次加解密流程中,已经使用[update](#update-4)传入过数据,可以在doFinal的data参数处传入null。
根据对称加解密的模式不同,doFinal的输出有如下区别: - -- 对于GCM和CCM模式的对称加密:一次加密流程中,如果将每一次update和doFinal的结果拼接起来,会得到“密文+authTag”,即末尾的16字节(GCM模式)或12字节(CCM模式)是authTag,而其余部分均为密文。(也就是说,如果doFinal的data参数传入null,则doFinal的结果就是authTag)
authTag需要填入解密时的[GcmParamsSpec](#gcmparamsspec)或[CcmParamsSpec](#ccmparamsspec);密文则作为解密时的入参data。 -- 对于其他模式的对称加解密、GCM和CCM模式的对称解密:一次加/解密流程中,每一次update和doFinal的结果拼接起来,得到完整的明文/密文。 - -(2)在RSA非对称加解密中,doFinal加/解密本次传入的数据,通过注册回调函数获取加密或者解密数据。如果数据量较大,可以多次调用doFinal,拼接结果得到完整的明文/密文。 - -> **说明:** -> 1. 对称加解密中,调用doFinal标志着一次加解密流程已经完成,即[Cipher](#cipher)实例的状态被清除,因此当后续开启新一轮加解密流程时,需要重新调用[init()](init-2)并传入完整的参数列表进行初始化
(比如即使是对同一个Cipher实例,采用同样的对称密钥,进行加密然后解密,则解密中调用init的时候仍需填写params参数,而不能直接省略为null)。 -> 2. 如果遇到解密失败,需检查加解密数据和[init](#init-2)时的参数是否匹配,包括GCM模式下加密得到的authTag是否填入解密时的GcmParamsSpec等。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------------------- | ---- | ------------------------------------------------------------ | -| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。在对称加解密中允许为null,但不允许传入{data : Uint8Array(空) }。 | -| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数。当最终加/解密数据成功,err为undefined,data为剩余数据的加/解密结果DataBlob;否则为错误对象。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ----------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -let cipher; // 此处省略生成cipher实例的过程 -let data; // 此处省略准备待加密/解密数据的过程 -// 此处省略init()和update()过程 -cipher.doFinal(data, (err, output) => { - if (err) { - console.error(`Failed to finalize cipher, ${err.code}, ${err.message}`); - } else { - console.info(`Finalize cipher success`); - if (output != null) { - // 拼接output.data得到完整的明文/密文(及authTag) - } - } -}) -``` - -### doFinal - -doFinal(data : DataBlob) : Promise\ - -(1)在对称加解密中,doFinal加/解密(分组模式产生的)剩余数据和本次传入的数据,最后结束加密或者解密数据操作,通过Promise获取加密或者解密数据。
如果数据量较小,可以在doFinal中一次性传入数据,而不使用update;如果在本次加解密流程中,已经使用[update](#update-4)传入过数据,可以在doFinal的data参数处传入null。
根据对称加解密的模式不同,doFinal的输出有如下区别: - -- 对于GCM和CCM模式的对称加密:一次加密流程中,如果将每一次update和doFinal的结果拼接起来,会得到“密文+authTag”,即末尾的16字节(GCM模式)或12字节(CCM模式)是authTag,而其余部分均为密文。(也就是说,如果doFinal的data参数传入null,则doFinal的结果就是authTag)
authTag需要填入解密时的[GcmParamsSpec](#gcmparamsspec)或[CcmParamsSpec](#ccmparamsspec);密文则作为解密时的入参data。 -- 对于其他模式的对称加解密、GCM和CCM模式的对称解密:一次加/解密流程中,每一次update和doFinal的结果拼接起来,得到完整的明文/密文。 - -(2)在RSA非对称加解密中,doFinal加/解密本次传入的数据,通过Promise获取加密或者解密数据。如果数据量较大,可以多次调用doFinal,拼接结果得到完整的明文/密文。 - -> **说明:** -> 1. 对称加解密中,调用doFinal标志着一次加解密流程已经完成,即[Cipher](#cipher)实例的状态被清除,因此当后续开启新一轮加解密流程时,需要重新调用[init()](init-2)并传入完整的参数列表进行初始化
(比如即使是对同一个Cipher实例,采用同样的对称密钥,进行加密然后解密,则解密中调用init的时候仍需填写params参数,而不能直接省略为null)。 -> 2. 如果遇到解密失败,需检查加解密数据和[init](#init-2)时的参数是否匹配,包括GCM模式下加密得到的authTag是否填入解密时的GcmParamsSpec等。 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ---- | --------------------- | ---- | -------------------- | -| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。data参数允许为null,但不允许传入{data : Uint8Array(空) } | - -**返回值:** - -| 类型 | 说明 | -| ------------------------------- | ------------------------------------------------ | -| Promise\<[DataBlob](#datablob)> | Promise对象,返回剩余数据的加/解密结果DataBlob。 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | -------------------------------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -**示例:** - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -let cipher; // 此处省略生成cipher实例的过程 -let data; // 此处省略准备待加密/解密数据的过程 -// 此处省略init()和update()过程 -cipher.doFinal(data) -.then(output => { - console.info(`Finalize cipher success`); - if (output != null) { - // 拼接output.data得到完整的明文/密文(及authTag) - } -}, error => { - console.error(`Failed to finalize cipher, ${error.code}, ${error.message}`); -}) -``` - -**使用RSA加密的callback完整示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -function stringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); -let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); -rsaGenerator.generateKeyPair(function (err, keyPair) { - let pubKey = keyPair.pubKey; - cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null, function (err, data) { - let plainText = "this is cipher text"; - let input = {data : stringToUint8Array(plainText) }; - cipher.doFinal(input, function (err, data) { - AlertDialog.show({ message : "EncryptOutPut is " + data.data} ); - }); - }); -}); -``` - -**使用RSA加密的promise完整示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -function stringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); -let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); -let keyGenPromise = rsaGenerator.generateKeyPair(); -keyGenPromise.then(rsaKeyPair => { - let pubKey = rsaKeyPair.pubKey; - return cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null); // 传入私钥和DECRYPT_MODE可初始化解密模式 -}).then(() => { - let plainText = "this is cipher text"; - let input = { data : stringToUint8Array(plainText) }; - return cipher.doFinal(input); -}).then(dataBlob => { - console.info("EncryptOutPut is " + dataBlob.data); -}); -``` - -> **说明:** -> 更多加解密流程的完整示例可参考开发指导中的“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”一节。 - -## cryptoFramework.createSign - -createSign(algName : string) : Sign - -Sign实例生成 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | 是 | 指定签名算法:RSA或ECC,使用RSA PKCS1模式时需要设置摘要,使用RSA PSS模式时需要设置摘要和掩码摘要 | - -**返回值**: - -| 类型 | 说明 | -| ---- | -------------------------------- | -| Sign | 返回由输入算法指定生成的Sign对象 | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let signer1 = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); - -let singer2 = cryptoFramework.createSign("RSA1024|PSS|SHA256|MGF1_SHA256") -``` - -## Sign - -Sign类,使用Sign方法之前需要创建该类的实例进行操作,通过createSign(algName : string) : Sign方法构造此实例。Sign类不支持重复初始化,当业务方需要使用新密钥签名时,需要重新创建新Sign对象并调用init初始化。 - -业务方使用时,在createSign时确定签名的模式,调用init接口设置密钥。 - -当待签名数据较短时,可在init初始化后直接调用sign接口传入原文数据进行签名。 - -当待签名数据较长时,可通过update接口分段传入切分后的原文数据,最后调用sign接口对整体原文数据进行签名。 - -当使用update分段传入原文时,sign接口支持传null,业务方可在循环中调用update接口,循环结束后调用sign进行签名。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ---------------------------- | -| algName | string | 是 | 否 | 签名指定的算法名称。 | - -### init - -init(priKey : PriKey, callback : AsyncCallback\) : void - -使用私钥初始化Sign对象,Callback形式,Sign类暂不支持重复init - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------------- | -| priKey | [PriKey](#prikey) | 是 | 用于Sign的初始化 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### init - -init(priKey : PriKey) : Promise\ - -使用私钥初始化Sign对象,Promise形式,Sign类暂不支持重复init - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---- | ---- | ---------------- | -| priKey | [PriKey](#prikey) | 是 | 用于Sign的初始化 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### update - -update(data : DataBlob, callback : AsyncCallback\) : void - -追加待签名数据,callback方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------- | -| data | [DataBlob](#datablob)| 是 | 传入的消息 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### update - -update(data : DataBlob) : Promise\; - -追加待签名数据,promise方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | -------- | ---- | ---------- | -| data | [DataBlob](#datablob) | 是 | 传入的消息 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### sign - -sign(data : DataBlob, callback : AsyncCallback\) : void - -对数据进行签名,返回签名结果,callback方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------- | -| data | [DataBlob](#datablob) | 是 | 传入的消息 | -| callback | AsyncCallback\<[DataBlob](#datablob) > | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### sign - -sign(data : DataBlob) : Promise\ - -对数据进行签名,返回签名结果,promise方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | -------- | ---- | ---------- | -| data | [DataBlob](#datablob) | 是 | 传入的消息 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -**callback示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -function stringToUint8Array(str) { - var arr = []; - for (var i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - var tmpArray = new Uint8Array(arr); - return tmpArray; -} - -let globalKeyPair; -let SignMessageBlob; -let plan1 = "This is Sign test plan1"; // The first segment of data. -let plan2 = "This is Sign test plan2"; // The second segment of fata. -let input1 = { data : stringToUint8Array(plan1) }; -let input2 = { data : stringToUint8Array(plan2) }; - -function signMessageCallback() { - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); - let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); - rsaGenerator.generateKeyPair(function (err, keyPair) { - globalKeyPair = keyPair; - let priKey = globalKeyPair.priKey; - signer.init(priKey, function (err, data) { - signer.update(input1, function (err, data) { // add first segment of data - signer.sign(input2, function (err, data) { // add second segment of data, sign input1 and input2 - SignMessageBlob = data; - AlertDialog.show({message : "res" + SignMessageBlob.data}); - }); - }); - }); - }); -} -``` - -**promise示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -function stringToUint8Array(str) { - var arr = []; - for (var i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - var tmpArray = new Uint8Array(arr); - return tmpArray; -} - -let globalKeyPair; -let SignMessageBlob; -let plan1 = "This is Sign test plan1"; // The first segment of data. -let plan2 = "This is Sign test plan2"; // The second segment of fata. -let input1 = { data : stringToUint8Array(plan1) }; -let input2 = { data : stringToUint8Array(plan2) }; - -function signMessagePromise() { - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); - let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); - let keyGenPromise = rsaGenerator.generateKeyPair(); - keyGenPromise.then( keyPair => { - globalKeyPair = keyPair; - let priKey = globalKeyPair.priKey; - return signer.init(priKey); - }).then(() => { - return signer.update(input1); // add first segment of data - }).then(() => { - return signer.sign(input2); // add second segment of data, sign input1 and input2 - }).then(dataBlob => { - SignMessageBlob = dataBlob; - console.info("sign output is " + SignMessageBlob.data); - AlertDialog.show({message : "output" + SignMessageBlob.data}); - }); -} -``` - -## cryptoFramework.createVerify - -createVerify(algName : string) : Verify - -Verify实例生成 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ------------------------------------------------------------ | -| algName | string | 是 | 指定签名算法:RSA或ECC,使用RSA PKCS1模式时需要设置摘要,使用RSA PSS模式时需要设置摘要和掩码摘要 | - -**返回值**: - -| 类型 | 说明 | -| ------ | ---------------------------------- | -| Verify | 返回由输入算法指定生成的Verify对象 | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let verifyer1 = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); - -let verifyer2 = cryptoFramework.createVerify("RSA1024|PSS|SHA256|MGF1_SHA256") -``` - -## Verify - -Verify类,使用Verify方法之前需要创建该类的实例进行操作,通过createVerify(algName : string) : Verify方法构造此实例。 - -Verify类不支持重复初始化,当业务方需要使用新密钥验签时,需要重新创建新Verify对象并调用init初始化。 - -业务方使用时,在createVerify时确定验签的模式,调用init接口设置密钥。 - -当签名数据较短时,可在init初始化后直接调用verify接口传入签名数据和原文进行验签。 - -当签名数据较长时,可通过update接口分段传入签名数据,最后调用verify接口对整体签名数据进行验签。 - -当使用update分段传入签名数据时,verify接口的签名数据支持传null,业务方可在循环中调用update接口,循环结束后调用verify传入原文进行验签。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ---------------------------- | -| algName | string | 是 | 否 | 验签指定的算法名称。 | - - - -### init - -init(pubKey : PubKey, callback : AsyncCallback\) : void - -传入公钥初始化Verify对象,Callback形式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------------------------- | -| pubKey | [PubKey](#pubkey) | 是 | 公钥对象,用于Verify的初始化 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### init - -init(pubKey : PubKey) : Promise\ - -传入公钥初始化Verify对象,Promise形式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---- | ---- | ---------------------------- | -| pubKey | [PubKey](#pubkey) | 是 | 公钥对象,用于Verify的初始化 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### update - -update(data : DataBlob, callback : AsyncCallback\) : void - -追加待验签数据,callback方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------- | -| data | [DataBlob](#datablob)| 是 | 传入的消息 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### update - -update(data : DataBlob) : Promise\; - -追加待验签数据,promise方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | -------- | ---- | ---------- | -| data | [DataBlob](#datablob) | 是 | 传入的消息 | - -**返回值:** - -| 类型 | 说明 | -| -------------- | ----------- | -| Promise\ | Promise对象 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### verify - -verify(data : DataBlob, signatureData : DataBlob, callback : AsyncCallback\) : void - -对数据进行验签,返回验签结果,callback方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------------- | -------------------- | ---- | ---------- | -| data | [DataBlob](#datablob) | 是 | 传入的消息 | -| signatureData | [DataBlob](#datablob) | 是 | 签名数据 | -| callback | AsyncCallback\ | 是 | 回调函数 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### verify - -verify(data : DataBlob, signatureData : DataBlob) : Promise\ - -对数据进行验签,返回验签结果,promise方式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------------- | -------- | ---- | ---------- | -| data | [DataBlob](#datablob) | 是 | 传入的消息 | -| signatureData | [DataBlob](#datablob) | 是 | 签名数据 | - -**返回值:** - -| 类型 | 说明 | -| ----------------- | ---------------------------- | -| Promise\ | 异步返回值,代表验签是否通过 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -**callback示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 -let input1 = null; -let input2 = null; -let signMessageBlob = null; // 签名后的数据,此处省略 -let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA25"); -verifyer.init(globalKeyPair.pubKey, function (err, data) { - verifyer.update(input1, function(err, data) { - verifyer.verify(input2, signMessageBlob, function(err, data) { - console.info("verify result is " + data); - }) - }); -}) -``` - -**promise示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 -let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); -let verifyInitPromise = verifyer.init(globalKeyPair.pubKey); -let input1 = null; -let input2 = null; -let signMessageBlob = null; // 签名后的数据,此处省略 -verifyInitPromise.then(() => { - return verifyer.update(input1); -}).then(() => { - return verifyer.verify(input2, signMessageBlob); -}).then(res => { - console.log("Verify result is " + res); -}); -``` - -## cryptoFramework.createKeyAgreement - -createKeyAgreement(algName : string) : KeyAgreement - -KeyAgreement实例生成 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ------------------------------- | -| algName | string | 是 | 指定密钥协商算法:目前仅支持ECC | - -**返回值**: - -| 类型 | 说明 | -| ------------ | ---------------------------------------- | -| KeyAgreement | 返回由输入算法指定生成的KeyAgreement对象 | - -**示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let keyAgreement = cryptoFramework.createKeyAgreement("ECC256"); - -``` - -## KeyAgreement - -KeyAgreement类,使用密钥协商方法之前需要创建该类的实例进行操作,通过createKeyAgreement(algName : string) : KeyAgreement方法构造此实例。 - -### 属性 - -**系统能力:** SystemCapability.Security.CryptoFramework - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------ | ---- | ---- | ---------------------------- | -| algName | string | 是 | 否 | 密钥协商指定的算法名称。 | - -### generateSecret - -generateSecret(priKey : PriKey, pubKey : PubKey, callback : AsyncCallback\) : void - -基于传入的私钥与公钥进行密钥协商,返回共享秘密,Callback形式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------ | ---- | ---------------------- | -| priKey | [PriKey](#prikey) | 是 | 设置密钥协商的私钥输入 | -| pubKey | [PubKey](#pubkey) | 是 | 设置密钥协商的公钥输入 | -| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 异步接受共享秘密的回调 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -### generateSecret - -generateSecret(priKey : PriKey, pubKey : PubKey) : Promise\ - -基于传入的私钥与公钥进行密钥协商,返回共享秘密,Promise形式 - -**系统能力:** SystemCapability.Security.CryptoFramework - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ---------------------- | -| priKey | [PriKey](#prikey) | 是 | 设置密钥协商的私钥输入 | -| pubKey | [PubKey](#pubkey) | 是 | 设置密钥协商的公钥输入 | - -**返回值:** - -| 类型 | 说明 | -| ------------------ | -------- | -| Promise\<[DataBlob](#datablob)> | 共享秘密 | - -**错误码:** - -| 错误码ID | 错误信息 | -| -------- | ---------------------- | -| 17620001 | memory error. | -| 17620002 | runtime error. | -| 17630001 | crypto operation error. | - -**callback示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 -let keyAgreement = cryptoFramework.createKeyAgreement("ECC256"); -keyAgreement.generateSecret(globalKeyPair.priKey, globalKeyPair.pubKey, function (err, secret) { - if (err) { - console.error("keyAgreement error."); - return; - } - console.info("keyAgreement output is " + secret.data); -}); -``` - -**promise示例:** - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 -let keyAgreement = cryptoFramework.createKeyAgreement("ECC256"); -let keyAgreementPromise = keyAgreement.generateSecret(globalKeyPair.priKey, globalKeyPair.pubKey); -keyAgreementPromise.then((secret) => { - console.info("keyAgreement output is " + secret.data); -}).catch((error) => { - console.error("keyAgreement error."); -}); -``` +# @ohos.security.cryptoFramework (加解密算法库框架) + +为屏蔽底层硬件和算法库,向上提供统一的密码算法库加解密相关接口。 + +> **说明:** +> +> 本模块首批接口从API version 9开始支持。 + +## 导入模块 + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" +``` + +## Result + + 表示执行结果的枚举。 + + **系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 值 | 说明 | +| ------------------------------------- | -------- | ---------------------------- | +| INVALID_PARAMS | 401 | 非法入参。 | +| NOT_SUPPORT | 801 | 操作不支持。 | +| ERR_OUT_OF_MEMORY | 17620001 | 内存错误。 | +| ERR_RUNTIME_ERROR | 17620002 | 运行时外部错误。 | +| ERR_CRYPTO_OPERATION | 17630001 | 调用三方算法库API出错。 | + +## DataBlob + +buffer数组。 + + **系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ---- | ---------- | ---- | ---- | ------ | +| data | Uint8Array | 是 | 是 | 数据。 | + + +## cryptoFramework.createMac + +createMac(algName : string) : Mac + +生成Mac实例,用于进行消息认证码的计算与操作。
支持的规格详见框架概述“[HMAC消息认证码算法规格](../../security/cryptoFramework-overview.md#hmac消息认证码算法规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------------------------------------ | +| algName | string | 是 | 指定摘要算法,支持算法请参考“[HMAC算法支持范围](../../security/cryptoFramework-overview.md#hmac消息认证码算法规格)”一节 | + +**返回值**: + +| 类型 | 说明 | +| ---- | --------------------------------------- | +| Mac | 返回由输入算法指定生成的[Mac](#mac)对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------ | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var mac; +try { + // 参数选择请参考上述算法支持范围 + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); +} +``` + +## Mac + +Mac类,调用Mac方法可以进行MAC(Message Authentication Code)加密计算。调用前,需要通过[createMac](#cryptoframeworkcreatemac)构造Mac实例。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | -------------------- | +| algName | string | 是 | 否 | 代表指定的摘要算法名 | + +### init + +init(key : SymKey, callback : AsyncCallback\) : void; + +使用对称密钥初始化Mac计算 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ------------ | +| key | [SymKey](#symkey) | 是 | 共享对称密钥 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var mac; +try { + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); +} +var KeyBlob; +var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); +symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { + if (err) { + console.error("[Callback] err: " + err.code); + } + mac.init(symKey, (err1, ) => { + if (err1) { + console.error("[Callback] err: " + err1.code); + } + }); +}); +``` + +### init + +init(key : SymKey) : Promise\; + +使用对称密钥初始化Mac计算 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ------------ | +| key | [SymKey](#symkey) | 是 | 共享对称密钥 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var mac; +try { + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Mac algName is: " + mac.algName); + +var KeyBlob; +var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); +var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); +promiseConvertKey.then(symKey => { + var promiseMacInit = mac.init(symKey); + return promiseMacInit; +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); + +``` + +### update + +update(input : DataBlob, callback : AsyncCallback\) : void; + +传入消息进行Mac更新计算 + +> **说明:** +> Hmac算法多次调用update更新的代码示例详见开发指导“[使用消息认证码操作](../../security/cryptoFramework-guidelines.md#使用消息认证码操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------- | +| input | [DataBlob](#datablob)| 是 | 传入的消息 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var KeyBlob; +var mac; +try { + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); +symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { + if (err) { + console.error("[Callback] err: " + err.code); + } + mac.init(symKey, (err1, ) => { + if (err1) { + console.error("[Callback] err: " + err1.code); + } + let blob; + mac.update(blob, (err2, data) => { + if (err2) { + console.error("[Callback] err: " + err2.code); + } + }); + }); +}); +``` + +### update + +update(input : DataBlob) : Promise\; + +传入消息进行Mac更新计算 + +> **说明:** +> Hmac算法多次调用update更新的代码示例详见开发指导“[使用消息认证码操作](../../security/cryptoFramework-guidelines.md#使用消息认证码操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | -------- | ---- | ---------- | +| input | [DataBlob](#datablob) | 是 | 传入的消息 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var mac; +try { + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Mac algName is: " + mac.algName); + +var KeyBlob; +var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); +var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); +promiseConvertKey.then(symKey => { + var promiseMacInit = mac.init(symKey); + return promiseMacInit; +}).then(() => { + let blob; + var promiseMacUpdate = mac.update(blob); + return promiseMacUpdate; +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); + +``` + +### doFinal + +doFinal(callback : AsyncCallback\) : void; + +返回Mac的计算结果 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------ | ---- | -------- | +| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var KeyBlob; +var mac; +try { + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); +symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { + if (err) { + console.error("[Callback] err: " + err.code); + } + mac.init(symKey, (err1, ) => { + if (err1) { + console.error("[Callback] err: " + err1.code); + } + let blob; + mac.update(blob, (err2, ) => { + if (err2) { + console.error("[Callback] err: " + err2.code); + } + mac.doFinal((err3, macOutput) => { + if (err3) { + console.error("[Callback] err: " + err3.code); + } else { + console.error("[Promise]: HMAC result: " + macOutput); + } + }); + }); + }); +}); +``` + +### doFinal + +doFinal() : Promise\ + +返回Mac的计算结果 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| ------------------ | ----------- | +| Promise\<[DataBlob](#datablob)> | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var mac; +try { + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Mac algName is: " + mac.algName); + +var KeyBlob; +var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); +var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); +promiseConvertKey.then(symKey => { + var promiseMacInit = mac.init(symKey); + return promiseMacInit; +}).then(() => { + let blob; + var promiseMacUpdate = mac.update(blob); + return promiseMacUpdate; +}).then(() => { + var PromiseMacDoFinal = mac.doFinal(); + return PromiseMacDoFinal; +}).then(macOutput => { + console.error("[Promise]: HMAC result: " + macOutput.data); +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); +``` + +### getMacLength + +getMacLength() : number + +获取Mac消息认证码的长度(字节数) + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| ------ | ------------------------- | +| number | 返回mac计算结果的字节长度 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var mac; +try { + mac = cryptoFramework.createMac("SHA256"); +} catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Mac algName is: " + mac.algName); + +var KeyBlob; +var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); +var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); +promiseConvertKey.then(symKey => { + var promiseMacInit = mac.init(symKey); + return promiseMacInit; +}).then(() => { + let blob; + var promiseMacUpdate = mac.update(blob); + return promiseMacUpdate; +}).then(() => { + var PromiseMacDoFinal = mac.doFinal(); + return PromiseMacDoFinal; +}).then(macOutput => { + console.error("[Promise]: HMAC result: " + macOutput.data); + let macLen = mac.getMacLength(); + console.error("MAC len: " + macLen); +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); +``` + +## cryptoFramework.createMd + +createMd(algName : string) : Md + +生成Md实例,用于进行消息摘要的计算与操作。
支持的规格详见框架概述“[MD消息摘要算法规格](../../security/cryptoFramework-overview.md#md消息摘要算法规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------------------------------------ | +| algName | string | 是 | 指定摘要算法,支持算法请参考“[MD算法支持范围](../../security/cryptoFramework-overview.md#md消息摘要算法规格)”一节 | + +**返回值**: + +| 类型 | 说明 | +| ---- | ------------------------------------- | +| Md | 返回由输入算法指定生成的[Md](#md)对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------ | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var md; +try { + // 参数选择请参考上述算法支持范围 + md = cryptoFramework.createMd("SHA256"); +} catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); +} +``` + +## Md + +Md类,调用Md方法可以进行MD(Message Digest)摘要计算。调用前,需要通过[createMd](#cryptoframeworkcreatemd)构造Md实例。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | -------------------- | +| algName | string | 是 | 否 | 代表指定的摘要算法名 | + +### update + +update(input : DataBlob, callback : AsyncCallback\) : void; + +传入消息进行Md更新计算 + +> **说明:** +> Md算法多次调用update更新的代码示例详见开发指导“[使用摘要操作](../../security/cryptoFramework-guidelines.md#使用摘要操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------- | +| input | [DataBlob](#datablob)| 是 | 传入的消息 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var md; +try { + md = cryptoFramework.createMd("SHA256"); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Md algName is: " + md.algName); + +let blob; +md.update(blob, (err,) => { + if (err) { + console.error("[Callback] err: " + err.code); + } +}); +``` + +### update + +update(input : DataBlob) : Promise\; + +传入消息进行Md更新计算 + +> **说明:** +> Md算法多次调用update更新的代码示例详见开发指导“[使用摘要操作](../../security/cryptoFramework-guidelines.md#使用摘要操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | -------- | ---- | ---------- | +| input | DataBlob | 是 | 传入的消息 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var md; +try { + md = cryptoFramework.createMd("SHA256"); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Md algName is: " + md.algName); + +let blob; +var promiseMdUpdate = md.update(blob); +promiseMdUpdate.then(() => { + // do something +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); +``` + +### digest + +digest(callback : AsyncCallback\) : void + +返回Md的计算结果 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------ | ---- | -------- | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var md; +try { + md = cryptoFramework.createMd("SHA256"); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Md algName is: " + md.algName); + +let blob; +md.update(blob, (err,) => { + if (err) { + console.error("[Callback] err: " + err.code); + } + md.digest((err1, mdOutput) => { + if (err1) { + console.error("[Callback] err: " + err1.code); + } else { + console.error("[Callback]: MD result: " + mdOutput); + } + }); +}); +``` + +### digest + +digest() : Promise\ + +返回Md的计算结果 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| ------------------ | ----------- | +| Promise\<[DataBlob](#datablob)> | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var md; +try { + md = cryptoFramework.createMd("SHA256"); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Md algName is: " + md.algName); + +let blob; +var promiseMdUpdate = md.update(blob); +promiseMdUpdate.then(() => { + var PromiseMdDigest = md.digest(); + return PromiseMdDigest; +}).then(mdOutput => { + console.error("[Promise]: MD result: " + mdOutput.data); +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); +``` + +### getMdLength + +getMdLength() : number + +获取Md消息摘要长度(字节数) + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| ------ | ------------------------ | +| number | 返回md计算结果的字节长度 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var md; +try { + md = cryptoFramework.createMd("SHA256"); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +console.error("Md algName is: " + md.algName); + +let blob; +var promiseMdUpdate = md.update(blob); +promiseMdUpdate.then(() => { + var PromiseMdDigest = md.digest(); + return PromiseMdDigest; +}).then(mdOutput => { + console.error("[Promise]: MD result: " + mdOutput.data); + let mdLen = md.getMdLength(); + console.error("MD len: " + mdLen); +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); +``` + +## cryptoFramework.createRandom + +createRandom() : Random + +生成Random实例,用于进行随机数的计算与设置种子。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值**: + +| 类型 | 说明 | +| ------ | --------------------------------------------- | +| Random | 返回由输入算法指定生成的[Random](#random)对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------ | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +try { + var rand = cryptoFramework.createRandom(); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +``` + +## Random + +Random类,调用Random方法可以进行随机数计算。调用前,需要通过[createRandom](#cryptoframeworkcreaterandom)构造Random实例。 + +### generateRandom + +generateRandom(len : number, callback: AsyncCallback\) : void; + +生成指定长度的随机数 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------ | ---- | -------------------- | +| len | number | 是 | 表示生成随机数的长度 | +| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var rand; +try { + rand = cryptoFramework.createRandom(); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} +rand.generateRandom(12, (err, randData) => { + if (err) { + console.error("[Callback] err: " + err.code); + } else { + console.error("[Callback]: generate random result: " + randData.data); + } +}); +``` + +### generateRandom + +generateRandom(len : number) : Promise\; + +生成指定长度的随机数 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------- | +| len | number | 是 | 表示生成随机数的长度 | + +**返回值:** + +| 类型 | 说明 | +| ------------------ | ----------- | +| Promise\<[DataBlob](#datablob)> | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17630001 | crypto operation error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var rand; +try { + rand = cryptoFramework.createRandom(); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} + +var promiseGenerateRand = rand.generateRandom(12); +promiseGenerateRand.then(randData => { + console.error("[Promise]: rand result: " + randData.data); +}).catch(error => { + console.error("[Promise]: error: " + error.message); +}); +``` + +### setSeed + +setSeed(seed : DataBlob) : void; + +设置指定的种子 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------- | ---- | ---------- | +| seed | DataBlob | 是 | 设置的种子 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ----------------- | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +var rand; +try { + rand = cryptoFramework.createRandom(); +} catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); +} + +rand.generateRandom(12, (err, randData) => { + if (err) { + console.error("[Callback] err: " + err.code); + } else { + console.error("[Callback]: generate random result: " + randData.data); + try { + rand.setSeed(randData); + } catch (error) { + console.log("setSeed failed, errCode: " + error.code + ", errMsg: " + error.message); + } + } +}); +``` + +## ParamsSpec + +加解密参数,在进行对称加解密时需要构造其子类对象,并将子类对象传入[init()](#init-2)方法。
适用于需要iv等参数的对称加解密模式(对于无iv等参数的模式如ECB模式,无需构造,在[init()](#init-2)中传入null即可)。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ------------------------------------------------------------ | +| algName | string | 是 | 是 | 指明对称加解密参数的算法模式。可选值如下:
- "IvParamsSpec": 适用于CBC\|CTR\|OFB\|CFB模式
- "GcmParamsSpec": 适用于GCM模式
- "CcmParamsSpec": 适用于CCM模式 | + +> **说明:** +> 由于[init()](#init-2)的params参数是ParamsSpec类型(父类),而实际需要传入具体的子类对象(如IvParamsSpec),因此在构造子类对象时应设置其父类ParamsSpec的algName参数,使算法库在init()时知道传入的是哪种子类对象。 + +## IvParamsSpec + +加解密参数[ParamsSpec](#paramsspec)的子类,用于在对称加解密时作为[init()](#init-2)方法的参数。
适用于CBC、CTR、OFB、CFB这些仅使用iv作为参数的加解密模式。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ---- | --------------------- | ---- | ---- | ------------------------------------------------------------ | +| iv | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数iv。常见取值如下:
- AES的CBC\|CTR\|OFB\|CFB模式:iv长度为16字节
- 3DES的CBC\|OFB\|CFB模式:iv长度为8字节 | + +> **说明:** +> 传入[init()](#init-2)方法前需要指定其algName属性(来源于父类[ParamsSpec](#paramsspec))。 + +## GcmParamsSpec + +加解密参数[ParamsSpec](#paramsspec)的子类,用于在对称加解密时作为[init()](#init-2)方法的参数。
适用于GCM模式。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | --------------------- | ---- | ---- | ------------------------------------------------------------ | +| iv | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数iv,长度为12字节 | +| 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)方法前需要指定其algName属性(来源于父类[ParamsSpec](#paramsspec))。 + +## CcmParamsSpec + +加解密参数[ParamsSpec](#paramsspec)的子类,用于在对称加解密时作为[init()](#init-2)方法的参数。
适用于CCM模式。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | --------------------- | ---- | ---- | ------------------------------------------------------------ | +| iv | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数iv,长度为7字节 | +| 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)方法前需要指定其algName属性(来源于父类[ParamsSpec](#paramsspec))。 + +## CryptoMode + +表示加解密操作的枚举。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 值 | 说明 | +| ------------ | ---- | ---------------- | +| ENCRYPT_MODE | 0 | 表示进行加密操作 | +| DECRYPT_MODE | 1 | 表示进行解密操作 | + +## Key + +密钥(父类),在运行密码算法(如加解密)时需要提前生成其子类对象,并传入[Cipher](#cipher)实例的[init()](#init-2)方法。
密钥可以通过密钥生成器来生成。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ---------------------------- | +| format | string | 是 | 否 | 密钥的格式。 | +| algName | string | 是 | 否 | 密钥对应的算法名(含长度)。 | + +### getEncoded + +getEncoded() : DataBlob + +以同步方法,获取16进制形式的密钥内容。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ------------------------ | +| [DataBlob](#datablob) | 用于查看密钥的具体内容。 | + +**示例:** + +```js +import cryptoFramework from "@ohos.security.cryptoFramework" +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +let key; // key为使用对称密钥生成器 生成的密钥,此处省略生成过程 +let encodedKey = key.getEncoded(); +console.info("key hex:" + uint8ArrayToShowStr(encodedKey.data)); +``` + +## SymKey + +对称密钥,是[Key](#key)的子类,在对称加解密时需要将其对象传入[Cipher](#cipher)实例的[init()](#init-2)方法使用。
对称密钥可以通过对称密钥生成器[SymKeyGenerator](#symkeygenerator)来生成。 + +### clearMem + +clearMem() : void + +以同步方法,将系统底层内存中的的密钥内容清零。建议在不再使用对称密钥实例时,调用本函数,避免内存中密钥数据存留过久。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**示例:** + +```js +import cryptoFramework from "@ohos.security.cryptoFramework" +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +let key; // key为使用对称密钥生成器 生成的密钥,此处省略生成过程 +let encodedKey = key.getEncoded(); +console.info("key hex:" + uint8ArrayToShowStr(encodedKey.data)); // 输出密钥内容 +key.clearMem(); +encodedKey = key.getEncoded(); +console.info("key hex:" + uint8ArrayToShowStr(encodedKey.data)); // 输出全零 +``` + +## PubKey + +公钥,是Key的子类,在非对称加解密、验签、密钥协商时需要将其对象作为输入使用。
公钥可以通过非对称密钥生成器AsyKeyGenerator来生成。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ---------------------------- | +| format | string | 是 | 否 | 密钥的格式。 | +| algName | string | 是 | 否 | 密钥对应的算法名(含长度)。 | + + +### getEncoded + +getEncoded() : DataBlob + +以同步方法,获取二进制形式的密钥内容。公钥格式满足ASN.1语法、X.509规范、DER编码格式。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ------------------------ | +| [DataBlob](#datablob) | 用于查看密钥的具体内容。 | + +**示例:** + +```js +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +let key; // key为使用非对称密钥生成器生成的非对称密钥的公钥对象,此处省略生成过程 +console.info("key format:" + key.format); +console.info("key algName:" + key.algName); +var encodedKey = key.getEncoded(); +console.info("key encoded:" + uint8ArrayToShowStr(encodedKey.data)); +``` + +## PriKey + +私钥,是Key的子类,在非对称加解密、签名、密钥协商时需要将其作为输入使用。
私钥可以通过非对称密钥生成器AsyKeyGenerator来生成。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ---------------------------- | +| format | string | 是 | 否 | 密钥的格式。 | +| algName | string | 是 | 否 | 密钥对应的算法名(含长度)。 | + +### getEncoded + +getEncoded() : DataBlob + +以同步方法,获取二进制形式的密钥内容。私钥格式满足ASN.1语法,PKCS#8规范、DER编码方式。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| --------------------- | ------------------------ | +| [DataBlob](#datablob) | 用于查看密钥的具体内容。 | + +**示例:** + +```js +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +let key; // key为使用非对称密钥生成器生成的非对称密钥的私钥对象,此处省略生成过程 +console.info("key format:" + key.format); +console.info("key algName:" + key.algName); +var encodedKey = key.getEncoded(); +console.info("key encoded:" + uint8ArrayToShowStr(encodedKey.data)); +``` + +### clearMem + +clearMem() : void + +以同步方法,将系统底层内存中的的密钥内容清零。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**示例:** + +```js +let key; // key为使用非对称密钥生成器生成的非对称密钥的私钥对象,此处省略生成过程 +key.clearMem(); +``` + +## KeyPair + +非对称密钥对,包含:公钥与私钥。
可以通过非对称密钥生成器AsyKeyGenerator来生成。 + +> **说明:** +> +> KeyPair对象中的pubKey对象和priKey对象,作为KeyPair对象中的一个参数存在,当离开KeyPair对象作用域时,其内部对象可能被析构。
业务方使用时应持有KeyPair对象的引用,而非内部pubKey或priKey对象的引用。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ------------ | +| priKey | [PriKey](#prikey) | 是 | 否 | 私钥。 | +| pubKey | [PubKey](#pubkey) | 是 | 否 | 公钥。 | + + +## cryptoFramework.createSymKeyGenerator + +createSymKeyGenerator(algName : string) : SymKeyGenerator + +通过指定算法名称的字符串,获取相应的对称密钥生成器实例。
支持的规格详见框架概述“[密钥生成规格](../../security/cryptoFramework-overview.md#密钥生成规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------------------------------------ | +| algName | string | 是 | 待生成对称密钥生成器的算法名称。
具体取值详见框架概述“[密钥生成规格](../../security/cryptoFramework-overview.md#密钥生成规格)”一节中的“字符串参数”。 | + +**返回值:** + +| 类型 | 说明 | +| ----------------------------------- | -------------------------- | +| [SymKeyGenerator](#symkeygenerator) | 返回对称密钥生成器的对象。 | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator('3DES192'); +``` + +## SymKeyGenerator + +对称密钥生成器。
在使用该类的方法前,需要先使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)方法构建一个symKeyGenerator实例。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ------------------------------ | +| algName | string | 是 | 否 | 对称密钥生成器指定的算法名称。 | + +### generateSymKey + +generateSymKey(callback : AsyncCallback\) : void + +异步获取对称密钥生成器随机生成的密钥,通过注册回调函数获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。
目前支持使用OpenSSL的RAND_priv_bytes()作为底层能力生成随机密钥。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback\<[SymKey](#symkey)> | 是 | 回调函数。当生成对称密钥成功,err为undefined,data为获取到的SymKey;否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------- | +| 17620001 | memory error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; +let symAlgName = '3DES192'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); +symKeyGenerator.generateSymKey((err, symKey) => { + if (err) { + console.error(`Generate symKey failed, ${err.code}, ${err.message}`); + } else { + console.info(`Generate symKey success, algName: ${symKey.algName}`); + } +}) +``` + +### generateSymKey + +generateSymKey() : Promise\ + +异步获取该对称密钥生成器随机生成的密钥,通过Promise获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。
目前支持使用OpenSSL的RAND_priv_bytes()作为底层能力生成随机密钥。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| --------------------------- | --------------------------------- | +| Promise\<[SymKey](#symkey)> | Promise对象,返回对称密钥SymKey。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------- | +| 17620001 | memory error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; +let symAlgName = 'AES128'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); +symKeyGenerator.generateSymKey() +.then(symKey => { + console.info(`Generate symKey success, algName: ${symKey.algName}`); +}, error => { + console.error(`Generate symKey failed, ${error.code}, ${error.message}`); +}) +``` + +### convertKey + +convertKey(key : DataBlob, callback : AsyncCallback\) : void + +异步根据指定数据生成对称密钥,通过注册回调函数获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------- | ---- | ------------------------------------------------------------ | +| key | [DataBlob](#datablob) | 是 | 指定的对称密钥材料。 | +| callback | AsyncCallback\<[SymKey](#symkey)> | 是 | 回调函数。当生成对称密钥成功,err为undefined,data为获取到的SymKey;否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | --------------------------------------------------- | +| 17620001 | memory error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +function genKeyMaterialBlob() { + let arr = [ + 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, + 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, + 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) + let keyMaterial = new Uint8Array(arr); + return {data : keyMaterial}; +} + +let symAlgName = '3DES192'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); +let keyMaterialBlob = genKeyMaterialBlob(); +symKeyGenerator.convertKey(keyMaterialBlob, (err, symKey) => { + if (err) { + console.error(`Convert symKey failed, ${err.code}, ${err.message}`); + } else { + console.info(`Convert symKey success, algName: ${symKey.algName}`); + } +}) +``` + +### convertKey + +convertKey(key : DataBlob) : Promise\ + +异步根据指定数据生成对称密钥,通过Promise获取结果。
必须在使用[createSymKeyGenerator](#cryptoframeworkcreatesymkeygenerator)创建对称密钥生成器后,才能使用本函数。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---- | --------------------- | ---- | -------------------- | +| key | [DataBlob](#datablob) | 是 | 指定的密钥材料数据。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------- | --------------------------------- | +| Promise\<[SymKey](#symkey)> | Promise对象,返回对称密钥SymKey。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | --------------------------------------------- | +| 17620001 | memory error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +function genKeyMaterialBlob() { + let arr = [ + 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, + 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, + 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) + let keyMaterial = new Uint8Array(arr); + return {data : keyMaterial}; +} + +let symAlgName = '3DES192'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); +let keyMaterialBlob = genKeyMaterialBlob(); +symKeyGenerator.convertKey(keyMaterialBlob) +.then(symKey => { + console.info(`Convert symKey success, algName: ${symKey.algName}`); +}, error => { + console.error(`Convert symKey failed, ${error.code}, ${error.message}`); +}) +``` + +## cryptoFramework.createAsyKeyGenerator + +createAsyKeyGenerator(algName : string) : AsyKeyGenerator + +通过指定算法名称的字符串,获取相应的非对称密钥生成器实例。
支持的规格详见框架概述“[密钥生成规格](../../security/cryptoFramework-overview.md#密钥生成规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | -------------------------------- | +| algName | string | 是 | 待生成对称密钥生成器的算法名称。 | + +**返回值:** + +| 类型 | 说明 | +| --------------- | ---------------------------- | +| [AsyKeyGenerator](#asykeygenerator) | 返回非对称密钥生成器的对象。 | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); +``` + +## AsyKeyGenerator + +非对称密钥生成器。在使用该类的方法前,需要先使用createAsyKeyGenerator()方法构建一个AsyKeyGenerator实例。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | -------------------------------- | +| algName | string | 是 | 否 | 非对称密钥生成器指定的算法名称。 | + +### generateKeyPair + +generateKeyPair(callback : AsyncCallback\) : void; + +异步获取非对称密钥生成器随机生成的密钥,通过注册回调函数获取结果。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ----------------------- | ---- | ------------------------------ | +| callback | AsyncCallback\<[KeyPair](#keypair)> | 是 | 回调函数,用于获取非对称密钥。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); +asyKeyGenerator.generateKeyPair((err, keyPair) => { + if (err) { + console.error("generateKeyPair: error."); + return; + } + console.info("generateKeyPair: success."); +}) +``` + + +### generateKeyPair + +generateKeyPair() : Promise\ + +异步获取该非对称密钥生成器随机生成的密钥,通过Promise获取结果。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**返回值:** + +| 类型 | 说明 | +| ----------------- | --------------------------------- | +| Promise\<[KeyPair](#keypair)> | 使用Promise的方式获取非对称密钥。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); +let keyGenPromise = asyKeyGenerator.generateKeyPair(); +keyGenPromise.then( keyPair => { + console.info("generateKeyPair success."); +}).catch(error => { + console.error("generateKeyPair error."); +}); +``` + +### convertKey + +convertKey(pubKey : DataBlob, priKey : DataBlob, callback : AsyncCallback\) : void + +异步获取指定数据生成非对称密钥,通过注册回调函数获取结果。详情请看下方**密钥转换说明** + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ----------- | ---- | ------------------------------ | +| pubKey | [DataBlob](#datablob) | 是 | 指定的公钥材料。如果公钥不需要转换,可直接传入null。 | +| priKey | [DataBlob](#datablob) | 是 | 指定的私钥材料。如果私钥不需要转换,可直接传入null。 | +| callback | AsyncCallback\<[KeyPair](#keypair)> | 是 | 回调函数,用于获取非对称密钥。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" +let pubKey; // X.509规范、DER格式的公钥数据,此处省略数据。 +let priKey; // PKCS#8规范、DER格式的私钥数据,此处省略数据。 +let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); +asyKeyGenerator.convertKey(pubKey, priKey, (err, keyPair) => { + if (err) { + console.error("convertKey: error."); + return; + } + console.info("convertKey: success."); +}) +``` + +### convertKey + +convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise\ + +异步获取指定数据生成非对称密钥,通过Promise获取结果。详情请看下方**密钥转换说明** + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | -------- | ---- | ---------------- | +| pubKey | DataBlob | 是 | 指定的公钥材料。如果公钥不需要转换,可直接传入null | +| priKey | DataBlob | 是 | 指定的私钥材料。如果私钥不需要转换,可直接传入null | + +**返回值:** + +| 类型 | 说明 | +| ----------------- | --------------------------------- | +| Promise\<[KeyPair](#keypair)> | 使用Promise的方式获取非对称密钥。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); +let pubKey; // pubKey为使用非对称密钥生成器生成的非对称密钥的公钥对象,此处省略生成过程 +let priKey; // priKey为使用非对称密钥生成器生成的非对称密钥的私钥对象,此处省略生成过程 +let keyGenPromise = asyKeyGenerator.convertKey(pubKey, priKey); +keyGenPromise.then( keyPair => { + console.info("convertKey success."); +}).catch(error => { + console.error("convertKey error."); +}); +``` + +**密钥转换说明** + +1. 非对称密钥(RSA、ECC)的公钥和私钥调用getEncoded()方法后,分别返回X.509格式和PKCS#8格式的二进制数据,此数据可用于跨应用传输或持久化存储。 +2. 当调用convertKey方法将外来二进制数据转换为算法库非对称密钥对象时,公钥应满足ASN.1语法、X.509规范、DER编码格式,私钥应满足ASN.1语法、PKCS#8规范、DER编码格式。 +3. convertKey方法中,公钥和密钥二进制数据非必选项,可单独传入公钥或私钥的数据,生成对应只包含公钥或私钥的KeyPair对象。 + +## cryptoFramework.createCipher + +createCipher(transformation : string) : Cipher + +通过指定算法名称,获取相应的[Cipher](#cipher)实例。
支持的规格详见框架概述“[加解密规格](../../security/cryptoFramework-overview.md#加解密规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------------- | ------ | ---- | ------------------------------------------------------------ | +| 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对象进行加解密操作)。 + +**返回值:** + +| 类型 | 说明 | +| ----------------- | ------------------------ | +| [Cipher](#cipher) | 返回加解密生成器的对象。 | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let cipherAlgName = '3DES192|ECB|PKCS7'; +var cipher; +try { + cipher = cryptoFramework.createCipher(cipherAlgName); + console.info(`cipher algName: ${cipher.algName}`); +} catch (error) { + console.error(`createCipher failed, ${error.code}, ${error.message}`); +} +``` + +## Cipher + +提供加解密的算法操作功能,按序调用本类中的[init()](#init-2)、[update()](#update-4)、[doFinal()](#dofinal-2)方法,可以实现对称加密/对称解密/非对称加密/非对称解密。
完整的加解密流程示例可参考开发指导中的“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”一节。 + +一次完整的加/解密流程在对称加密和非对称加密中略有不同: + +- 对称加解密:init为必选,update为可选(且允许多次update加/解密大数据),doFinal为必选;doFinal结束后可以重新init开始新一轮加/解密流程。 +- RSA非对称加解密:init为必选,不支持update操作,doFinal为必选(允许连续多次doFinal加/解密大数据);RSA不支持重复init,切换加解密模式或填充方式时,需要重新创建Cipher对象。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ---------------------------- | +| algName | string | 是 | 否 | 加解密生成器指定的算法名称。 | + +### init + +init(opMode : CryptoMode, key : Key, params : ParamsSpec, callback : AsyncCallback\) : void + +初始化加解密的[cipher](#cipher)对象,通过注册回调函数获取结果。
必须在使用[createCipher](#cryptoframeworkcreatecipher)创建[Cipher](#cipher)实例后,才能使用本函数。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------- | ---- | ------------------------------------------------------------ | +| opMode | [CryptoMode](#cryptomode) | 是 | 加密或者解密模式。 | +| key | [Key](#key) | 是 | 指定加密或解密的密钥。 | +| params | [ParamsSpec](#paramsspec) | 是 | 指定加密或解密的参数,对于ECB等没有参数的算法模式,可以传入null。 | +| callback | AsyncCallback\ | 是 | 回调函数。当初始化成功,err为undefined,否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | --------------------------------------------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error.| + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; +let symKey; // 此处省略生成对称密钥的过程 +let cipher; // 此处省略生成cipher实例的过程 + +cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, null, (err, ) => { + if (err) { + console.error(`Failed to init cipher, ${err.code}, ${err.message}`); + } else { + console.info(`Init cipher success`); + // 此处进行update等后续操作 + } +}) +``` + +### init + +init(opMode : CryptoMode, key : Key, params : ParamsSpec) : Promise\ + +初始化加解密的cipher对象,通过Promise获取结果。
必须在使用[createCipher](#cryptoframeworkcreatecipher)创建[Cipher](#cipher)实例后,才能使用本函数。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------- | ---- | ------------------------------------------------------------ | +| opMode | [CryptoMode](#cryptomode) | 是 | 加密或者解密模式。 | +| key | [Key](#key) | 是 | 指定加密或解密的密钥。 | +| params | [ParamsSpec](#paramsspec) | 是 | 指定加密或解密的参数,对于ECB等没有参数的算法模式,可以传入null。 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | -------------------------------------- | +| Promise\ | Promise对象。无返回结果的Promise对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error.| + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; +let symKey; // 此处省略生成对称密钥的过程 +let cipher; // 此处省略生成cipher实例的过程 +cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, null) +.then(() => { + console.info(`Init cipher success`); + // 此处进行update等后续操作 +}, error => { + console.error(`Failed to init cipher, ${error.code}, ${error.message}`); +}) +``` + +### update + +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的方式传入数据。
AES使用多次update操作的示例代码详见开发指导“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”。 +> 3. RSA非对称加解密不支持update操作。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------- | ---- | ------------------------------------------------------------ | +| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。data不能为null,也不允许传入{data : Uint8Array(空) } | +| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数。当更新加/解密数据成功,err为undefined,data为此次更新的加/解密结果DataBlob;否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ------------------------------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +function stringToUint8Array(str) { + let arr = []; + for (let i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + return new Uint8Array(arr); +} + +let cipher; // 此处省略生成cipher实例的过程 +// 此处省略init()过程 +let plainText = {data : stringToUint8Array('this is test!')}; +cipher.update(plainText, (err, output) => { // 加密过程举例 + if (err) { + console.error(`Failed to update cipher`); + } else { + console.info(`Update cipher success`); + if (output != null) { + // 拼接output.data到密文 + } + // 此处进行doFinal等后续操作 + } +}) +``` + +### update + +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的方式传入数据。
AES使用多次update操作的示例代码详见开发指导“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”。 +> 3. RSA非对称加解密不支持update操作。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---- | --------------------- | ---- | -------------------- | +| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。data不能为null,也不允许传入{data : Uint8Array(空) } | + +**返回值:** + +| 类型 | 说明 | +| ------------------------------- | ------------------------------------------------ | +| Promise\<[DataBlob](#datablob)> | Promise对象,返回此次更新的加/解密结果DataBlob。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +function stringToUint8Array(str) { + let arr = []; + for (let i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + return new Uint8Array(arr); +} + +let cipher; // 此处省略生成cipher实例的过程 +// 此处省略init()过程 +let plainText = {data : stringToUint8Array('this is test!')}; +cipher.update(plainText) +.then((output) => { + console.info(`Update cipher success.`); + if (output != null) { + // 拼接output.data到密文 + } + // 此处进行doFinal等后续操作 +}, error => { + console.info(`Update cipher failed.`); +}) +``` + +### doFinal + +doFinal(data : DataBlob, callback : AsyncCallback\) : void + +(1)在对称加解密中,doFinal加/解密(分组模式产生的)剩余数据和本次传入的数据,最后结束加密或者解密数据操作,通过注册回调函数获取加密或者解密数据。
如果数据量较小,可以在doFinal中一次性传入数据,而不使用update;如果在本次加解密流程中,已经使用[update](#update-4)传入过数据,可以在doFinal的data参数处传入null。
根据对称加解密的模式不同,doFinal的输出有如下区别: + +- 对于GCM和CCM模式的对称加密:一次加密流程中,如果将每一次update和doFinal的结果拼接起来,会得到“密文+authTag”,即末尾的16字节(GCM模式)或12字节(CCM模式)是authTag,而其余部分均为密文。(也就是说,如果doFinal的data参数传入null,则doFinal的结果就是authTag)
authTag需要填入解密时的[GcmParamsSpec](#gcmparamsspec)或[CcmParamsSpec](#ccmparamsspec);密文则作为解密时的入参data。 +- 对于其他模式的对称加解密、GCM和CCM模式的对称解密:一次加/解密流程中,每一次update和doFinal的结果拼接起来,得到完整的明文/密文。 + +(2)在RSA非对称加解密中,doFinal加/解密本次传入的数据,通过注册回调函数获取加密或者解密数据。如果数据量较大,可以多次调用doFinal,拼接结果得到完整的明文/密文。 + +> **说明:** +> 1. 对称加解密中,调用doFinal标志着一次加解密流程已经完成,即[Cipher](#cipher)实例的状态被清除,因此当后续开启新一轮加解密流程时,需要重新调用[init()](init-2)并传入完整的参数列表进行初始化
(比如即使是对同一个Cipher实例,采用同样的对称密钥,进行加密然后解密,则解密中调用init的时候仍需填写params参数,而不能直接省略为null)。 +> 2. 如果遇到解密失败,需检查加解密数据和[init](#init-2)时的参数是否匹配,包括GCM模式下加密得到的authTag是否填入解密时的GcmParamsSpec等。 +> 3. doFinal的结果可能为null,因此使用.data字段访问doFinal结果的具体数据前,请记得先判断结果是否为null,避免产生异常。 +> 4. RSA非对称加解密时多次doFinal操作的示例代码详见开发指导“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------- | ---- | ------------------------------------------------------------ | +| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。在对称加解密中允许为null,但不允许传入{data : Uint8Array(空) }。 | +| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 回调函数。当最终加/解密数据成功,err为undefined,data为剩余数据的加/解密结果DataBlob;否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ----------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +let cipher; // 此处省略生成cipher实例的过程 +let data; // 此处省略准备待加密/解密数据的过程 +// 此处省略init()和update()过程 +cipher.doFinal(data, (err, output) => { + if (err) { + console.error(`Failed to finalize cipher, ${err.code}, ${err.message}`); + } else { + console.info(`Finalize cipher success`); + if (output != null) { + // 拼接output.data得到完整的明文/密文(及authTag) + } + } +}) +``` + +### doFinal + +doFinal(data : DataBlob) : Promise\ + +(1)在对称加解密中,doFinal加/解密(分组模式产生的)剩余数据和本次传入的数据,最后结束加密或者解密数据操作,通过Promise获取加密或者解密数据。
如果数据量较小,可以在doFinal中一次性传入数据,而不使用update;如果在本次加解密流程中,已经使用[update](#update-4)传入过数据,可以在doFinal的data参数处传入null。
根据对称加解密的模式不同,doFinal的输出有如下区别: + +- 对于GCM和CCM模式的对称加密:一次加密流程中,如果将每一次update和doFinal的结果拼接起来,会得到“密文+authTag”,即末尾的16字节(GCM模式)或12字节(CCM模式)是authTag,而其余部分均为密文。(也就是说,如果doFinal的data参数传入null,则doFinal的结果就是authTag)
authTag需要填入解密时的[GcmParamsSpec](#gcmparamsspec)或[CcmParamsSpec](#ccmparamsspec);密文则作为解密时的入参data。 +- 对于其他模式的对称加解密、GCM和CCM模式的对称解密:一次加/解密流程中,每一次update和doFinal的结果拼接起来,得到完整的明文/密文。 + +(2)在RSA非对称加解密中,doFinal加/解密本次传入的数据,通过Promise获取加密或者解密数据。如果数据量较大,可以多次调用doFinal,拼接结果得到完整的明文/密文。 + +> **说明:** +> 1. 对称加解密中,调用doFinal标志着一次加解密流程已经完成,即[Cipher](#cipher)实例的状态被清除,因此当后续开启新一轮加解密流程时,需要重新调用[init()](init-2)并传入完整的参数列表进行初始化
(比如即使是对同一个Cipher实例,采用同样的对称密钥,进行加密然后解密,则解密中调用init的时候仍需填写params参数,而不能直接省略为null)。 +> 2. 如果遇到解密失败,需检查加解密数据和[init](#init-2)时的参数是否匹配,包括GCM模式下加密得到的authTag是否填入解密时的GcmParamsSpec等。 +> 3. doFinal的结果可能为null,因此使用.data字段访问doFinal结果的具体数据前,请记得先判断结果是否为null,避免产生异常。 +> 4. RSA非对称加解密时多次doFinal操作的示例代码详见开发指导“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---- | --------------------- | ---- | -------------------- | +| data | [DataBlob](#datablob) | 是 | 加密或者解密的数据。data参数允许为null,但不允许传入{data : Uint8Array(空) } | + +**返回值:** + +| 类型 | 说明 | +| ------------------------------- | ------------------------------------------------ | +| Promise\<[DataBlob](#datablob)> | Promise对象,返回剩余数据的加/解密结果DataBlob。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +**示例:** + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +let cipher; // 此处省略生成cipher实例的过程 +let data; // 此处省略准备待加密/解密数据的过程 +// 此处省略init()和update()过程 +cipher.doFinal(data) +.then(output => { + console.info(`Finalize cipher success`); + if (output != null) { + // 拼接output.data得到完整的明文/密文(及authTag) + } +}, error => { + console.error(`Failed to finalize cipher, ${error.code}, ${error.message}`); +}) +``` + +**使用RSA加密的callback完整示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + let arr = []; + for (let i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + return new Uint8Array(arr); +} + +let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); +let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); +rsaGenerator.generateKeyPair(function (err, keyPair) { + let pubKey = keyPair.pubKey; + cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null, function (err, data) { + let plainText = "this is cipher text"; + let input = {data : stringToUint8Array(plainText) }; + cipher.doFinal(input, function (err, data) { + AlertDialog.show({ message : "EncryptOutPut is " + data.data} ); + }); + }); +}); +``` + +**使用RSA加密的promise完整示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + let arr = []; + for (let i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + return new Uint8Array(arr); +} + +let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); +let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); +let keyGenPromise = rsaGenerator.generateKeyPair(); +keyGenPromise.then(rsaKeyPair => { + let pubKey = rsaKeyPair.pubKey; + return cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null); // 传入私钥和DECRYPT_MODE可初始化解密模式 +}).then(() => { + let plainText = "this is cipher text"; + let input = { data : stringToUint8Array(plainText) }; + return cipher.doFinal(input); +}).then(dataBlob => { + console.info("EncryptOutPut is " + dataBlob.data); +}); +``` + +> **说明:** +> 更多加解密流程的完整示例可参考开发指导中的“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”一节。 + +## cryptoFramework.createSign + +createSign(algName : string) : Sign + +Sign实例生成。
支持的规格详见框架概述“[签名验签规格](../../security/cryptoFramework-overview.md#签名验签规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------------------------------------ | +| algName | string | 是 | 指定签名算法:RSA或ECC,使用RSA PKCS1模式时需要设置摘要,使用RSA PSS模式时需要设置摘要和掩码摘要 | + +**返回值**: + +| 类型 | 说明 | +| ---- | -------------------------------- | +| Sign | 返回由输入算法指定生成的Sign对象 | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let signer1 = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); + +let singer2 = cryptoFramework.createSign("RSA1024|PSS|SHA256|MGF1_SHA256") +``` + +## Sign + +Sign类,使用Sign方法之前需要创建该类的实例进行操作,通过createSign(algName : string) : Sign方法构造此实例。Sign类不支持重复初始化,当业务方需要使用新密钥签名时,需要重新创建新Sign对象并调用init初始化。 + +业务方使用时,在createSign时确定签名的模式,调用init接口设置密钥。 + +当待签名数据较短时,可在init初始化后直接调用sign接口传入原文数据进行签名。 + +当待签名数据较长时,可通过update接口分段传入切分后的原文数据,最后调用sign接口对整体原文数据进行签名。 + +当使用update分段传入原文时,sign接口支持传null,业务方可在循环中调用update接口,循环结束后调用sign进行签名。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ---------------------------- | +| algName | string | 是 | 否 | 签名指定的算法名称。 | + +### init + +init(priKey : PriKey, callback : AsyncCallback\) : void + +使用私钥初始化Sign对象,Callback形式,Sign类暂不支持重复init + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------------- | +| priKey | [PriKey](#prikey) | 是 | 用于Sign的初始化 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### init + +init(priKey : PriKey) : Promise\ + +使用私钥初始化Sign对象,Promise形式,Sign类暂不支持重复init + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---- | ---- | ---------------- | +| priKey | [PriKey](#prikey) | 是 | 用于Sign的初始化 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### update + +update(data : DataBlob, callback : AsyncCallback\) : void + +追加待签名数据,callback方式 + +> **说明:** +> Sign多次调用update的代码示例详见开发指导“[使用签名验签操作](../../security/cryptoFramework-guidelines.md#使用签名验签操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------- | +| data | [DataBlob](#datablob)| 是 | 传入的消息 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### update + +update(data : DataBlob) : Promise\; + +追加待签名数据,promise方式 + +> **说明:** +> Sign多次调用update的代码示例详见开发指导“[使用签名验签操作](../../security/cryptoFramework-guidelines.md#使用签名验签操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | -------- | ---- | ---------- | +| data | [DataBlob](#datablob) | 是 | 传入的消息 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### sign + +sign(data : DataBlob, callback : AsyncCallback\) : void + +对数据进行签名,返回签名结果,callback方式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------- | +| data | [DataBlob](#datablob) | 是 | 传入的消息 | +| callback | AsyncCallback\<[DataBlob](#datablob) > | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### sign + +sign(data : DataBlob) : Promise\ + +对数据进行签名,返回签名结果,promise方式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | -------- | ---- | ---------- | +| data | [DataBlob](#datablob) | 是 | 传入的消息 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +**callback示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpArray = new Uint8Array(arr); + return tmpArray; +} + +let globalKeyPair; +let SignMessageBlob; +let plan1 = "This is Sign test plan1"; // The first segment of data. +let plan2 = "This is Sign test plan2"; // The second segment of fata. +let input1 = { data : stringToUint8Array(plan1) }; +let input2 = { data : stringToUint8Array(plan2) }; + +function signMessageCallback() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); + rsaGenerator.generateKeyPair(function (err, keyPair) { + globalKeyPair = keyPair; + let priKey = globalKeyPair.priKey; + signer.init(priKey, function (err, data) { + signer.update(input1, function (err, data) { // add first segment of data + signer.sign(input2, function (err, data) { // add second segment of data, sign input1 and input2 + SignMessageBlob = data; + AlertDialog.show({message : "res" + SignMessageBlob.data}); + }); + }); + }); + }); +} +``` + +**promise示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpArray = new Uint8Array(arr); + return tmpArray; +} + +let globalKeyPair; +let SignMessageBlob; +let plan1 = "This is Sign test plan1"; // The first segment of data. +let plan2 = "This is Sign test plan2"; // The second segment of fata. +let input1 = { data : stringToUint8Array(plan1) }; +let input2 = { data : stringToUint8Array(plan2) }; + +function signMessagePromise() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); + let keyGenPromise = rsaGenerator.generateKeyPair(); + keyGenPromise.then( keyPair => { + globalKeyPair = keyPair; + let priKey = globalKeyPair.priKey; + return signer.init(priKey); + }).then(() => { + return signer.update(input1); // add first segment of data + }).then(() => { + return signer.sign(input2); // add second segment of data, sign input1 and input2 + }).then(dataBlob => { + SignMessageBlob = dataBlob; + console.info("sign output is " + SignMessageBlob.data); + AlertDialog.show({message : "output" + SignMessageBlob.data}); + }); +} +``` + +## cryptoFramework.createVerify + +createVerify(algName : string) : Verify + +Verify实例生成。
支持的规格详见框架概述“[签名验签规格](../../security/cryptoFramework-overview.md#签名验签规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------------------------------------ | +| algName | string | 是 | 指定签名算法:RSA或ECC,使用RSA PKCS1模式时需要设置摘要,使用RSA PSS模式时需要设置摘要和掩码摘要 | + +**返回值**: + +| 类型 | 说明 | +| ------ | ---------------------------------- | +| Verify | 返回由输入算法指定生成的Verify对象 | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let verifyer1 = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); + +let verifyer2 = cryptoFramework.createVerify("RSA1024|PSS|SHA256|MGF1_SHA256") +``` + +## Verify + +Verify类,使用Verify方法之前需要创建该类的实例进行操作,通过createVerify(algName : string) : Verify方法构造此实例。 + +Verify类不支持重复初始化,当业务方需要使用新密钥验签时,需要重新创建新Verify对象并调用init初始化。 + +业务方使用时,在createVerify时确定验签的模式,调用init接口设置密钥。 + +当签名数据较短时,可在init初始化后直接调用verify接口传入签名数据和原文进行验签。 + +当签名数据较长时,可通过update接口分段传入签名数据,最后调用verify接口对整体签名数据进行验签。 + +当使用update分段传入签名数据时,verify接口的签名数据支持传null,业务方可在循环中调用update接口,循环结束后调用verify传入原文进行验签。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ---------------------------- | +| algName | string | 是 | 否 | 验签指定的算法名称。 | + + + +### init + +init(pubKey : PubKey, callback : AsyncCallback\) : void + +传入公钥初始化Verify对象,Callback形式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------------------------- | +| pubKey | [PubKey](#pubkey) | 是 | 公钥对象,用于Verify的初始化 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### init + +init(pubKey : PubKey) : Promise\ + +传入公钥初始化Verify对象,Promise形式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---- | ---- | ---------------------------- | +| pubKey | [PubKey](#pubkey) | 是 | 公钥对象,用于Verify的初始化 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### update + +update(data : DataBlob, callback : AsyncCallback\) : void + +追加待验签数据,callback方式 + +> **说明:** +> Verify多次调用update的代码示例详见开发指导“[使用签名验签操作](../../security/cryptoFramework-guidelines.md#使用签名验签操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------- | +| data | [DataBlob](#datablob)| 是 | 传入的消息 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### update + +update(data : DataBlob) : Promise\; + +追加待验签数据,promise方式 + +> **说明:** +> Verify多次调用update的代码示例详见开发指导“[使用签名验签操作](../../security/cryptoFramework-guidelines.md#使用签名验签操作)”。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | -------- | ---- | ---------- | +| data | [DataBlob](#datablob) | 是 | 传入的消息 | + +**返回值:** + +| 类型 | 说明 | +| -------------- | ----------- | +| Promise\ | Promise对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### verify + +verify(data : DataBlob, signatureData : DataBlob, callback : AsyncCallback\) : void + +对数据进行验签,返回验签结果,callback方式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------- | -------------------- | ---- | ---------- | +| data | [DataBlob](#datablob) | 是 | 传入的消息 | +| signatureData | [DataBlob](#datablob) | 是 | 签名数据 | +| callback | AsyncCallback\ | 是 | 回调函数 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### verify + +verify(data : DataBlob, signatureData : DataBlob) : Promise\ + +对数据进行验签,返回验签结果,promise方式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------- | -------- | ---- | ---------- | +| data | [DataBlob](#datablob) | 是 | 传入的消息 | +| signatureData | [DataBlob](#datablob) | 是 | 签名数据 | + +**返回值:** + +| 类型 | 说明 | +| ----------------- | ---------------------------- | +| Promise\ | 异步返回值,代表验签是否通过 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +**callback示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 +let input1 = null; +let input2 = null; +let signMessageBlob = null; // 签名后的数据,此处省略 +let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA25"); +verifyer.init(globalKeyPair.pubKey, function (err, data) { + verifyer.update(input1, function(err, data) { + verifyer.verify(input2, signMessageBlob, function(err, data) { + console.info("verify result is " + data); + }) + }); +}) +``` + +**promise示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 +let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); +let verifyInitPromise = verifyer.init(globalKeyPair.pubKey); +let input1 = null; +let input2 = null; +let signMessageBlob = null; // 签名后的数据,此处省略 +verifyInitPromise.then(() => { + return verifyer.update(input1); +}).then(() => { + return verifyer.verify(input2, signMessageBlob); +}).then(res => { + console.log("Verify result is " + res); +}); +``` + +## cryptoFramework.createKeyAgreement + +createKeyAgreement(algName : string) : KeyAgreement + +KeyAgreement实例生成。
支持的规格详见框架概述“[密钥协商规格](../../security/cryptoFramework-overview.md#密钥协商规格)”一节。 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ------ | ---- | ------------------------------- | +| algName | string | 是 | 指定密钥协商算法:目前仅支持ECC | + +**返回值**: + +| 类型 | 说明 | +| ------------ | ---------------------------------------- | +| KeyAgreement | 返回由输入算法指定生成的KeyAgreement对象 | + +**示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let keyAgreement = cryptoFramework.createKeyAgreement("ECC256"); + +``` + +## KeyAgreement + +KeyAgreement类,使用密钥协商方法之前需要创建该类的实例进行操作,通过createKeyAgreement(algName : string) : KeyAgreement方法构造此实例。 + +### 属性 + +**系统能力:** SystemCapability.Security.CryptoFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------- | ------ | ---- | ---- | ---------------------------- | +| algName | string | 是 | 否 | 密钥协商指定的算法名称。 | + +### generateSecret + +generateSecret(priKey : PriKey, pubKey : PubKey, callback : AsyncCallback\) : void + +基于传入的私钥与公钥进行密钥协商,返回共享秘密,Callback形式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------ | ---- | ---------------------- | +| priKey | [PriKey](#prikey) | 是 | 设置密钥协商的私钥输入 | +| pubKey | [PubKey](#pubkey) | 是 | 设置密钥协商的公钥输入 | +| callback | AsyncCallback\<[DataBlob](#datablob)> | 是 | 异步接受共享秘密的回调 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +### generateSecret + +generateSecret(priKey : PriKey, pubKey : PubKey) : Promise\ + +基于传入的私钥与公钥进行密钥协商,返回共享秘密,Promise形式 + +**系统能力:** SystemCapability.Security.CryptoFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ---------------------- | +| priKey | [PriKey](#prikey) | 是 | 设置密钥协商的私钥输入 | +| pubKey | [PubKey](#pubkey) | 是 | 设置密钥协商的公钥输入 | + +**返回值:** + +| 类型 | 说明 | +| ------------------ | -------- | +| Promise\<[DataBlob](#datablob)> | 共享秘密 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | ---------------------- | +| 17620001 | memory error. | +| 17620002 | runtime error. | +| 17630001 | crypto operation error. | + +**callback示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 +let keyAgreement = cryptoFramework.createKeyAgreement("ECC256"); +keyAgreement.generateSecret(globalKeyPair.priKey, globalKeyPair.pubKey, function (err, secret) { + if (err) { + console.error("keyAgreement error."); + return; + } + console.info("keyAgreement output is " + secret.data); +}); +``` + +**promise示例:** + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let globalKeyPair; // globalKeyPair为使用非对称密钥生成器生成的非对称密钥对象,此处省略生成过程 +let keyAgreement = cryptoFramework.createKeyAgreement("ECC256"); +let keyAgreementPromise = keyAgreement.generateSecret(globalKeyPair.priKey, globalKeyPair.pubKey); +keyAgreementPromise.then((secret) => { + console.info("keyAgreement output is " + secret.data); +}).catch((error) => { + console.error("keyAgreement error."); +}); +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md b/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md index 108c56317112cfdb270724569c6926c1e10f8004..c8e4eb4098ce682dd9d1736cad2bc637d2092fd0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md @@ -64,7 +64,7 @@ createDataShareHelper(context: Context, uri: string, callback: AsyncCallback< **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let dataShareHelper; @@ -114,7 +114,7 @@ createDataShareHelper(context: Context, uri: string): Promise<DataShareHelper **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let dataShareHelper; @@ -153,7 +153,7 @@ on(type: 'dataChange', uri: string, callback: AsyncCallback<void>): void **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' function onCallback() { console.info("**** Observer on callback ****"); } @@ -180,7 +180,7 @@ off(type: 'dataChange', uri: string, callback?: AsyncCallback<void>): void **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' function offCallback() { console.info("**** Observer off callback ****"); } @@ -207,7 +207,7 @@ insert(uri: string, value: ValuesBucket, callback: AsyncCallback<number>): **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); const valueBucket = { "name": "rose", @@ -251,7 +251,7 @@ insert(uri: string, value: ValuesBucket): Promise<number> **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); const valueBucket = { "name": "rose1", @@ -288,7 +288,7 @@ delete(uri: string, predicates: dataSharePredicates.DataSharePredicates, callbac **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); @@ -331,7 +331,7 @@ delete(uri: string, predicates: dataSharePredicates.DataSharePredicates): Promis **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); @@ -368,7 +368,7 @@ query(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); @@ -413,7 +413,7 @@ query(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); @@ -451,7 +451,7 @@ update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); @@ -501,7 +501,7 @@ update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' import dataSharePredicates from '@ohos.data.dataSharePredicates' let uri = ("datashare:///com.samples.datasharetest.DataShare"); @@ -543,7 +543,7 @@ batchInsert(uri: string, values: Array<ValuesBucket>, callback: AsyncCallb **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let vbs = new Array({"name": "roe11", "age": 21, "salary": 20.5,}, {"name": "roe12", "age": 21, "salary": 20.5,}, @@ -585,7 +585,7 @@ batchInsert(uri: string, values: Array<ValuesBucket>): Promise<number&g **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); let vbs = new Array({"name": "roe11", "age": 21, "salary": 20.5,}, {"name": "roe12", "age": 21, "salary": 20.5,}, @@ -619,7 +619,7 @@ normalizeUri(uri: string, callback: AsyncCallback<string>): void **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.normalizeUri(uri, (err, data) => { if (err != undefined) { @@ -653,7 +653,7 @@ normalizeUri(uri: string): Promise<string> **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.normalizeUri(uri).then((data) => { console.log("normalizeUri = " + data); @@ -680,7 +680,7 @@ denormalizeUri(uri: string, callback: AsyncCallback<string>): void **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.denormalizeUri(uri, (err, data) => { if (err != undefined) { @@ -714,7 +714,7 @@ denormalizeUri(uri: string): Promise<string> **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.denormalizeUri(uri).then((data) => { console.log("denormalizeUri = " + data); @@ -741,7 +741,7 @@ notifyChange(uri: string, callback: AsyncCallback<void>): void **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.notifyChange(uri, () => { console.log("***** notifyChange *****"); @@ -771,7 +771,7 @@ notifyChange(uri: string): Promise<void> **示例:** ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let uri = ("datashare:///com.samples.datasharetest.DataShare"); dataShareHelper.notifyChange(uri); ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md b/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md index a62b3e2d0f7970d72b8f660585911a4b0bb226e0..8c1ce80471bd321380e9bc59c295edc71b490369 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md @@ -53,10 +53,10 @@ Stage模型示例: ```ts // 导入模块 import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -156,10 +156,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -218,10 +218,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -294,10 +294,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -357,10 +357,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -413,10 +413,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -463,10 +463,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -517,10 +517,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -579,10 +579,10 @@ g_object.save("local", (result) => { Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -627,6 +627,8 @@ save(deviceId: string): Promise<SaveSuccessResponse> **示例:** +FA模型示例 + ```js import distributedObject from '@ohos.data.distributedDataObject'; import featureAbility from '@ohos.ability.featureAbility'; @@ -643,13 +645,14 @@ g_object.save("local").then((result) => { console.error("save failed"); }); ``` +Stage模型示例 ```js import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context } @@ -712,10 +715,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability { +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { context = this.context } @@ -786,10 +789,10 @@ Stage模型示例 ```ts import distributedObject from '@ohos.data.distributedDataObject'; -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; // 获取context let context; -class MainAbility extends Ability { +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { context = this.context } diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md b/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md index 94a29db19d58c1470573338889d8da8c6d1a0430..8a956e0f58c796b676fe6575b9098def7dd5c5c0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md @@ -69,9 +69,9 @@ Stage模型示例: ```ts // 获取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; } @@ -139,9 +139,9 @@ Stage模型示例: ```ts // 获取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; } @@ -215,9 +215,9 @@ Stage模型示例: ```ts // 获取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; } @@ -294,9 +294,9 @@ Stage模型示例: ```ts // 获取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; } @@ -358,9 +358,9 @@ Stage模型示例: ```ts // 获取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; } @@ -428,9 +428,9 @@ Stage模型示例: ```ts // 获取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/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md index 5989299983dc5d16b4a2061454ff57e9af5981b1..bb8dd19192f6374d0f7026f3071d9db408386b5c 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,51 +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 - } - 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 Ability from '@ohos.application.Ability' -let context -class MainAbility extends Ability{ - onWindowStageCreate(windowStage){ - context = this.context - } -} - -// 获取context后调用getRdbStore -const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 +import UIAbility from '@ohos.app.ability.UIAbility' + +class EntryAbility extends UIAbility { + 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 - } - console.log("Get RdbStore successfully.") -}) ``` -## data_rdb.getRdbStore +## relationalStore.getRdbStore getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore> @@ -127,49 +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) => { - 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 Ability from '@ohos.application.Ability' -let context -class MainAbility extends Ability{ - onWindowStageCreate(windowStage){ - context = this.context - } -} - -// 获取context后调用getRdbStore -const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 +import UIAbility from '@ohos.app.ability.UIAbility' + +class EntryAbility extends UIAbility { + 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}`); + }) + } } -let promise = data_rdb.getRdbStore(context, STORE_CONFIG); -promise.then(async (rdbStore) => { - 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 @@ -198,43 +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 Ability from '@ohos.application.Ability' -let context -class MainAbility extends Ability{ - onWindowStageCreate(windowStage){ - context = this.context - } -} +import UIAbility from '@ohos.app.ability.UIAbility' -// 获取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.") -}) +class EntryAbility extends UIAbility { + 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.`); + }) + } +} ``` -## data_rdb.deleteRdbStore +## relationalStore.deleteRdbStore deleteRdbStore(context: Context, name: string): Promise<void> @@ -268,38 +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 Ability from '@ohos.application.Ability' -let context -class MainAbility extends Ability{ - onWindowStageCreate(windowStage){ - context = this.context - } +import UIAbility from '@ohos.app.ability.UIAbility' + +class EntryAbility extends UIAbility { + 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 @@ -391,7 +390,7 @@ constructor(name: string) **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); ``` ### inDevices @@ -418,8 +417,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 @@ -440,8 +439,8 @@ inAllDevices(): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.inAllDevices() +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.inAllDevices(); ``` ### equalTo @@ -469,8 +468,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"); ``` @@ -499,8 +498,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"); ``` @@ -522,7 +521,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) @@ -548,7 +547,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) @@ -574,7 +573,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") @@ -597,7 +596,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) @@ -627,8 +626,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 @@ -655,8 +654,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 @@ -683,8 +682,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 @@ -710,8 +709,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 @@ -737,8 +736,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 @@ -765,8 +764,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 @@ -793,8 +792,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 @@ -822,8 +821,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 @@ -851,8 +850,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 @@ -879,8 +878,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 @@ -907,8 +906,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 @@ -935,8 +934,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 @@ -963,8 +962,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 @@ -990,8 +989,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 @@ -1017,8 +1016,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 @@ -1038,8 +1037,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 @@ -1065,8 +1064,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 @@ -1092,8 +1091,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 @@ -1119,8 +1118,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 @@ -1147,8 +1146,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 @@ -1175,8 +1174,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 @@ -1203,8 +1202,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 @@ -1233,19 +1232,21 @@ 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}`); }) ``` + + ### insert insert(table: string, values: ValuesBucket):Promise<number> @@ -1271,19 +1272,20 @@ 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}`); }) ``` + ### batchInsert batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCallback<number>):void @@ -1304,31 +1306,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}`); }) ``` @@ -1357,30 +1359,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}`); }) ``` @@ -1404,22 +1406,23 @@ 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}`); }) ``` + ### update update(values: ValuesBucket, predicates: RdbPredicates):Promise<number> @@ -1445,21 +1448,22 @@ 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}`); }) ``` + ### update update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback<number>):void @@ -1488,15 +1492,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}`); }) ``` @@ -1529,18 +1533,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}`); }) ``` @@ -1562,14 +1566,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}`); }) ``` @@ -1596,13 +1600,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}`); }) ``` @@ -1628,14 +1632,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}`); }) ``` @@ -1666,13 +1670,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}`); }) ``` @@ -1695,15 +1699,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}`); }) ``` @@ -1731,14 +1735,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}`); }) ``` @@ -1765,15 +1769,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}`); }) ``` @@ -1805,14 +1809,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}`); }) ``` @@ -1837,17 +1841,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 @@ -1876,14 +1881,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}`); }) ``` @@ -1906,13 +1911,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}`); }) ``` @@ -1940,12 +1945,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}`); }) ``` @@ -1969,12 +1974,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.`); }) ``` @@ -2003,11 +2008,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}`); }) ``` @@ -2023,19 +2028,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(); }) ``` @@ -2051,19 +2062,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(); }) ``` @@ -2079,24 +2096,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(); + } }) ``` @@ -2118,12 +2142,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.`); }) ``` @@ -2150,11 +2174,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}`); }) ``` @@ -2176,12 +2200,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.`); }) ``` @@ -2208,11 +2232,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}`); }) ``` @@ -2236,12 +2260,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.`); }) ``` @@ -2270,11 +2294,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}`); }) ``` @@ -2299,12 +2323,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}`); }) ``` @@ -2334,11 +2358,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}`); }) ``` @@ -2363,17 +2387,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]}`); + } }) ``` @@ -2403,16 +2427,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}`); }) ``` @@ -2436,14 +2460,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}`); } ``` @@ -2467,14 +2491,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}`); } ``` @@ -2484,16 +2508,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}`); }); ``` @@ -2618,13 +2641,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}`); }); ``` @@ -2659,13 +2682,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}`); }); ``` @@ -2695,13 +2718,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}`); }); ``` @@ -2730,13 +2753,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}`); }); ``` @@ -2765,13 +2788,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}`); }); ``` @@ -2800,13 +2823,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}`); }); ``` @@ -2894,9 +2917,9 @@ getLong(columnIndex: number): number **返回值:** -| 类型 | 说明 | -| ------ | -------------------------- | -| number | 以Long形式返回指定列的值。 | +| 类型 | 说明 | +| ------ | ------------------------------------------------------------ | +| number | 以Long形式返回指定列的值。
该接口支持的数据范围是:Number.MIN_SAFE_INTEGER ~ Number.MAX_SAFE_INTEGER,若超出该范围,建议使用[getDouble](#getdouble)。 | **错误码:** @@ -2991,12 +3014,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-data-resultset.md b/zh-cn/application-dev/reference/apis/js-apis-data-resultset.md index f56b27d999ca6062dbf9c99c28c621f6623ff3ff..be7540c08719a6481210892cb56927b88a8ef50d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-resultset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-resultset.md @@ -873,9 +873,9 @@ getLong(columnIndex: number): number **返回值:** - | 类型 | 说明 | - | -------- | -------- | - | number | 以Long形式返回指定列的值。 | +| 类型 | 说明 | +| -------- | -------- | +| number | 以Long形式返回指定列的值。
该接口支持的数据范围是:Number.MIN_SAFE_INTEGER ~ Number.MAX_SAFE_INTEGER,若超出该范围,建议使用[getDouble](#getdouble)。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-deque.md b/zh-cn/application-dev/reference/apis/js-apis-deque.md index b79633c519c85267edda6f6f85898d0ecfe3f076..142602771db03d267f3cb59e92c5b3603e8ec549 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-deque.md +++ b/zh-cn/application-dev/reference/apis/js-apis-deque.md @@ -1,8 +1,5 @@ # @ohos.util.Deque (线性容器Deque) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - Deque(double ended queue)根据循环队列的数据结构实现,符合先进先出以及先进后出的特点,支持两端的元素插入和移除。Deque会根据实际需要动态调整容量,每次进行两倍扩容。 Deque和[Queue](js-apis-queue.md)相比,Queue的特点是先进先出,只能在头部删除元素,尾部增加元素。 @@ -11,8 +8,13 @@ Deque和[Queue](js-apis-queue.md)相比,Queue的特点是先进先出,只能 **推荐使用场景:** 需要频繁在集合两端进行增删元素的操作时,推荐使用Deque。 -文档中存在泛型的使用,涉及以下泛型标记符:
-- T: Type, 类 +文档中存在泛型的使用,涉及以下泛型标记符:
+- T:Type,类 + +> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> +> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + ## 导入模块 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 c8ced91e73e6b52952098b952e99843848237b73..9837bd951f5250faedba08f6ddd9872d669a5d31 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md @@ -271,9 +271,9 @@ createKVManager(config: KVManagerConfig): KVManager Stage模型下的示例: ```js -import AbilityStage from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility' let kvManager; -export default class MyAbilityStage extends AbilityStage { +export default class EntryAbility extends UIAbility { onCreate() { console.log("MyAbilityStage onCreate") let context = this.context 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 a0271c550005f13ed9f863c593649fa55da5d611..aafee84ec385fed7e8d58a316fe85b19959d8f65 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 @@ -1214,7 +1214,7 @@ lstatSync(path: string): Stat rename(oldPath: string, newPath: string): Promise<void> -重命名文件,使用Promise异步回调。 +重命名文件或文件夹,使用Promise异步回调。 **系统能力**:SystemCapability.FileManagement.File.FileIO @@ -1247,7 +1247,7 @@ rename(oldPath: string, newPath: string): Promise<void> rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void -重命名文件,使用callback异步回调。 +重命名文件或文件夹,使用callback异步回调。 **系统能力**:SystemCapability.FileManagement.File.FileIO @@ -1277,7 +1277,7 @@ rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): v renameSync(oldPath: string, newPath: string): void -以同步方法重命名文件。 +以同步方法重命名文件或文件夹。 **系统能力**:SystemCapability.FileManagement.File.FileIO 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 a38e3189c58e52af35f5dae9a9ab3a7d136c1a7a..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 @@ -92,6 +92,7 @@ hash(path: string, algorithm: string, callback: AsyncCallback<string>): vo **示例:** ```js + 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); 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 4922e899d6e91946b7c4435df269340d5ad017c8..f479d0de6190660e2e645484f50cc68c9634f509 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,14 +35,14 @@ getFreeSize(path:string):Promise<number> ```js let path = "/dev"; - statfs.getFreeSize(path).then((number) => { + statvfs.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 +## statvfs.getFreeSize getFreeSize(path:string, callback:AsyncCallback<number>): void @@ -61,7 +61,7 @@ getFreeSize(path:string, callback:AsyncCallback<number>): void ```js let path = "/dev"; - statfs.getFreeSize(path, (err, number) => { + statvfs.getFreeSize(path, (err, number) => { if (err) { console.info("getFreeSize failed with error message: " + err.message + ", error code: " + err.code); } else { @@ -70,7 +70,7 @@ getFreeSize(path:string, callback:AsyncCallback<number>): void }); ``` -## statfs.getTotalSize +## statvfs.getTotalSize getTotalSize(path: string): Promise<number> @@ -94,14 +94,14 @@ getTotalSize(path: string): Promise<number> ```js let path = "/dev"; - statfs.getTotalSize(path).then((number) => { + statvfs.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 +## statvfs.getTotalSize getTotalSize(path: string, callback: AsyncCallback<number>): void @@ -120,7 +120,7 @@ getTotalSize(path: string, callback: AsyncCallback<number>): void ```js let path = "/dev"; - statfs.getTotalSize(path, (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-storage-statistics.md b/zh-cn/application-dev/reference/apis/js-apis-file-storage-statistics.md similarity index 66% rename from zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md rename to zh-cn/application-dev/reference/apis/js-apis-file-storage-statistics.md index 84bca648712cdc5f406af94beb745e0fb5c7f8b8..076072d2c1ba984bb5682fc4b55af8f3d91aa978 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-storage-statistics.md @@ -1,42 +1,42 @@ -# @ohos.storageStatistics (应用空间统计) +# @ohos.file.storageStatistics (应用空间统计) 该模块提供空间查询相关的常用功能:包括对内外卡的空间查询,对应用分类数据统计的查询,对应用数据的查询等。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > -> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - +> - 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块支持对错误码进行处理,错误码及其适配方式[参考文档](../errorcodes/errorcode-filemanagement.md#错误码适配指导)。 ## 导入模块 ```js -import storageStatistics from "@ohos.storageStatistics"; +import storageStatistics from "@ohos.file.storageStatistics"; ``` ## storageStatistics.getTotalSizeOfVolume getTotalSizeOfVolume(volumeUuid: string): Promise<number> -异步获取指定卷的总空间大小,以promise方式返回。 +异步获取外置存储设备中指定卷设备的总空间大小(单位为Byte),以promise方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ---- | - | volumeUuid | string | 是 | 卷id | + | volumeUuid | string | 是 | 卷设备uuid | **返回值:** | 类型 | 说明 | | --------------------- | ---------------- | - | Promise<number> | 返回指定卷总空间 | + | Promise<number> | 返回指定卷设备的总空间大小(单位为Byte) | **示例:** @@ -53,22 +53,22 @@ getTotalSizeOfVolume(volumeUuid: string): Promise<number> getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void -异步获取指定卷的总空间大小,以callback方式返回。 +异步获取外置存储设备中指定卷设备的总空间大小(单位为Byte),以callback方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------------------ | ---- | -------------------------- | - | volumeUuid | string | 是 | 卷id | - | callback | AsyncCallback<number> | 是 | 获取指定卷总空间之后的回调 | + | volumeUuid | string | 是 | 卷设备uuid | + | callback | AsyncCallback<number> | 是 | 获取指定卷设备总空间之后的回调 | **示例:** @@ -84,27 +84,27 @@ getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): getFreeSizeOfVolume(volumeUuid: string): Promise<number> -异步获取指定卷的可用空间大小,以promise方式返回。 +异步获取外置存储设备中指定卷设备的可用空间大小(单位为Byte),以promise方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ---- | - | volumeUuid | string | 是 | 卷id | + | volumeUuid | string | 是 | 卷设备uuid | **返回值:** | 类型 | 说明 | | --------------------- | ------------------ | - | Promise<number> | 返回指定卷可用空间 | + | Promise<number> | 返回指定卷的可用空间大小(单位为Byte) | **示例:** @@ -122,21 +122,21 @@ getFreeSizeOfVolume(volumeUuid: string): Promise<number> getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void -异步获取指定卷的可用空间大小,以callback方式返回。 +异步获取外置存储设备中指定卷设备的可用空间大小(单位为Byte),以callback方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------------------ | ---- | ---------------------------- | - | volumeUuid | string | 是 | 卷id | + | volumeUuid | string | 是 | 卷设备uuid | | callback | AsyncCallback<number> | 是 | 获取指定卷可用空间之后的回调 | **示例:** @@ -153,14 +153,14 @@ getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): getBundleStats(packageName: string): Promise<BundleStats> -异步获取应用存储数据,以promise方式返回。 +异步获取应用存储空间大小(单位为Byte),以promise方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** @@ -173,7 +173,7 @@ getBundleStats(packageName: string): Promise<BundleStats> | 类型 | 说明 | | ------------------------------------------ | -------------------------- | - | Promise<[Bundlestats](#bundlestats9)> | 返回指定卷上的应用存储数据 | + | Promise<[Bundlestats](#bundlestats9)> | 返回指定卷上的应用存储数据(单位为Byte) | **示例:** @@ -190,14 +190,14 @@ getBundleStats(packageName: string): Promise<BundleStats> getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>): void -异步获取应用存储数据,以callback方式返回。 +异步获取应用存储空间大小(单位为Byte),以callback方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** @@ -221,7 +221,7 @@ getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>) getCurrentBundleStats(): Promise<BundleStats> -第三方应用异步获取占用空间,以promise方式返回。 +第三方应用异步获取当前应用存储空间大小(单位为Byte),以promise方式返回。 **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics @@ -229,7 +229,7 @@ getCurrentBundleStats(): Promise<BundleStats> | 类型 | 说明 | | ------------------------------------------ | -------------------------- | - | Promise<[Bundlestats](#bundlestats9)> | 返回指定卷上的应用存储状态 | + | Promise<[Bundlestats](#bundlestats9)> | 返回指定卷上的应用存空间大小(单位为Byte) | **示例:** @@ -242,7 +242,7 @@ getCurrentBundleStats(): Promise<BundleStats> getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void -第三方应用异步获取占用空间,以callback方式返回。 +第三方应用异步获取当前应用存储空间大小(单位为Byte),以callback方式返回。 **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics @@ -250,7 +250,7 @@ getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------------------------------- | ---- | ------------------------------------ | - | callback | AsyncCallback<[BundleStats](#bundlestats9)> | 是 | 获取指定卷上的应用存储状态之后的回调 | + | callback | AsyncCallback<[BundleStats](#bundlestats9)> | 是 | 获取指定卷上的应用存储空间大小之后的回调 | **示例:** @@ -268,34 +268,33 @@ getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void **系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 | 名称 | 类型 | 可读 | 可写 | 说明 | | --------- | ------ | --- | ---- | -------------- | -| appSize | number | 是 | 否 | app数据大小 | -| cacheSize | number | 是 | 否 | 缓存数据大小 | -| dataSize | number | 是 | 否 | 应用总数据大小 | +| appSize | number | 是 | 否 | app数据大小(单位为Byte) | +| cacheSize | number | 是 | 否 | 缓存数据大小(单位为Byte) | +| dataSize | number | 是 | 否 | 应用总数据大小(单位为Byte) | ## storageStatistics.getTotalSize9+ getTotalSize(): Promise<number> -获取内卡的总空间大小,以promise方式返回。 +获取内置存储的总空间大小(单位为Byte),以promise方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **返回值:** | 类型 | 说明 | | --------------------- | ------------------ | - | Promise<number> | 返回内卡的总空间大小 | + | Promise<number> | 返回内置存储的总空间大小(单位为Byte) | **示例:** @@ -308,21 +307,21 @@ getTotalSize(): Promise<number> getTotalSize(callback: AsyncCallback<number>): void -获取内卡的总空间大小,以callback方式返回。 +获取内置存储的总空间大小(单位为Byte),以callback方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------ | ---- | ------------------------ | - | callback | AsyncCallback<number> | 是 | 获取内卡的总空间大小之后的回调 | + | callback | AsyncCallback<number> | 是 | 获取内置存储的总空间大小之后的回调 | **示例:** @@ -338,21 +337,21 @@ getTotalSize(callback: AsyncCallback<number>): void getFreeSize(): Promise<number> -获取内卡的可用空间大小,以promise方式返回。 +获取内置存储的可用空间大小(单位为Byte),以promise方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **返回值:** | 类型 | 说明 | | --------------------- | ------------------ | - | Promise<number> | 返回内卡的可用空间大小 | + | Promise<number> | 返回内置存储的可用空间大小(单位为Byte) | **示例:** @@ -366,21 +365,21 @@ getFreeSize(): Promise<number> getFreeSize(callback: AsyncCallback<number>): void -获取内卡的可用空间大小,以callback方式返回。 +获取内置存储的可用空间大小(单位为Byte),以callback方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------ | ---- | ------------------------- | - | callback | AsyncCallback<number> | 是 | 获取内卡的可用空间大小之后的回调 | + | callback | AsyncCallback<number> | 是 | 获取内置存储的可用空间大小之后的回调 | **示例:** @@ -395,21 +394,21 @@ getFreeSize(callback: AsyncCallback<number>): void getSystemSize(): Promise<number> -异步获取系统空间大小,以promise方式返回。 +异步获取系统数据的空间大小(单位为Byte),以promise方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **返回值:** | 类型 | 说明 | | --------------------- | ---------------- | - | Promise<number> | 返回系统空间大小 | + | Promise<number> | 返回系统数据的空间大小(单位为Byte) | **示例:** @@ -425,21 +424,21 @@ getSystemSize(): Promise<number> getSystemSize(callback: AsyncCallback<number>): void -异步获取系统空间大小,以callback方式返回。 +异步获取系统数据的空间大小(单位为Byte),以callback方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------------------ | ---- | -------------------------- | - | callback | AsyncCallback<number> | 是 | 获取系统空间大小之后的回调 | + | callback | AsyncCallback<number> | 是 | 获取系统数据的空间大小之后的回调 | **示例:** @@ -452,34 +451,90 @@ getSystemSize(callback: AsyncCallback<number>): void ## storageStatistics.getUserStorageStats9+ -getUserStorageStats(userId?: number): Promise<StorageStats> +getUserStorageStats(): Promise<StorageStats> + +异步获取当前用户各类别存储空间大小(单位为Byte),以promise方式返回。 + +**需要权限**:ohos.permission.STORAGE_MANAGER + +**系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics + + +该接口为系统接口。 + + +**返回值:** + + | 类型 | 说明 | + | --------------------- | ---------------- | + | Promise<[StorageStats](#storagestats9)> | 返回当前用户各类别存储空间大小(单位为Byte) | + +**示例:** + + ```js + storageStatistics.getUserStorageStats().then(function(StorageStats){ + console.info("getUserStorageStats successfully:"+ JSON.stringify(StorageStats)); + }).catch(function(err){ + console.info("getUserStorageStats failed with error:"+ err); + }); + ``` + +## storageStatistics.getUserStorageStats9+ + +getUserStorageStats(callback: AsyncCallback<StorageStats>): void + +异步获取当前用户各类别存储空间大小(单位为Byte),以callback方式返回。 + +**需要权限**:ohos.permission.STORAGE_MANAGER + +**系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics + + +该接口为系统接口。 + + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ---------- | ------------------------------------ | ---- | -------------------------- | + | callback | AsyncCallback<[StorageStats](#storagestats9)> | 是 | 返回用户各类别存储空间大小之后的回调 | + +**示例:** + + ```js + storageStatistics.getUserStorageStats(function(error, StorageStats){ + // do something + console.info("getUserStorageStats successfully:"+ JSON.stringify(StorageStats)); + }); + ``` +getUserStorageStats(userId: number): Promise<StorageStats> -异步获取用户各类别数据大小,以promise方式返回。 +异步获取指定用户各类别存储空间大小(单位为Byte),以promise方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ---- | - | userId | number | 否 | 用户id
确认当前用户:
- 有值:表示指定用户。
- 无值:表示当前用户。| + | userId | number | 是 | 用户id| **返回值:** | 类型 | 说明 | | --------------------- | ---------------- | - | Promise<[StorageStats](#storagestats9)> | 返回各类别数据大小 | + | Promise<[StorageStats](#storagestats9)> | 返回指定用户各类别存储空间大小(单位为Byte) | **示例:** ```js - let userId = 1; + let userId = 100; storageStatistics.getUserStorageStats(userId).then(function(StorageStats){ console.info("getUserStorageStats successfully:"+ JSON.stringify(StorageStats)); }).catch(function(err){ @@ -489,29 +544,29 @@ getUserStorageStats(userId?: number): Promise<StorageStats> ## storageStatistics.getUserStorageStats9+ -getUserStorageStats(userId?: number, callback: AsyncCallback<StorageStats>): void +getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void -异步获取用户各类别数据大小,以callback方式返回。 +异步获取指定用户各类别存储空间大小(单位为Byte),以callback方式返回。 **需要权限**:ohos.permission.STORAGE_MANAGER **系统能力**:SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 **参数:** | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------------------ | ---- | -------------------------- | - | userId | number | 否 | 用户id
确认当前用户:
- 有值:表示指定用户。
- 无值:表示当前用户。 | + | userId | number | 是 | 用户id | | callback | AsyncCallback<[StorageStats](#storagestats9)> | 是 | 返回各类别数据大小之后的回调 | **示例:** ```js - let userId = 1; + let userId = 100; storageStatistics.getUserStorageStats(userId, function(error, StorageStats){ // do something console.info("getUserStorageStats successfully:"+ JSON.stringify(StorageStats)); @@ -526,13 +581,13 @@ getUserStorageStats(userId?: number, callback: AsyncCallback<StorageStats> **系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics -该接口为系统接口,三方应用不支持调用 +该接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | | --------- | ------ | ---- | ----- | -------------- | -| total | number | 是 | 否 | 内卡总空间大小 | -| audio | number |是 | 否 | 音频数据大小 | -| video | number | 是 | 否 | 视频数据大小 | -| image | number | 是 | 否 | 图像数据大小 | -| file | number | 是 | 否 | 文件数据大小 | -| app | number | 是 | 否 | 应用数据大小 | +| total | number | 是 | 否 | 内置存储总空间大小(单位为Byte) | +| audio | number |是 | 否 | 音频数据大小 (单位为Byte) | +| video | number | 是 | 否 | 视频数据大小(单位为Byte) | +| image | number | 是 | 否 | 图像数据大小 (单位为Byte) | +| file | number | 是 | 否 | 文件数据大小 (单位为Byte) | +| app | number | 是 | 否 | 应用数据大小(单位为Byte) | diff --git a/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md b/zh-cn/application-dev/reference/apis/js-apis-file-volumemanager.md similarity index 93% rename from zh-cn/application-dev/reference/apis/js-apis-volumemanager.md rename to zh-cn/application-dev/reference/apis/js-apis-file-volumemanager.md index a2d7595f0f0e2812c7667ef3fdf7b5a8590c1aeb..3a26a3679bbdeb8982f7a95cf182cafac1b549b2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-volumemanager.md @@ -1,16 +1,17 @@ -# @ohos.volumeManager (卷管理) +# @ohos.file.volumeManager (卷管理) 该模块提供卷、磁盘查询和管理的相关功能:包括查询卷信息,对卷的挂载卸载、对磁盘分区以及卷的格式化等功能。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > -> - 本模块首批接口从API version 9开始支持。 -> - 本模块接口为系统接口,三方应用不支持调用。 +> - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块接口为系统接口。 +> - 本模块支持对错误码进行处理,错误码及其适配方式[参考文档](../errorcodes/errorcode-filemanagement.md#错误码适配指导)。 ## 导入模块 ```js -import volumemanager from "@ohos.volumeManager"; +import volumemanager from "@ohos.file.volumeManager"; ``` ## volumemanager.getAllVolumes @@ -65,7 +66,7 @@ getAllVolumes(callback: AsyncCallback<Array<Volume>>): void ## volumemanager.mount -mount(volumeId: string): Promise<boolean> +mount(volumeId: string): Promise<void> 异步挂载指定卷,以promise方式返回。 @@ -83,7 +84,7 @@ mount(volumeId: string): Promise<boolean> | 类型 | 说明 | | ---------------------- | ---------- | - | Promise<boolean> | 挂载指定卷 | + | Promise<void> | 挂载指定卷 | **示例:** @@ -96,7 +97,7 @@ mount(volumeId: string): Promise<boolean> ## volumemanager.mount -mount(volumeId: string, callback:AsyncCallback<boolean>):void +mount(volumeId: string, callback:AsyncCallback<void>):void 异步获取指定卷的可用空间大小,以callback方式返回。 @@ -109,7 +110,7 @@ mount(volumeId: string, callback:AsyncCallback<boolean>):void | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------- | ---- | -------------------- | | volumeId | string | 是 | 卷id | - | callback | AsyncCallback<boolean> | 是 | 挂载指定卷之后的回调 | + | callback | AsyncCallback<void> | 是 | 挂载指定卷之后的回调 | **示例:** @@ -122,7 +123,7 @@ mount(volumeId: string, callback:AsyncCallback<boolean>):void ## volumemanager.unmount -unmount(volumeId: string): Promise<boolean> +unmount(volumeId: string): Promise<void> 异步卸载指定卷,以promise方式返回。 @@ -140,7 +141,7 @@ unmount(volumeId: string): Promise<boolean> | 类型 | 说明 | | ---------------------- | ---------- | - | Promise<boolean> | 卸载指定卷 | + | Promise<void> | 卸载指定卷 | **示例:** @@ -153,7 +154,7 @@ unmount(volumeId: string): Promise<boolean> ## volumemanager.unmount -unmount(volumeId: string, callback: AsyncCallback<boolean>): void +unmount(volumeId: string, callback: AsyncCallback<void>): void 异步卸载指定卷,以callback方式返回。 @@ -166,7 +167,7 @@ unmount(volumeId: string, callback: AsyncCallback<boolean>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------- | ---- | -------------------- | | volumeId | string | 是 | 卷id | - | callback | AsyncCallback<boolean> | 是 | 卸载指定卷之后的回调 | + | callback | AsyncCallback<void> | 是 | 卸载指定卷之后的回调 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md b/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md index 9c7dc788bf1e78e90551b6ccaa5a59bc6d4fa264..a05eaa950e88168109014c8b39bac11f1a4ad908 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md +++ b/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md @@ -114,7 +114,7 @@ createFileAccessHelper(context: Context, wants: Array<Want>) : FileAccessH }, ] try { - // this.context 是MainAbility 传过来的context + // this.context 是EntryAbility 传过来的context fileAccessHelper = fileAccess.createFileAccessHelper(this.context, wantInfos); if (!fileAccessHelper) console.error("createFileAccessHelper interface returns an undefined object"); @@ -153,7 +153,7 @@ createFileAccessHelper(context: Context) : FileAccessHelper let fileAccesssHelperAllServer = null; // 创建连接系统内所有配置fileAccess的文件管理类服务的helper对象 try { - // this.context 是MainAbility 传过来的context + // this.context 是EntryAbility 传过来的context fileAccesssHelperAllServer = fileAccess.createFileAccessHelper(this.context); if (!fileAccesssHelperAllServer) console.error("createFileAccessHelper interface returns an undefined object"); diff --git a/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md b/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md index 43950b82feebedc9fde5ee77085828ad6bcfd94b..2bfbde99ed37cab9a0a47b4778f7da1fa7e80e0a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md +++ b/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md @@ -267,7 +267,7 @@ getBundlePackInfo(bundleName: string, bundlePackFlag : BundlePackFlag, callback: | -------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | bundleName | string | 是 | 应用程序包名称。 | | bundlePackFlag | [BundlePackFlag](#bundlepackflag) | 是 | 指示要查询的应用包标志。 | -| callback | AsyncCallback<[BundlePackInfo](js-apis-bundleManager-packInfo.md)> | 是 | 回调函数。当函数调用成功,err为null,data为获取到的BundlePackInfo信息。否则为错误对象。 | +| callback | AsyncCallback<[BundlePackInfo](js-apis-bundleManager-BundlePackInfo.md)> | 是 | 回调函数。当函数调用成功,err为null,data为获取到的BundlePackInfo信息。否则为错误对象。 | **错误码:** @@ -318,7 +318,7 @@ getBundlePackInfo(bundleName: string, bundlePackFlag : BundlePackFlag): Promise\ | 类型 | 说明 | | ---------------------------------------------------------- | ----------------------------------- | -| Promise<[BundlePackInfo](js-apis-bundleManager-packInfo.md)> | Promise对象,返回BundlePackInfo信息。 | +| Promise<[BundlePackInfo](js-apis-bundleManager-BundlePackInfo.md)> | Promise对象,返回BundlePackInfo信息。 | **错误码:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md b/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md index 1887a656860e3358afa2b986d8b4757eff74e151..9de4f4b835bdf90523da4838d0ddaade3112884d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md @@ -88,7 +88,7 @@ import geoLocationManager from '@ohos.geoLocationManager'; | countryCode | string | 是 | 否 | 表示国家码信息。 | | countryName | string| 是 | 否 | 表示国家信息。 | | administrativeArea | string | 是 | 否 | 表示省份区域信息。 | -| subAdministrativeArea | string | 是 | 否 | 表示表示子区域信息。 | +| subAdministrativeArea | string | 是 | 否 | 表示子区域信息。 | | locality | string | 是 | 否 | 表示城市信息。 | | subLocality | string | 是 | 否 | 表示子城市信息。 | | roadName | string | 是 | 否 |表示路名信息。 | @@ -782,12 +782,12 @@ on(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): vo { bundleName: "com.example.myapplication", abilityName: "EntryAbility", - action: "action1", + action: "action1" } ], operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG], + wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] }; wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { diff --git a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md index ebe0fa3d296fa83bb971fb90d34a13f576e53a80..bed48f3ffc6401166c69140a567cfaa5b258743d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md @@ -411,7 +411,7 @@ on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void; { bundleName: "com.example.myapplication", abilityName: "EntryAbility", - action: "action1", + action: "action1" } ], operationType: wantAgent.OperationType.START_ABILITY, diff --git a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md index 7f0a90a4aa551acb6c4caca556b98fc20af6a723..06e5c93631b8ae03c40e7f031c4c15435371cce6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md @@ -1,8 +1,5 @@ # @ohos.util.HashMap (非线性容器HashMap) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - HashMap底层使用数组+链表+红黑树的方式实现,查询、插入和删除的效率都很高。HashMap存储内容基于key-value的键值对映射,不能有重复的key,且一个key只能对应一个value。 HashMap和[TreeMap](js-apis-treemap.md)相比,HashMap依据键的hashCode存取数据,访问速度较快。而TreeMap是有序存取,效率较低。 @@ -11,9 +8,14 @@ HashMap和[TreeMap](js-apis-treemap.md)相比,HashMap依据键的hashCode存 **推荐使用场景:** 需要快速存取、删除以及插入键值对数据时,推荐使用HashMap。 -文档中存在泛型的使用,涉及以下泛型标记符:
-- K: Key, 键
-- V: Value, 值 +文档中存在泛型的使用,涉及以下泛型标记符:
+- K:Key,键
+- V:Value,值 + +> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> +> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + ## 导入模块 @@ -337,7 +339,7 @@ hashMap.clear(); keys(): IterableIterator<K> -返回包含此映射中包含的键名的新迭代器对象。 +返回包含此映射中包含的键的新迭代器对象。 **系统能力:** SystemCapability.Utils.Lang 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-hiviewdfx-hiappevent.md b/zh-cn/application-dev/reference/apis/js-apis-hiviewdfx-hiappevent.md index 4be6db2fe15c1273cb9c33b1d928764ee499b345..f8ce582776b930ad6a65a0cb54a082e00c2120f6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hiviewdfx-hiappevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hiviewdfx-hiappevent.md @@ -448,27 +448,27 @@ hiAppEvent.clearData(); | BEHAVIOR | 4 | 行为类型事件。 | -## Event +## event 此接口提供了所有预定义事件的事件名称常量。 **系统能力:** SystemCapability.HiviewDFX.HiAppEvent -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------------------------- | ------ | ---- | ---- | -------------------- | -| USER_LOGIN | string | 是 | 否 | 用户登录事件。 | -| USER_LOGOUT | string | 是 | 否 | 用户登出事件。 | -| DISTRIBUTED_SERVICE_START | string | 是 | 否 | 分布式服务启动事件。 | +| 名称 | 类型 | 说明 | +| ------------------------- | ------ | -------------------- | +| USER_LOGIN | string | 用户登录事件。 | +| USER_LOGOUT | string | 用户登出事件。 | +| DISTRIBUTED_SERVICE_START | string | 分布式服务启动事件。 | -## Param +## param 此接口提供了所有预定义参数的参数名称常量。 **系统能力:** SystemCapability.HiviewDFX.HiAppEvent -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------------------------------- | ------ | ---- | ---- | ------------------ | -| USER_ID | string | 是 | 否 | 用户自定义ID。 | -| DISTRIBUTED_SERVICE_NAME | string | 是 | 否 | 分布式服务名称。 | -| DISTRIBUTED_SERVICE_INSTANCE_ID | string | 是 | 否 | 分布式服务实例ID。 | \ No newline at end of file +| 名称 | 类型 | 说明 | +| ------------------------------- | ------ | ------------------ | +| USER_ID | string | 用户自定义ID。 | +| DISTRIBUTED_SERVICE_NAME | string | 分布式服务名称。 | +| DISTRIBUTED_SERVICE_INSTANCE_ID | string | 分布式服务实例ID。 | \ No newline at end of file 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..16696b77fd623cede7edb72a05bafdb1cca37bb0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-http.md +++ b/zh-cn/application-dev/reference/apis/js-apis-http.md @@ -583,6 +583,8 @@ httpResponseCache.delete().then(() => { | 6 | 无法解析主机,指定的远程主机无法解析。建议排查:1、url地址是否正确。2、联网是否正常,网络是否可以和外部进行通信。3、是否有网络访问权限。 | | 7 | 无法连接代理或主机。建议排查:1、端口号是否有问题。 2、查看本地是否开启http的代理影响的。 | +更多常用错误码,可参考:[curl错误码](https://curl.se/libcurl/c/libcurl-errors.html)。 + ## HttpDataType9+ http的数据类型。 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 35cfceeda65a312702d1e9da512e4372e9c22c18..44256b9542e9a4ce38a6b11475e6dcba71bb4f71 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-i18n.md +++ b/zh-cn/application-dev/reference/apis/js-apis-i18n.md @@ -12,7 +12,7 @@ ## 导入模块 ```js -import i18n from '@ohos.i18n'; +import I18n from '@ohos.i18n'; ``` @@ -51,9 +51,9 @@ static getDisplayCountry(country: string, locale: string, sentenceCase?: boolean **示例:** ```js try { - var displayCountry = i18n.System.getDisplayCountry("zh-CN", "en-GB"); + let displayCountry = I18n.System.getDisplayCountry("zh-CN", "en-GB"); // displayCountry = "China" } catch(error) { - console.error(`call System.getDisplayCountry failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getDisplayCountry failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -90,9 +90,9 @@ static getDisplayLanguage(language: string, locale: string, sentenceCase?: boole **示例:** ```js try { - var displayLanguage = i18n.System.getDisplayLanguage("zh", "en-GB"); + let displayLanguage = I18n.System.getDisplayLanguage("zh", "en-GB"); // displayLanguage = Chinese } catch(error) { - console.error(`call System.getDisplayLanguage failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getDisplayLanguage failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -100,7 +100,7 @@ static getDisplayLanguage(language: string, locale: string, sentenceCase?: boole static getSystemLanguages(): Array<string> -获取系统支持的语言列表。 +获取系统支持的语言列表。语言的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -121,9 +121,9 @@ static getSystemLanguages(): Array<string> **示例:** ```js try { - var systemLanguages = i18n.System.getSystemLanguages(); + let systemLanguages = I18n.System.getSystemLanguages(); // [ "en-Latn-US", "zh-Hans" ] } catch(error) { - console.error(`call System.getSystemLanguages failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getSystemLanguages failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -131,7 +131,7 @@ static getSystemLanguages(): Array<string> static getSystemCountries(language: string): Array<string> -获取针对输入语言系统支持的区域列表。 +获取针对输入语言系统支持的国家或地区列表。国家或地区的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -158,9 +158,9 @@ static getSystemCountries(language: string): Array<string> **示例:** ```js try { - var systemCountries = i18n.System.getSystemCountries('zh'); + let systemCountries = I18n.System.getSystemCountries('zh'); // systemCountries = [ "ZW", "YT", "YE", ..., "ER", "CN", "DE" ],共计240个国家或地区 } catch(error) { - console.error(`call System.getSystemCountries failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getSystemCountries failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -168,7 +168,7 @@ static getSystemCountries(language: string): Array<string> static isSuggested(language: string, region?: string): boolean -判断当前语言和区域是否匹配。 +判断当前语言和地区是否匹配。 **系统能力**:SystemCapability.Global.I18n @@ -196,9 +196,9 @@ static isSuggested(language: string, region?: string): boolean **示例:** ```js try { - var res = i18n.System.isSuggested('zh', 'CN'); + let res = I18n.System.isSuggested('zh', 'CN'); // res = true } catch(error) { - console.error(`call System.isSuggested failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.isSuggested failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -206,7 +206,7 @@ static isSuggested(language: string, region?: string): boolean static getSystemLanguage(): string -获取系统语言。 +获取系统语言。语言的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -227,9 +227,9 @@ static getSystemLanguage(): string **示例:** ```js try { - var systemLanguage = i18n.System.getSystemLanguage(); + let systemLanguage = I18n.System.getSystemLanguage(); // systemLanguage为当前系统语言 } catch(error) { - console.error(`call System.getSystemLanguage failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getSystemLanguage failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -262,9 +262,9 @@ static setSystemLanguage(language: string): void **示例:** ```js try { - i18n.System.setSystemLanguage('zh'); + I18n.System.setSystemLanguage('zh'); // 设置系统当前语言为 "zh" } catch(error) { - console.error(`call System.setSystemLanguage failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.setSystemLanguage failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -272,7 +272,7 @@ static setSystemLanguage(language: string): void static getSystemRegion(): string -获取系统地区。 +获取系统地区。地区的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -293,9 +293,9 @@ static getSystemRegion(): string **示例:** ```js try { - var systemRegion = i18n.System.getSystemRegion(); + let systemRegion = I18n.System.getSystemRegion(); // 获取系统当前地区设置 } catch(error) { - console.error(`call System.getSystemRegion failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getSystemRegion failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -328,9 +328,9 @@ static setSystemRegion(region: string): void **示例:** ```js try { - i18n.System.setSystemRegion('CN'); + I18n.System.setSystemRegion('CN'); // 设置系统当前地区为 "CN" } catch(error) { - console.error(`call System.setSystemRegion failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.setSystemRegion failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -338,7 +338,7 @@ static setSystemRegion(region: string): void static getSystemLocale(): string -获取系统区域。 +获取系统区域。区域的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -359,9 +359,9 @@ static getSystemLocale(): string **示例:** ```js try { - var systemLocale = i18n.System.getSystemLocale(); + let systemLocale = I18n.System.getSystemLocale(); // 获取系统当前Locale } catch(error) { - console.error(`call System.getSystemLocale failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getSystemLocale failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -394,9 +394,9 @@ static setSystemLocale(locale: string): void **示例:** ```js try { - i18n.System.setSystemLocale('zh-CN'); + I18n.System.setSystemLocale('zh-CN'); // 设置系统当前Locale为 "zh-CN" } catch(error) { - console.error(`call System.setSystemLocale failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.setSystemLocale failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -425,9 +425,9 @@ static is24HourClock(): boolean **示例:** ```js try { - var is24HourClock = i18n.System.is24HourClock(); + let is24HourClock = I18n.System.is24HourClock(); // 系统24小时开关是否开启 } catch(error) { - console.error(`call System.is24HourClock failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.is24HourClock failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -461,9 +461,9 @@ static set24HourClock(option: boolean): void ```js // 将系统时间设置为24小时制 try { - i18n.System.set24HourClock(true); + I18n.System.set24HourClock(true); } catch(error) { - console.error(`call System.set24HourClock failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.set24HourClock failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -497,12 +497,12 @@ static addPreferredLanguage(language: string, index?: number): void **示例:** ```js // 将语言zh-CN添加到系统偏好语言列表中 - var language = 'zh-CN'; - var index = 0; + let language = 'zh-CN'; + let index = 0; try { - i18n.System.addPreferredLanguage(language, index); + I18n.System.addPreferredLanguage(language, index); // 将zh-CN添加到系统偏好语言列表的第1位 } catch(error) { - console.error(`call System.addPreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.addPreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -535,11 +535,11 @@ static removePreferredLanguage(index: number): void **示例:** ```js // 删除系统偏好语言列表中的第一个偏好语言 - var index = 0; + let index = 0; try { - i18n.System.removePreferredLanguage(index); + I18n.System.removePreferredLanguage(index); } catch(error) { - console.error(`call System.removePreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.removePreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -568,9 +568,9 @@ static getPreferredLanguageList(): Array<string> **示例:** ```js try { - var preferredLanguageList = i18n.System.getPreferredLanguageList(); + let preferredLanguageList = I18n.System.getPreferredLanguageList(); // 获取系统当前偏好语言列表 } catch(error) { - console.error(`call System.getPreferredLanguageList failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getPreferredLanguageList failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -599,9 +599,9 @@ static getFirstPreferredLanguage(): string **示例:** ```js try { - var firstPreferredLanguage = i18n.System.getFirstPreferredLanguage(); + let firstPreferredLanguage = I18n.System.getFirstPreferredLanguage(); // 获取系统当前偏好语言列表中的第一个偏好语言 } catch(error) { - console.error(`call System.getFirstPreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getFirstPreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -630,9 +630,9 @@ static getAppPreferredLanguage(): string **示例:** ```js try { - var appPreferredLanguage = i18n.System.getAppPreferredLanguage(); + let appPreferredLanguage = I18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 } catch(error) { - console.error(`call System.getAppPreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getAppPreferredLanguage failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -640,7 +640,7 @@ static getAppPreferredLanguage(): string static setUsingLocalDigit(flag: boolean): void -设置是否打开本地数字开关。 +设置系统是否使用本地数字。 此接口为系统接口。 @@ -665,9 +665,9 @@ static setUsingLocalDigit(flag: boolean): void **示例:** ```ts try { - i18n.System.setUsingLocalDigit(true); + I18n.System.setUsingLocalDigit(true); // 打开本地化数字开关 } catch(error) { - console.error(`call System.setUsingLocalDigit failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.setUsingLocalDigit failed, error code: ${error.code}, message: ${error.message}.`); } ``` @@ -675,7 +675,7 @@ static setUsingLocalDigit(flag: boolean): void static getUsingLocalDigit(): boolean -获取系统当前是否打开本地数字开关。 +判断系统是否使用本地数字。 **系统能力**:SystemCapability.Global.I18n @@ -696,14 +696,14 @@ static getUsingLocalDigit(): boolean **示例:** ```ts try { - var status = i18n.System.getUsingLocalDigit(); + let status = I18n.System.getUsingLocalDigit(); // 判断本地化数字开关是否打开 } catch(error) { - console.error(`call System.getUsingLocalDigit failed, error code: ${error.code}, message: ${error.message}.`) + console.error(`call System.getUsingLocalDigit failed, error code: ${error.code}, message: ${error.message}.`); } ``` -## i18n.isRTL7+ +## I18n.isRTL7+ isRTL(locale: string): boolean @@ -725,12 +725,12 @@ isRTL(locale: string): boolean **示例:** ```js - i18n.isRTL("zh-CN");// 中文不是RTL语言,返回false - i18n.isRTL("ar-EG");// 阿语是RTL语言,返回true + I18n.isRTL("zh-CN");// 中文不是RTL语言,返回false + I18n.isRTL("ar-EG");// 阿语是RTL语言,返回true ``` -## i18n.getCalendar8+ +## I18n.getCalendar8+ getCalendar(locale: string, type? : string): Calendar @@ -753,7 +753,7 @@ getCalendar(locale: string, type? : string): Calendar **示例:** ```js - i18n.getCalendar("zh-Hans", "gregory"); + I18n.getCalendar("zh-Hans", "chinese"); // 获取中国农历日历对象 ``` @@ -776,8 +776,8 @@ setTime(date: Date): void **示例:** ```js - var calendar = i18n.getCalendar("en-US", "gregory"); - var date = new Date(2021, 10, 7, 8, 0, 0, 0); + let calendar = I18n.getCalendar("en-US", "gregory"); + let date = new Date(2021, 10, 7, 8, 0, 0, 0); calendar.setTime(date); ``` @@ -798,7 +798,7 @@ setTime(time: number): void **示例:** ```js - var calendar = i18n.getCalendar("en-US", "gregory"); + let calendar = I18n.getCalendar("en-US", "gregory"); calendar.setTime(10540800000); ``` @@ -824,7 +824,7 @@ set(year: number, month: number, date:number, hour?: number, minute?: number, se **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); + let calendar = I18n.getCalendar("zh-Hans"); calendar.set(2021, 10, 1, 8, 0, 0); // set time to 2021.10.1 08:00:00 ``` @@ -845,7 +845,7 @@ setTimeZone(timezone: string): void **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); + let calendar = I18n.getCalendar("zh-Hans"); calendar.setTimeZone("Asia/Shanghai"); ``` @@ -866,9 +866,9 @@ getTimeZone(): string **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); + let calendar = I18n.getCalendar("zh-Hans"); calendar.setTimeZone("Asia/Shanghai"); - calendar.getTimeZone(); // Asia/Shanghai" + let timezone = calendar.getTimeZone(); // timezone = "Asia/Shanghai" ``` @@ -888,8 +888,8 @@ getFirstDayOfWeek(): number **示例:** ```js - var calendar = i18n.getCalendar("en-US", "gregory"); - calendar.getFirstDayOfWeek(); + let calendar = I18n.getCalendar("en-US", "gregory"); + let firstDayOfWeek = calendar.getFirstDayOfWeek(); // firstDayOfWeek = 1 ``` @@ -909,8 +909,9 @@ setFirstDayOfWeek(value: number): void **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); - calendar.setFirstDayOfWeek(0); + let calendar = I18n.getCalendar("zh-Hans"); + calendar.setFirstDayOfWeek(3); + let firstDayOfWeek = calendar.getFirstDayOfWeek(); // firstDayOfWeek = 3 ``` @@ -930,8 +931,8 @@ getMinimalDaysInFirstWeek(): number **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); - calendar.getMinimalDaysInFirstWeek(); + let calendar = I18n.getCalendar("zh-Hans"); + let minimalDaysInFirstWeek = calendar.getMinimalDaysInFirstWeek(); // minimalDaysInFirstWeek = 1 ``` @@ -951,8 +952,9 @@ setMinimalDaysInFirstWeek(value: number): void **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); + let calendar = I18n.getCalendar("zh-Hans"); calendar.setMinimalDaysInFirstWeek(3); + let minimalDaysInFirstWeek = calendar.getMinimalDaysInFirstWeek(); // minimalDaysInFirstWeek = 3 ``` @@ -978,9 +980,9 @@ get(field: string): number **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); + let calendar = I18n.getCalendar("zh-Hans"); calendar.set(2021, 10, 1, 8, 0, 0); // set time to 2021.10.1 08:00:00 - calendar.get("hour_of_day"); // 8 + let hourOfDay = calendar.get("hour_of_day"); // hourOfDay = 8 ``` @@ -1006,8 +1008,8 @@ getDisplayName(locale: string): string **示例:** ```js - var calendar = i18n.getCalendar("en-US", "buddhist"); - calendar.getDisplayName("zh"); // 佛历 + let calendar = I18n.getCalendar("en-US", "buddhist"); + let calendarName = calendar.getDisplayName("zh"); // calendarName = "佛历" ``` @@ -1023,7 +1025,7 @@ isWeekend(date?: Date): boolean | 参数名 | 类型 | 必填 | 说明 | | ---- | ---- | ---- | ---------------------------------------- | -| date | Date | 否 | 判断日期在日历中是否是周末。如果date没有给出,判断calendar当前日期是否为周末。 | +| date | Date | 否 | 判断日期在日历中是否是周末。如果不传日期参数,则判断当前日期是否为周末。 | **返回值:** @@ -1033,10 +1035,10 @@ isWeekend(date?: Date): boolean **示例:** ```js - var calendar = i18n.getCalendar("zh-Hans"); + let calendar = I18n.getCalendar("zh-Hans"); calendar.set(2021, 11, 11, 8, 0, 0); // set time to 2021.11.11 08:00:00 calendar.isWeekend(); // false - var date = new Date(2011, 11, 6, 9, 0, 0); + let date = new Date(2011, 11, 6, 9, 0, 0); calendar.isWeekend(date); // true ``` @@ -1057,11 +1059,11 @@ constructor(country: string, options?: PhoneNumberFormatOptions) | 参数名 | 类型 | 必填 | 说明 | | ------- | ---------------------------------------- | ---- | ---------------- | | country | string | 是 | 表示电话号码所属国家或地区代码。 | -| options | [PhoneNumberFormatOptions](#phonenumberformatoptions9) | 否 | 电话号码格式化对象的相关选项。 | +| options | [PhoneNumberFormatOptions](#phonenumberformatoptions8) | 否 | 电话号码格式化对象的相关选项。 | **示例:** ```js - var phoneNumberFormat= new i18n.PhoneNumberFormat("CN", {"type": "E164"}); + let phoneNumberFormat= new I18n.PhoneNumberFormat("CN", {"type": "E164"}); ``` @@ -1087,8 +1089,8 @@ isValidNumber(number: string): boolean **示例:** ```js - var phonenumberfmt = new i18n.PhoneNumberFormat("CN"); - phonenumberfmt.isValidNumber("15812312312"); + let phonenumberfmt = new I18n.PhoneNumberFormat("CN"); + let isValidNumber = phonenumberfmt.isValidNumber("15812312312"); // isValidNumber = true ``` @@ -1114,8 +1116,8 @@ format(number: string): string **示例:** ```js - var phonenumberfmt = new i18n.PhoneNumberFormat("CN"); - phonenumberfmt.format("15812312312"); + let phonenumberfmt = new I18n.PhoneNumberFormat("CN"); + let formattedPhoneNumber = phonenumberfmt.format("15812312312"); // formattedPhoneNumber = "158 1231 2312" ``` @@ -1142,12 +1144,12 @@ getLocationName(number: string, locale: string): string **示例:** ```js - var phonenumberfmt = new i18n.PhoneNumberFormat("CN"); - phonenumberfmt.getLocationName("15812312345", "zh-CN"); + let phonenumberfmt = new I18n.PhoneNumberFormat("CN"); + let locationName = phonenumberfmt.getLocationName("15812312345", "zh-CN"); // locationName = "广东省湛江市" ``` -## PhoneNumberFormatOptions9+ +## PhoneNumberFormatOptions8+ 表示电话号码格式化对象可设置的属性。 @@ -1192,7 +1194,7 @@ getInstance(locale?:string): IndexUtil **示例:** ```js - var indexUtil= i18n.getInstance("zh-CN"); + let indexUtil= I18n.getInstance("zh-CN"); ``` @@ -1215,8 +1217,10 @@ getIndexList(): Array<string> **示例:** ```js - var indexUtil = i18n.getInstance("zh-CN"); - var indexList = indexUtil.getIndexList(); + let indexUtil = I18n.getInstance("zh-CN"); + // indexList = [ "...", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", + // "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "..." ] + let indexList = indexUtil.getIndexList(); ``` @@ -1236,7 +1240,7 @@ addLocale(locale: string): void **示例:** ```js - var indexUtil = i18n.getInstance("zh-CN"); + let indexUtil = I18n.getInstance("zh-CN"); indexUtil.addLocale("en-US"); ``` @@ -1263,12 +1267,12 @@ getIndex(text: string): string **示例:** ```js - var indexUtil= i18n.getInstance("zh-CN"); - indexUtil.getIndex("hi"); // 返回hi + let indexUtil= I18n.getInstance("zh-CN"); + let index = indexUtil.getIndex("hi"); // index = "H" ``` -## i18n.getLineInstance8+ +## I18n.getLineInstance8+ getLineInstance(locale: string): BreakIterator @@ -1290,7 +1294,7 @@ getLineInstance(locale: string): BreakIterator **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); ``` @@ -1313,8 +1317,8 @@ setLineBreakText(text: string): void **示例:** ```js - var iterator = i18n.getLineInstance("en"); - iterator.setLineBreakText("Apple is my favorite fruit."); + let iterator = I18n.getLineInstance("en"); + iterator.setLineBreakText("Apple is my favorite fruit."); // 设置短句文本 ``` @@ -1334,9 +1338,9 @@ getLineBreakText(): string **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.getLineBreakText(); // Apple is my favorite fruit. + let breakText = iterator.getLineBreakText(); // breakText = "Apple is my favorite fruit." ``` @@ -1356,9 +1360,9 @@ current(): number **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.current(); // 0 + let currentPos = iterator.current(); // currentPos = 0 ``` @@ -1378,9 +1382,9 @@ first(): number **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = i18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.first(); // 0 + let firstPos = iterator.first(); // firstPos = 0 ``` @@ -1400,9 +1404,9 @@ last(): number **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.last(); // 27 + let lastPos = iterator.last(); // lastPos = 27 ``` @@ -1428,11 +1432,11 @@ next(index?: number): number **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.first(); // 0 - iterator.next(); // 6 - iterator.next(10); // -1 + let pos = iterator.first(); // pos = 0 + pos = iterator.next(); // pos = 6 + pos = iterator.next(10); // pos = -1 ``` @@ -1452,11 +1456,11 @@ previous(): number **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.first(); // 0 - iterator.next(3); // 12 - iterator.previous(); // 9 + let pos = iterator.first(); // pos = 0 + pos = iterator.next(3); // pos = 12 + pos = iterator.previous(); // pos = 9 ``` @@ -1482,11 +1486,11 @@ following(offset: number): number **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.following(0); // 6 - iterator.following(100); // -1 - iterator.current(); // 27 + let pos = iterator.following(0); // pos = 6 + pos = iterator.following(100); // pos = -1 + pos = iterator.current(); // pos = 27 ``` @@ -1512,14 +1516,14 @@ isBoundary(offset: number): boolean **示例:** ```js - var iterator = i18n.getLineInstance("en"); + let iterator = I18n.getLineInstance("en"); iterator.setLineBreakText("Apple is my favorite fruit."); - iterator.isBoundary(0); // true; - iterator.isBoundary(5); // false; + let isBoundary = iterator.isBoundary(0); // isBoundary = true; + isBoundary = iterator.isBoundary(5); // isBoundary = false; ``` -## i18n.getTimeZone7+ +## I18n.getTimeZone7+ getTimeZone(zoneID?: string): TimeZone @@ -1541,7 +1545,7 @@ getTimeZone(zoneID?: string): TimeZone **示例:** ```js - var timezone = i18n.getTimeZone(); + let timezone = I18n.getTimeZone(); ``` @@ -1564,8 +1568,8 @@ getID(): string **示例:** ```js - var timezone = i18n.getTimeZone(); - timezone.getID(); + let timezone = I18n.getTimeZone(); + let timezoneID = timezone.getID(); // timezoneID = "Asia/Shanghai" ``` @@ -1573,7 +1577,7 @@ getID(): string getDisplayName(locale?: string, isDST?: boolean): string -获取时区对象在指定区域的表示。 +获取时区的本地化表示。 **系统能力**:SystemCapability.Global.I18n @@ -1592,8 +1596,8 @@ getDisplayName(locale?: string, isDST?: boolean): string **示例:** ```js - var timezone = i18n.getTimeZone(); - timezone.getDisplayName("zh-CN", false); + let timezone = I18n.getTimeZone(); + let timezoneName = timezone.getDisplayName("zh-CN", false); // timezoneName = "中国标准时间" ``` @@ -1613,8 +1617,8 @@ getRawOffset(): number **示例:** ```js - var timezone = i18n.getTimeZone(); - timezone.getRawOffset(); + let timezone = I18n.getTimeZone(); + let offset = timezone.getRawOffset(); // offset = 28800000 ``` @@ -1634,8 +1638,8 @@ getOffset(date?: number): number **示例:** ```js - var timezone = i18n.getTimeZone(); - timezone.getOffset(1234567890); + let timezone = I18n.getTimeZone(); + let offset = timezone.getOffset(1234567890); // offset = 28800000 ``` @@ -1655,7 +1659,8 @@ static getAvailableIDs(): Array<string> **示例:** ```ts - var ids = i18n.TimeZone.getAvailableIDs(); + // ids = ["America/Adak", "America/Anchorage", "America/Bogota", "America/Denver", "America/Los_Angeles", "America/Montevideo", "America/Santiago", "America/Sao_Paulo", "Asia/Ashgabat", "Asia/Hovd", "Asia/Jerusalem", "Asia/Magadan", "Asia/Omsk", "Asia/Shanghai", "Asia/Tokyo", "Asia/Yerevan", "Atlantic/Cape_Verde", "Australia/Lord_Howe", "Europe/Dublin", "Europe/London", "Europe/Moscow", "Pacific/Auckland", "Pacific/Easter", "Pacific/Pago-Pago"], 当前共支持24个时区 + let ids = I18n.TimeZone.getAvailableIDs(); ``` @@ -1675,7 +1680,8 @@ static getAvailableZoneCityIDs(): Array<string> **示例:** ```ts - var cityIDs = i18n.TimeZone.getAvailableZoneCityIDs(); + // cityIDs = ["Auckland", "Magadan", "Lord Howe Island", "Tokyo", "Shanghai", "Hovd", "Omsk", "Ashgabat", "Yerevan", "Moscow", "Tel Aviv", "Dublin", "London", "Praia", "Montevideo", "Brasília", "Santiago", "Bogotá", "Easter Island", "Salt Lake City", "Los Angeles", "Anchorage", "Adak", "Pago Pago"],当前共支持24个时区城市 + let cityIDs = I18n.TimeZone.getAvailableZoneCityIDs(); ``` @@ -1702,7 +1708,7 @@ static getCityDisplayName(cityID: string, locale: string): string **示例:** ```ts - var displayName = i18n.TimeZone.getCityDisplayName("Shanghai", "zh-CN"); + let displayName = I18n.TimeZone.getCityDisplayName("Shanghai", "zh-CN"); // displayName = "上海(中国)" ``` @@ -1728,7 +1734,7 @@ static getTimezoneFromCity(cityID: string): TimeZone **示例:** ```ts - var timezone = i18n.TimeZone.getTimezoneFromCity("Shanghai"); + let timezone = I18n.TimeZone.getTimezoneFromCity("Shanghai"); ``` @@ -1751,7 +1757,9 @@ static getAvailableIDs(): string[] **示例:** ```ts - i18n.Transliterator.getAvailableIDs(); + // ids = ["ASCII-Latin", "Accents-Any", "Amharic-Latin/BGN", ...],共支持671个id + // 每一个id由使用中划线分割的两部分组成,格式为 source-destination + let ids = I18n.Transliterator.getAvailableIDs(); ``` @@ -1777,7 +1785,7 @@ static getInstance(id: string): Transliterator **示例:** ```ts - var transliterator = i18n.Transliterator.getInstance("Any-Latn"); + let transliterator = I18n.Transliterator.getInstance("Any-Latn"); ``` @@ -1803,8 +1811,8 @@ transform(text: string): string **示例:** ```ts - var transliterator = i18n.Transliterator.getInstance("Any-Latn"); - transliterator.transform("中国"); + let transliterator = I18n.Transliterator.getInstance("Any-Latn"); + let res = transliterator.transform("中国"); // res = "zhōng guó" ``` @@ -1833,7 +1841,7 @@ static isDigit(char: string): boolean **示例:** ```js - var isdigit = i18n.Unicode.isDigit("1"); // 返回true + let isdigit = I18n.Unicode.isDigit("1"); // isdigit = true ``` @@ -1859,7 +1867,7 @@ static isSpaceChar(char: string): boolean **示例:** ```js - var isspacechar = i18n.Unicode.isSpaceChar("a"); // 返回false + let isspacechar = I18n.Unicode.isSpaceChar("a"); // isspacechar = false ``` @@ -1885,7 +1893,7 @@ static isWhitespace(char: string): boolean **示例:** ```js - var iswhitespace = i18n.Unicode.isWhitespace("a"); // 返回false + let iswhitespace = I18n.Unicode.isWhitespace("a"); // iswhitespace = false ``` @@ -1911,7 +1919,7 @@ static isRTL(char: string): boolean **示例:** ```js - var isrtl = i18n.Unicode.isRTL("a"); // 返回false + let isrtl = I18n.Unicode.isRTL("a"); // isrtl = false ``` @@ -1937,7 +1945,7 @@ static isIdeograph(char: string): boolean **示例:** ```js - var isideograph = i18n.Unicode.isIdeograph("a"); // 返回false + let isideograph = I18n.Unicode.isIdeograph("a"); // isideograph = false ``` @@ -1963,7 +1971,7 @@ static isLetter(char: string): boolean **示例:** ```js - var isletter = i18n.Unicode.isLetter("a"); // 返回true + let isletter = I18n.Unicode.isLetter("a"); // isletter = true ``` @@ -1989,7 +1997,7 @@ static isLowerCase(char: string): boolean **示例:** ```js - var islowercase = i18n.Unicode.isLowerCase("a"); // 返回true + let islowercase = I18n.Unicode.isLowerCase("a"); // islowercase = true ``` @@ -2015,7 +2023,7 @@ static isUpperCase(char: string): boolean **示例:** ```js - var isuppercase = i18n.Unicode.isUpperCase("a"); // 返回false + let isuppercase = I18n.Unicode.isUpperCase("a"); // isuppercase = false ``` @@ -2041,7 +2049,7 @@ static getType(char: string): string **示例:** ```js - var type = i18n.Unicode.getType("a"); + let type = I18n.Unicode.getType("a"); // type = "U_LOWERCASE_LETTER" ``` @@ -2074,7 +2082,7 @@ static unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: **示例:** ```js - i18n.I18NUtil.unitConvert({unit: "cup", measureSystem: "US"}, {unit: "liter", measureSystem: "SI"}, 1000, "en-US", "long"); + let res = I18n.I18NUtil.unitConvert({unit: "cup", measureSystem: "US"}, {unit: "liter", measureSystem: "SI"}, 1000, "en-US", "long"); // res = 236.588 liters ``` @@ -2100,11 +2108,11 @@ static getDateOrder(locale: string): string **示例:** ```js - i18n.I18NUtil.getDateOrder("zh-CN"); + let order = I18n.I18NUtil.getDateOrder("zh-CN"); // order = "y-L-d" ``` -## i18n.getDisplayCountry(deprecated) +## I18n.getDisplayCountry(deprecated) getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): string @@ -2130,12 +2138,12 @@ getDisplayCountry(country: string, locale: string, sentenceCase?: boolean): stri **示例:** ```js - i18n.getDisplayCountry("zh-CN", "en-GB", true); - i18n.getDisplayCountry("zh-CN", "en-GB"); + let countryName = I18n.getDisplayCountry("zh-CN", "en-GB", true); // countryName = true + countryName = I18n.getDisplayCountry("zh-CN", "en-GB"); // countryName = true ``` -## i18n.getDisplayLanguage(deprecated) +## I18n.getDisplayLanguage(deprecated) getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string @@ -2161,12 +2169,12 @@ getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): st **示例:** ```js - i18n.getDisplayLanguage("zh", "en-GB", true); - i18n.getDisplayLanguage("zh", "en-GB"); + let languageName = I18n.getDisplayLanguage("zh", "en-GB", true); // languageName = "Chinese" + languageName = I18n.getDisplayLanguage("zh", "en-GB"); // languageName = "Chinese" ``` -## i18n.getSystemLanguage(deprecated) +## I18n.getSystemLanguage(deprecated) getSystemLanguage(): string @@ -2184,11 +2192,11 @@ getSystemLanguage(): string **示例:** ```js - i18n.getSystemLanguage(); + let systemLanguage = I18n.getSystemLanguage(); // 返回当前系统语言 ``` -## i18n.getSystemRegion(deprecated) +## I18n.getSystemRegion(deprecated) getSystemRegion(): string @@ -2206,11 +2214,11 @@ getSystemRegion(): string **示例:** ```js - i18n.getSystemRegion(); + let region = I18n.getSystemRegion(); // 返回当前系统地区 ``` -## i18n.getSystemLocale(deprecated) +## I18n.getSystemLocale(deprecated) getSystemLocale(): string @@ -2228,11 +2236,11 @@ getSystemLocale(): string **示例:** ```js - i18n.getSystemLocale(); + let locale = I18n.getSystemLocale(); // 返回系统Locale ``` -## i18n.is24HourClock(deprecated) +## I18n.is24HourClock(deprecated) is24HourClock(): boolean @@ -2250,11 +2258,11 @@ is24HourClock(): boolean **示例:** ```js - var is24HourClock = i18n.is24HourClock(); + let is24HourClock = I18n.is24HourClock(); ``` -## i18n.set24HourClock(deprecated) +## I18n.set24HourClock(deprecated) set24HourClock(option: boolean): boolean @@ -2281,11 +2289,11 @@ set24HourClock(option: boolean): boolean **示例:** ```js // 将系统时间设置为24小时制 - var success = i18n.set24HourClock(true); + let success = I18n.set24HourClock(true); ``` -## i18n.addPreferredLanguage(deprecated) +## I18n.addPreferredLanguage(deprecated) addPreferredLanguage(language: string, index?: number): boolean @@ -2313,13 +2321,13 @@ addPreferredLanguage(language: string, index?: number): boolean **示例:** ```js // 将语言zh-CN添加到系统偏好语言列表中 - var language = 'zh-CN'; - var index = 0; - var success = i18n.addPreferredLanguage(language, index); + let language = 'zh-CN'; + let index = 0; + let success = I18n.addPreferredLanguage(language, index); ``` -## i18n.removePreferredLanguage(deprecated) +## I18n.removePreferredLanguage(deprecated) removePreferredLanguage(index: number): boolean @@ -2346,12 +2354,12 @@ removePreferredLanguage(index: number): boolean **示例:** ```js // 删除系统偏好语言列表中的第一个偏好语言 - var index = 0; - var success = i18n.removePreferredLanguage(index); + let index = 0; + let success = I18n.removePreferredLanguage(index); ``` -## i18n.getPreferredLanguageList(deprecated) +## I18n.getPreferredLanguageList(deprecated) getPreferredLanguageList(): Array<string> @@ -2369,11 +2377,11 @@ getPreferredLanguageList(): Array<string> **示例:** ```js - var preferredLanguageList = i18n.getPreferredLanguageList(); + let preferredLanguageList = I18n.getPreferredLanguageList(); // 获取系统偏好语言列表 ``` -## i18n.getFirstPreferredLanguage(deprecated) +## I18n.getFirstPreferredLanguage(deprecated) getFirstPreferredLanguage(): string @@ -2391,7 +2399,7 @@ getFirstPreferredLanguage(): string **示例:** ```js - var firstPreferredLanguage = i18n.getFirstPreferredLanguage(); + let firstPreferredLanguage = I18n.getFirstPreferredLanguage(); ``` 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 05d5f7c4e56c466eba964e6aefccf4c98b3c0d11..37e3873ff9f58287a76ba217f806c5a75d04d94f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -947,7 +947,8 @@ createImageSource(uri: string): ImageSource **示例:** ```js -let path = this.context.getApplicationContext().fileDirs + "test.jpg"; +let context = featureAbility.getContext(); +let path = context.getCacheDir() + "test.jpg"; const imageSourceApi = image.createImageSource(path); ``` @@ -2529,7 +2530,7 @@ PixelMap的初始化选项。 | 名称 | 类型 | 可读 | 可写 | 说明 | | ------- | ------ | ---- | ---- | --------------------------------------------------- | -| format | string | 是 | 是 | 目标格式。
当前支持格式有:.jpg .png .gif .bmp .webp RAW。 | +| format | string | 是 | 是 | 目标格式。
当前只支持jpg和webp。 | | quality | number | 是 | 是 | JPEG编码中设定输出图片质量的参数,取值范围为1-100。 | | bufferSize9+ | number | 是 | 是 | 用于设置图片大小,默认为10M | 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 9e6e1755b9f38d829dac7d582362568a73afa703..23c699c61844ce162f0f2cce48305b5dfe0aab35 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 92c7a495dd0b9163bbb9d752ce39bad390848e65..82d495b626a03a28d0b2911fe44d573df0402fe1 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 = "rwt"; +let mode = "rwt"; DAHelper.openFile("dataability:///com.example.DataAbility", mode, (err) => { console.info("==========================>Called=======================>"); }); @@ -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 = "rwt"; +let mode = "rwt"; DAHelper.openFile("dataability:///com.example.DataAbility", mode).then((data) => { console.info("==========================>openFileCallback=======================>"); }); @@ -98,7 +98,7 @@ on(type: 'dataChange', uri: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility' -var helper = featureAbility.acquireDataAbilityHelper( +let helper = 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 helper = featureAbility.acquireDataAbilityHelper( +let helper = 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> ```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", @@ -291,7 +291,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) => { @@ -323,7 +323,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) => { @@ -350,7 +350,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) => { @@ -384,7 +384,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) => { @@ -411,7 +411,7 @@ notifyChange(uri: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility' -var helper = featureAbility.acquireDataAbilityHelper( +let helper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); helper.notifyChange("dataability:///com.example.DataAbility", (err) => { @@ -443,7 +443,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(() => { @@ -471,7 +471,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 = { @@ -545,10 +545,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, @@ -582,10 +582,10 @@ batchInsert(uri: string, valuesBuckets: Array): Promise\ { @@ -614,7 +614,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() @@ -650,7 +650,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("==========================>Called=======================>"); @@ -799,10 +799,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("==========================>queryCallback=======================>"); 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 be9ed68779a7f88e1d9bcb7111e06587c034d791..4caa0af24ff66ef7a50d6c8c0df8a302cf51880d 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来表示对数据要执行的操作。 | -| 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类型。 | | 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 19320b673dbebec366d4c01c3b42d358ed81fe93..2a2db17446a8918d850a5b7a143046ea45028379 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'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); bundle.getBundleInfo('com.context.test', 1, (err, datainfo) =>{ context.verifyPermission("com.example.permission", {uid:datainfo.uid}, (err, data) =>{ console.info("verifyPermission err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); @@ -123,7 +123,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)); }); @@ -154,8 +154,8 @@ verifyPermission(permission: string, options?: PermissionOptions): Promise\ { console.info("verifyPermission data: " + JSON.stringify(data)); }); @@ -183,7 +183,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", @@ -223,7 +223,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", @@ -256,7 +256,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)); }); @@ -282,7 +282,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)); }); @@ -308,7 +308,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)); }); @@ -334,7 +334,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)); }); @@ -358,7 +358,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)); }); @@ -382,7 +382,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)); }); @@ -406,7 +406,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)); }); @@ -430,7 +430,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)); }); @@ -456,8 +456,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)); }); @@ -483,8 +483,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)); }); @@ -509,8 +509,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)); }); @@ -540,8 +540,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)); }); @@ -566,8 +566,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)); }); @@ -597,8 +597,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)); }); @@ -625,7 +625,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)); }); @@ -651,7 +651,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)); }); @@ -679,7 +679,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)); }); @@ -707,7 +707,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)); }); @@ -731,7 +731,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)); }); @@ -757,7 +757,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)); }); @@ -783,7 +783,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)); }); @@ -809,7 +809,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)); }); @@ -833,7 +833,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)); }); @@ -857,7 +857,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)); }); @@ -881,7 +881,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)); }); @@ -905,7 +905,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)); }); @@ -931,7 +931,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)); }); @@ -957,7 +957,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)); }); @@ -981,7 +981,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)); }); @@ -1005,7 +1005,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)); }); @@ -1029,7 +1029,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)); }); @@ -1053,7 +1053,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)); }); @@ -1077,7 +1077,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)); }); @@ -1101,7 +1101,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)); }); @@ -1125,7 +1125,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)); }); @@ -1149,7 +1149,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)); }); @@ -1173,7 +1173,7 @@ getApplicationContext(): Context ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext().getApplicationContext(); +let context = featureAbility.getContext().getApplicationContext(); ``` ## Context.isUpdatingConfigurations7+ @@ -1194,7 +1194,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)); }); @@ -1218,7 +1218,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)); }); @@ -1242,7 +1242,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)); }); @@ -1266,7 +1266,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 4a70b8ec6c4296606a5a0f06525fb98a2c651e6a..bcb283693fd299d935a7afa82ca181b9a08c91bf 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 acfee709e8a997133c0b50c2d17ce3c9fe888989..560503e5f56ddbc528cebc4018150c0a9e067ce9 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.application.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 767578018c3fe685801f8cf5bed4d0ec23738955..6026ff334b32e0892c8e6061073eed11efc2841d 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 4664de608fb2b18de7a2160e1c178ade303a1de2..1aa125e161ae0c4118e3f4f989cdb2648c291dcc 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对象、环境变化对象。 @@ -28,5 +28,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 0b4e15087ccbd6d01561b57998b521c1cc113039..89accd1caa760ef3f756d56caaf0e8f77415fee5 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。 | **返回值:** @@ -38,58 +39,58 @@ registerAbilityLifecycleCallback(callback: AbilityLifecycleCallback): **number** **示例:** ```ts -import Ability from "@ohos.application.Ability"; +import UIAbility from '@ohos.app.ability.UIAbility'; -var lifecycleId; +let lifecycleId; -export default class MyAbility extends Ability { +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,30 +100,62 @@ unregisterAbilityLifecycleCallback(callbackId: **number**, callback: AsyncCallb | 参数名 | 类型 | 必填 | 说明 | | ------------- | -------- | ---- | -------------------------- | +| type | "abilityLifecycle" | 是 | 取消监听事件的类型。 | | callbackId | number | 是 | 注册监听应用内生命周期的ID。 | | callback | AsyncCallback\ | 是 | 回调方法。 | **示例:** ```ts -import Ability from "@ohos.application.Ability"; +import UIAbility from '@ohos.app.ability.UIAbility'; -var lifecycleId; +let lifecycleId; -export default class MyAbility extends Ability { +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) + +off(type: "abilityLifecycle", callbackId: **number**): **void**; + +取消监听应用内生命周期 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core -registerEnvironmentCallback(callback: EnvironmentCallback): **number**; +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------- | -------- | ---- | -------------------------- | +| 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。 | **返回值:** @@ -143,11 +177,11 @@ registerEnvironmentCallback(callback: EnvironmentCallback): **number**; **示例:** ```ts -import Ability from "@ohos.application.Ability"; +import UIAbility from '@ohos.app.ability.UIAbility'; -var callbackId; +let callbackId; -export default class MyAbility extends Ability { +export default class EntryAbility extends UIAbility { onCreate() { console.log("MyAbility onCreate") globalThis.applicationContext = this.context.getApplicationContext(); @@ -155,19 +189,22 @@ export default class MyAbility extends Ability { onConfigurationUpdated(config){ console.log("onConfigurationUpdated config:" + JSON.stringify(config)); }, + onMemoryLevel(level){ + console.log("onMemoryLevel level:" + level); + } } // 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异步回调。 @@ -177,22 +214,163 @@ unregisterEnvironmentCallback(callbackId: **number**, callback: AsyncCallback<* | 参数名 | 类型 | 必填 | 说明 | | ------------- | -------- | ---- | -------------------------- | +| type | "environment" | 是 | 取消监听事件的类型。 | | callbackId | number | 是 | 注册监听系统环境变化的ID。 | | callback | AsyncCallback\ | 是 | 回调方法。 | **示例:** ```ts -import Ability from "@ohos.application.Ability"; +import UIAbility from '@ohos.app.ability.UIAbility'; -var callbackId; +let callbackId; -export default class MyAbility extends Ability { +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.killProcessesBySelf9+ + +killProcessesBySelf(): Promise; + +杀死应用所在的进程。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise\> | 以Promise方式返回杀死应用所在的进程结果。 | + +**示例:** + +```ts +let applicationContext = this.context.getApplicationContext(); +applicationContext.killProcessesBySelf().then((data) => { + console.log("The process running information is:" + JSON.stringify(data)); +}).catch((error) => { + console.error("error:" + JSON.stringify(error)); +}); +``` + +## ApplicationContext.killProcessesBySelf9+ + +killProcessesBySelf(callback: AsyncCallback); + +杀死应用所在的进程。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +|AsyncCallback\ | 以callback方式返回杀死应用所在的进程结果。 | + +**示例:** + +```ts +let applicationContext = this.context.getApplicationContext(); +applicationContext.killProcessesBySelf(err => { + if (err.code !== 0) { + console.error("killProcessesBySelf faile, err: " + JSON.stringify(err)); + } +}) ``` \ No newline at end of file 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 071b5563b7621ae381123b55bb09f90009106acb..9e9154fb65b1f60190e2ba0943bfd02cbad91f7e 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 @@ -88,7 +88,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-missionSnapshot.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md index 6cfb665902e90388e9043432406e64996bfe9daf..2dba37ff19cd3f8eac0567d2661a42d0ba396243 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 @@ -28,7 +28,7 @@ missionManager.getMissionInfos("", 10, (error, missions) => { console.log("getMissionInfos is called, error.code = " + error.code); 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) => { console.log("getMissionSnapShot is called, error.code = " + error.code); diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInformation.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processInformation.md similarity index 66% rename from zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInformation.md rename to zh-cn/application-dev/reference/apis/js-apis-inner-application-processInformation.md index 6369bace76dc55fb55bdb32546eadb70a0a58f91..a467c686ec24c88df1c2d50c7cdb84b851dd1196 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInformation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processInformation.md @@ -1,6 +1,6 @@ -# ProcessRunningInformation +# ProcessInformation -ProcessRunningInformation模块提供对进程运行信息进行设置和查询的能力。 +ProcessInformation模块提供对进程运行信息进行查询的能力。 > **说明:** > @@ -8,12 +8,12 @@ ProcessRunningInformation模块提供对进程运行信息进行设置和查询 ## 使用说明 -通过appManager的[getProcessRunningInformation](js-apis-application-appManager.md#appmanagergetprocessrunninginformation9)来获取。 +通过appManager的[getRunningProcessInformation](js-apis-app-ability-appManager.md#appmanagergetrunningprocessinformation9)来获取。 ```ts -import appManager from '@ohos.application.appManager'; +import appManager from '@ohos.app.ability.appManager'; -appManager.getProcessRunningInformation((error, data) => { +appManager.getRunningProcessInformation((error, data) => { console.log("error: " + error.code + " data: " + JSON.stringify(data)); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md index fc37e715b753b0dbf862f67057ff053795cc7098..3a5ee1fad4647b6acfda1ece58627252b9b8112f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md @@ -1,9 +1,9 @@ # ProcessRunningInfo -本模块提供对进程运行信息进行设置和查询的能力。 +本模块提供对进程运行信息进行查询的能力。 > **说明:** -> - 本模块接口从API version 9 开始废弃,建议使用[ProcessRunningInformation9+](js-apis-inner-application-processRunningInformation.md)替代。 +> - 本模块接口从API version 9 开始废弃,建议使用[ProcessInformation9+](js-apis-inner-application-processInformation.md)替代。 > - 本模块首批接口从API version 8 开始支持。 ## 属性 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 85861abfda9517597aba145bed6686b1c049e841..8ef06b823ea366009d3fb520e0c779671ebefa38 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.extreme.test", abilityName: "MainAbility" }; - var options = { + let options = { windowMode: 0 }; @@ -245,6 +245,11 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< 根据account启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **系统API**: 此接口为系统接口,三方应用不支持调用。 @@ -285,12 +290,12 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityWithAccount(want, accountId, (error) => { @@ -316,6 +321,11 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca 根据account启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **系统API**: 此接口为系统接口,三方应用不支持调用。 @@ -357,13 +367,13 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -392,6 +402,11 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): 根据account启动Ability(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 **系统API**: 此接口为系统接口,三方应用不支持调用。 @@ -438,13 +453,13 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -503,7 +518,7 @@ startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -569,7 +584,7 @@ startServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -635,12 +650,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId, (error) => { @@ -706,12 +721,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\ **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId) @@ -765,7 +780,7 @@ stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -828,7 +843,7 @@ stopServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" @@ -890,12 +905,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.stopServiceExtensionAbilityWithAccount(want, accountId, (error) => { @@ -958,12 +973,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.stopServiceExtensionAbilityWithAccount(want, accountId) @@ -1103,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) { @@ -1163,19 +1178,19 @@ connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.extreme.test", abilityName: "MainAbility" }; - 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) { @@ -1199,7 +1214,7 @@ disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback< | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| connection | number | 是 | 在connectAbility中返回的number。 | +| connection | number | 是 | 在connectServiceExtensionAbility中返回的number。 | | callback | AsyncCallback<void> | 否 | 回调函数,返回接口调用是否成功的结果。 | **错误码:** @@ -1217,7 +1232,7 @@ disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback< ```ts // connection为connectServiceExtensionAbility中的返回值 - var connection = 1; + let connection = 1; try { this.context.disconnectServiceExtensionAbility(connection, (error) => { @@ -1251,7 +1266,7 @@ disconnectServiceExtensionAbility(connection: number): Promise<void>; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| connection | number | 是 | 在connectAbility中返回的number。 | +| connection | number | 是 | 在connectServiceExtensionAbility中返回的number。 | **返回值:** @@ -1273,8 +1288,8 @@ disconnectServiceExtensionAbility(connection: number): Promise<void>; **示例:** ```ts - // connection为connectAbility中的返回值 - var connection = 1; + // connection为connectServiceExtensionAbility中的返回值 + let connection = 1; try { this.context.disconnectServiceExtensionAbility(connection) @@ -1300,6 +1315,11 @@ startAbilityByCall(want: Want): Promise<Caller>; 启动指定Ability至前台或后台,同时获取其Caller通信接口,调用方可使用Caller与被启动的Ability进行通信。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **系统API**:此接口为系统接口,三方应用不支持调用。 @@ -1335,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: "MainAbility", @@ -1366,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: "MainAbility", 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 176c5601ce25fa5acb334a7cd7486bc0f534a0e8..1f56e2f24ed5c7503a002797395dbb095082b0cc 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 @@ -25,6 +25,11 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; 启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **参数:** @@ -91,6 +96,11 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& 启动Ability(callback形式)。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **参数:** @@ -161,6 +171,11 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; 启动Ability(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 **参数:** @@ -234,7 +249,15 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): void; -启动Ability并在该Ability退出的时候返回执行结果(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动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 @@ -301,7 +324,15 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback<AbilityResult>): void; -启动Ability并在该Ability退出的时候返回执行结果(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动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 @@ -373,7 +404,15 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityResult>; -启动Ability并在该Ability退出的时候返回执行结果(promise形式)。 +启动一个Ability。Ability被启动后,有如下情况(promise形式): + - 正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动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 @@ -1251,7 +1290,7 @@ terminateSelf(): Promise<void>; terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<void>): void; -停止Ability,配合startAbilityForResult使用,返回给接口调用方AbilityResult信息(callback形式)。 +停止当前的Ability。如果该Ability是通过调用[startAbilityForResult](#uiabilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时会将结果返回给调用者,如果该Ability不是通过调用[startAbilityForResult](#uiabilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时不会有结果返回给调用者(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1310,7 +1349,7 @@ terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<voi terminateSelfWithResult(parameter: AbilityResult): Promise<void>; -停止Ability,配合startAbilityForResult使用,返回给接口调用方AbilityResult信息(promise形式)。 +停止当前的Ability。如果该Ability是通过调用[startAbilityForResult](#uiabilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时会将结果返回给调用者,如果该Ability不是通过调用[startAbilityForResult](#uiabilitycontextstartabilityforresult)接口被拉起的,调用terminateSelfWithResult接口时不会有结果返回给调用者(promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1607,6 +1646,11 @@ startAbilityByCall(want: Want): Promise<Caller>; 启动指定Ability至前台或后台,同时获取其Caller通信接口,调用方可使用Caller与被启动的Ability进行通信。 +使用规则: + - 调用方应用位于后台时,使用该接口启动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 **参数:** 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 4f8c88b6cef94a4cc0fbd79c90c7ccf098ae9ba7..7d51a7aa49dc04ff3f5ee2f40eff4af9f90cb51c 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 7228bf96d4552040fc72de80826c082076802b14..ecfcd0cab044593a8af2bef35fb77bc404a65cea 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-wantAgent.md#WantAgentFlags)> | 否 | 动作执行属性。 | -| extraInfo | {[key: string]: any} | 否 | 额外数据。 | +| wantAgentFlags | Array<[wantAgent.WantAgentFlags](js-apis-app-ability-wantAgent.md#wantagentflags)> | 否 | 动作执行属性。 | +| extraInfo | {[key: string]: any} | 否 | 额外数据。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-intl.md b/zh-cn/application-dev/reference/apis/js-apis-intl.md index d4529752ce2cda61a4bb1154237c6b46bb8613be..584bd5b433ad8435b4c5067b4ec71823219bad56 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-intl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-intl.md @@ -14,7 +14,7 @@ ```js import Intl from '@ohos.intl'; ``` - +未正确导入包可能产生不明确的接口行为。 ## Locale @@ -47,7 +47,10 @@ constructor() **示例:** ```js - var locale = new Intl.Locale(); + // 默认构造函数使用系统当前locale创建Locale对象 + let locale = new Intl.Locale(); + // 返回系统当前localel + let localeID = locale.toString(); ``` @@ -63,12 +66,14 @@ constructor(locale: string, options?: LocaleOptions) | 参数名 | 类型 | 必填 | 说明 | | -------------------- | -------------------------------- | ---- | ---------------------------- | -| locale | string | 是 | 包含区域设置信息的字符串,包括语言以及可选的脚本和区域。 | -| options9+ | [LocaleOptions](#localeoptions9) | 否 | 用于创建区域对象的选项。 | +| locale | string | 是 | 包含区域信息的字符串,包括语言以、脚本、国家或地区。语言、脚本、国家或地区的国际标准及组合方式请见[Intl开发指导](../../internationalization/intl-guidelines.md#设置区域信息) | +| options9+ | [LocaleOptions](#localeoptions6) | 否 | 用于创建区域对象的选项。 | **示例:** ```js - var locale = new Intl.Locale("zh-CN"); + // 创建 "zh-CN" Locale对象 + let locale = new Intl.Locale("zh-CN"); + let localeID = locale.toString(); // localeID = "zh-CN" ``` @@ -76,7 +81,7 @@ constructor(locale: string, options?: LocaleOptions) toString(): string -将区域信息转换为字符串 +获取区域对象的字符串表示 **系统能力**:SystemCapability.Global.I18n @@ -84,12 +89,13 @@ toString(): string | 类型 | 说明 | | ------ | ----------- | -| string | 字符串形式的区域信息。 | +| string | 区域对象的字符串表示。 | **示例:** ```js - var locale = new Intl.Locale("zh-CN"); - locale.toString(); + // 创建 "en-GB" Locale对象 + let locale = new Intl.Locale("en-GB"); + let localeID = locale.toString(); // localeID = "en-GB" ``` @@ -109,8 +115,17 @@ maximize(): Locale **示例:** ```js - var locale = new Intl.Locale("zh-CN"); - locale.maximize(); + // 创建 "zh" Locale对象 + let locale = new Intl.Locale("zh"); + // 补齐Locale对象的脚本和地区 + let maximizedLocale = locale.maximize(); + let localeID = maximizedLocale.toString(); // localeID = "zh-Hans-CN" + + // 创建 "en-US" Locale对象 + locale = new Intl.Locale("en-US"); + // 补齐Locale对象的脚本 + maximizedLocale = locale.maximize(); + localeID = maximizedLocale.toString(); // localeID = "en-Latn-US" ``` @@ -130,12 +145,21 @@ minimize(): Locale **示例:** ```js - var locale = new Intl.Locale("zh-CN"); - locale.minimize(); + // 创建 "zh-Hans-CN" Locale对象 + let locale = new Intl.Locale("zh-Hans-CN"); + // 去除Locale对象的脚本和地区 + let minimizedLocale = locale.minimize(); + let localeID = minimizedLocale.toString(); // localeID = "zh" + + // 创建 "en-US" Locale对象 + locale = new Intl.Locale("en-US"); + // 去除Locale对象的地区 + minimizedLocale = locale.minimize(); + localeID = minimizedLocale.toString(); // localeID = "en" ``` -## LocaleOptions9+ +## LocaleOptions6+ 表示区域初始化选项。 @@ -164,7 +188,8 @@ constructor() **示例:** ```js - var datefmt= new Intl.DateTimeFormat(); + // 使用系统当前locale创建DateTimeFormat对象 + let datefmt= new Intl.DateTimeFormat(); ``` @@ -181,17 +206,19 @@ constructor(locale: string | Array<string>, options?: DateTimeOptions) | 参数名 | 类型 | 必填 | 说明 | | -------------------- | ------------------------------------ | ---- | ---------------------------- | | locale | string \| Array<string> | 是 | 包含区域设置信息的字符串,包括语言以及可选的脚本和区域。 | -| options9+ | [DateTimeOptions](#datetimeoptions9) | 否 | 用于创建时间日期格式化的选项。 | +| options9+ | [DateTimeOptions](#datetimeoptions6) | 否 | 用于创建时间日期格式化的选项。 | **示例:** ```js - var datefmt= new Intl.DateTimeFormat("zh-CN", { dateStyle: 'full', timeStyle: 'medium' }); + // 使用 "zh-CN" locale创建DateTimeFormat对象,日期风格为full,时间风格为medium + let datefmt= new Intl.DateTimeFormat("zh-CN", { dateStyle: 'full', timeStyle: 'medium' }); ``` **示例:** ```js - var datefmt= new Intl.DateTimeFormat(["ban", "zh"], { dateStyle: 'full', timeStyle: 'medium' }); + // 使用 ["ban", "zh"] locale列表创建DateTimeFormat对象,因为ban为非法LocaleID,因此使用zh Locale创建DateTimeFormat对象 + let datefmt= new Intl.DateTimeFormat(["ban", "zh"], { dateStyle: 'full', timeStyle: 'medium' }); ``` @@ -217,9 +244,14 @@ format(date: Date): string **示例:** ```js - var date = new Date(2021, 11, 17, 3, 24, 0); - var datefmt = new Intl.DateTimeFormat("en-GB"); - datefmt.format(date); + let date = new Date(2021, 11, 17, 3, 24, 0); + // 使用 en-GB locale创建DateTimeFormat对象 + let datefmt = new Intl.DateTimeFormat("en-GB"); + let formattedDate = datefmt.format(date); // formattedDate "17/12/2021" + + // 使用 en-GB locale创建DateTimeFormat对象,dateStyle设置为full,timeStyle设置为medium + datefmt = new Intl.DateTimeFormat("en-GB", { dateStyle: 'full', timeStyle: 'medium' }); + formattedDate = datefmt.format(date); // formattedDate "Friday, 17 December 2021 at 03:24:00" ``` @@ -246,10 +278,11 @@ formatRange(startDate: Date, endDate: Date): string **示例:** ```js - var startDate = new Date(2021, 11, 17, 3, 24, 0); - var endDate = new Date(2021, 11, 18, 3, 24, 0); - var datefmt = new Intl.DateTimeFormat("en-GB"); - datefmt.formatRange(startDate, endDate); + let startDate = new Date(2021, 11, 17, 3, 24, 0); + let endDate = new Date(2021, 11, 18, 3, 24, 0); + // 使用 en-GB locale创建DateTimeFormat对象 + let datefmt = new Intl.DateTimeFormat("en-GB"); + let formattedDateRange = datefmt.formatRange(startDate, endDate); // formattedDateRange = "17/12/2021-18/12/2021" ``` @@ -265,16 +298,19 @@ resolvedOptions(): DateTimeOptions | 类型 | 说明 | | ------------------------------------ | ----------------------------- | -| [DateTimeOptions](#datetimeoptions9) | DateTimeFormat 对象的格式化选项。 | +| [DateTimeOptions](#datetimeoptions6) | DateTimeFormat 对象的格式化选项。 | **示例:** ```js - var datefmt = new Intl.DateTimeFormat("en-GB"); - datefmt.resolvedOptions(); + let datefmt = new Intl.DateTimeFormat("en-GB", { dateStyle: 'full', timeStyle: 'medium' }); + // 返回DateTimeFormat对象的配置项 + let options = datefmt.resolvedOptions(); + let dateStyle = options.dateStyle; // dateStyle = "full" + let timeStyle = options.timeStyle; // timeStyle = "medium" ``` -## DateTimeOptions9+ +## DateTimeOptions6+ 表示时间日期格式化选项。 @@ -316,7 +352,8 @@ constructor() **示例:** ```js - var numfmt = new Intl.NumberFormat(); + // 使用系统当前locale创建NumberFormat对象 + let numfmt = new Intl.NumberFormat(); ``` @@ -333,11 +370,12 @@ constructor(locale: string | Array<string>, options?: NumberOptions) | 参数名 | 类型 | 必填 | 说明 | | -------------------- | -------------------------------- | ---- | ---------------------------- | | locale | string \| Array<string> | 是 | 包含区域设置信息的字符串,包括语言以及可选的脚本和区域。 | -| options9+ | [NumberOptions](#numberoptions9) | 否 | 用于创建数字格式化的选项。 | +| options9+ | [NumberOptions](#numberoptions6) | 否 | 用于创建数字格式化的选项。 | **示例:** ```js - var numfmt = new Intl.NumberFormat("en-GB", {style:'decimal', notation:"scientific"}); + // 使用 en-GB locale创建NumberFormat对象,style设置为decimal,notation设置为scientific + let numfmt = new Intl.NumberFormat("en-GB", {style:'decimal', notation:"scientific"}); ``` @@ -364,8 +402,9 @@ format(number: number): string; **示例:** ```js - var numfmt = new Intl.NumberFormat(["en-GB", "zh"], {style:'decimal', notation:"scientific"}); - numfmt.format(1223); + // 使用 ["en-GB", "zh"] locale列表创建NumberFormat对象,因为en-GB为合法LocaleID,因此使用en-GB创建NumberFormat对象 + let numfmt = new Intl.NumberFormat(["en-GB", "zh"], {style:'decimal', notation:"scientific"}); + let formattedNumber = numfmt.format(1223); // formattedNumber = 1.223E3 ``` @@ -381,17 +420,20 @@ resolvedOptions(): NumberOptions | 类型 | 说明 | | -------------------------------- | --------------------------- | -| [NumberOptions](#numberoptions9) | NumberFormat 对象的格式化选项。 | +| [NumberOptions](#numberoptions6) | NumberFormat 对象的格式化选项。 | **示例:** ```js - var numfmt = new Intl.NumberFormat(["en-GB", "zh"], {style:'decimal', notation:"scientific"}); - numfmt.resolvedOptions(); + let numfmt = new Intl.NumberFormat(["en-GB", "zh"], {style:'decimal', notation:"scientific"}); + // 获取NumberFormat对象配置项 + let options = numfmt.resolvedOptions(); + let style = options.style; // style = decimal + let notation = options.notation; // notation = scientific ``` -## NumberOptions9+ +## NumberOptions6+ 表示设备支持的能力。 @@ -433,7 +475,8 @@ constructor() **示例:** ```js - var collator = new Intl.Collator(); + // 使用系统locale创建Collator对象 + let collator = new Intl.Collator(); ``` @@ -450,11 +493,12 @@ constructor(locale: string | Array<string>, options?: CollatorOptions) | 参数名 | 类型 | 必填 | 说明 | | -------------------- | ------------------------------------ | ---- | ---------------------------- | | locale | string \| Array<string> | 是 | 包含区域设置信息的字符串,包括语言以及可选的脚本和区域。 | -| options9+ | [CollatorOptions](#collatoroptions9) | 否 | 用于创建排序对象的选项。 | +| options9+ | [CollatorOptions](#collatoroptions8) | 否 | 用于创建排序对象的选项。 | **示例:** ```js - var collator = new Intl.Collator("zh-CN", {localeMatcher: "lookup", usage: "sort"}); + // 使用 zh-CN locale创建Collator对象,localeMatcher设置为lookup,usage设置为sort + let collator = new Intl.Collator("zh-CN", {localeMatcher: "lookup", usage: "sort"}); ``` @@ -481,8 +525,10 @@ compare(first: string, second: string): number **示例:** ```js - var collator = new Intl.Collator("zh-Hans"); - collator.compare("first", "second"); + // 使用en-GB locale创建Collator对象 + let collator = new Intl.Collator("en-GB"); + // 比较 "first" 和 "second" 的先后顺序 + let compareResult = collator.compare("first", "second"); // compareResult = -1 ``` @@ -498,16 +544,19 @@ resolvedOptions(): CollatorOptions | 类型 | 说明 | | ------------------------------------ | ----------------- | -| [CollatorOptions](#collatoroptions9) | 返回的Collator对象的属性。 | +| [CollatorOptions](#collatoroptions8) | 返回的Collator对象的属性。 | **示例:** ```js - var collator = new Intl.Collator("zh-Hans"); - var options = collator.resolvedOptions(); + let collator = new Intl.Collator("zh-Hans", { usage: 'sort', ignorePunctuation: true }); + // 获取Collator对象的配置项 + let options = collator.resolvedOptions(); + let usage = options.usage; // usage = "sort" + let ignorePunctuation = options.ignorePunctuation; // ignorePunctuation = true ``` -## CollatorOptions9+ +## CollatorOptions8+ 表示Collator可设置的属性。 @@ -517,7 +566,7 @@ resolvedOptions(): CollatorOptions | ----------------- | ------- | ---- | ---- | ---------------------------------------- | | localeMatcher | string | 是 | 是 | locale匹配算法,取值范围:"best fit", "lookup"。 | | usage | string | 是 | 是 | 比较的用途,取值范围:"sort", "search"。 | -| sensitivity | string | 是 | 是 | 表示字符串中的哪些差异会导致非零结果值,取值范围:"base", "accent", "case", "variant"。 | +| sensitivity | string | 是 | 是 | 表示字符串中的哪些差异会导致非零结果值,取值范围:"base", "accent", "case", "letiant"。 | | ignorePunctuation | boolean | 是 | 是 | 表示是否忽略标点符号,取值范围:true, false。 | | collation | string | 是 | 是 | 排序规则,取值范围:"big5han", "compat", "dict", "direct", "ducet", "eor", "gb2312", "phonebk", "phonetic", "pinyin", "reformed", "searchjl", "stroke", "trad", "unihan", "zhuyin"。 | | numeric | boolean | 是 | 是 | 是否使用数字排序,取值范围:true, false。 | @@ -531,13 +580,14 @@ resolvedOptions(): CollatorOptions constructor() -创建PluralRules对象。 +创建单复数对象来计算数字的单复数类别。 **系统能力**:SystemCapability.Global.I18n **示例:** ```js - var pluralRules = new Intl.PluralRules(); + // 使用系统locale创建PluralRules对象 + let pluralRules = new Intl.PluralRules(); ``` @@ -545,7 +595,7 @@ constructor() constructor(locale: string | Array<string>, options?: PluralRulesOptions) -创建PluralRules对象。 +创建单复数对象来计算数字的单复数类别。 **系统能力**:SystemCapability.Global.I18n @@ -554,11 +604,12 @@ constructor(locale: string | Array<string>, options?: PluralRulesOptions) | 参数名 | 类型 | 必填 | 说明 | | -------------------- | ---------------------------------------- | ---- | ---------------------------- | | locale | string \| Array<string> | 是 | 包含区域设置信息的字符串,包括语言以及可选的脚本和区域。 | -| options9+ | [PluralRulesOptions](#pluralrulesoptions9) | 否 | 用于创建单复数对象的选项。 | +| options9+ | [PluralRulesOptions](#pluralrulesoptions8) | 否 | 用于创建单复数对象的选项。 | **示例:** ```js - var pluralRules= new Intl.PluralRules("zh-CN", {"localeMatcher": "lookup", "type": "cardinal"}); + // 使用 zh-CN locale创建PluralRules对象,localeMatcher设置为lookup,type设置为cardinal + let pluralRules= new Intl.PluralRules("zh-CN", {"localeMatcher": "lookup", "type": "cardinal"}); ``` @@ -584,12 +635,19 @@ select(n: number): string **示例:** ```js - var pluralRules = new Intl.PluralRules("zh-Hans"); - pluralRules.select(1); + // 使用 zh-Hans locale创建PluralRules对象 + let zhPluralRules = new Intl.PluralRules("zh-Hans"); + // 计算 zh-Hans locale中数字1对应的单复数类别 + let plural = zhPluralRules.select(1); // plural = other + + // 使用 en-US locale创建PluralRules对象 + let enPluralRules = new Intl.PluralRules("en-US"); + // 计算 en-US locale中数字1对应的单复数类别 + plural = enPluralRules.select(1); // plural = one ``` -## PluralRulesOptions9+ +## PluralRulesOptions8+ 表示PluralRules对象可设置的属性。 @@ -619,7 +677,8 @@ constructor() **示例:** ```js - var relativetimefmt = new Intl.RelativeTimeFormat(); + // 使用系统locale创建RelativeTimeFormat对象 + let relativetimefmt = new Intl.RelativeTimeFormat(); ``` @@ -636,11 +695,12 @@ constructor(locale: string | Array<string>, options?: RelativeTimeFormatIn | 参数名 | 类型 | 必填 | 说明 | | -------------------- | ---------------------------------------- | ---- | ---------------------------- | | locale | string \| Array<string> | 是 | 包含区域设置信息的字符串,包括语言以及可选的脚本和区域。 | -| options9+ | [RelativeTimeFormatInputOptions](#relativetimeformatinputoptions9) | 否 | 用于创建相对时间格式化对象的选项。 | +| options9+ | [RelativeTimeFormatInputOptions](#relativetimeformatinputoptions8) | 否 | 用于创建相对时间格式化对象的选项。 | **示例:** ```js - var relativeTimeFormat = new Intl.RelativeTimeFormat("zh-CN", {"localeMatcher": "lookup", "numeric": "always", "style": "long"}); + // 使用 zh-CN locale创建RelativeTimeFormat对象,localeMatcher设置为lookup,numeric设置为always,style设置为long + let relativeTimeFormat = new Intl.RelativeTimeFormat("zh-CN", {"localeMatcher": "lookup", "numeric": "always", "style": "long"}); ``` @@ -667,8 +727,10 @@ format(value: number, unit: string): string **示例:** ```js - var relativetimefmt = new Intl.RelativeTimeFormat("zh-CN"); - relativetimefmt.format(3, "quarter") + // 使用 zh-CN locale创建RelativeTimeFormat对象 + let relativetimefmt = new Intl.RelativeTimeFormat("zh-CN"); + // 计算 zh-CN locale中数字3,单位quarter的本地化表示 + let formatResult = relativetimefmt.format(3, "quarter"); // formatResult = "3个季度后" ``` @@ -695,8 +757,9 @@ formatToParts(value: number, unit: string): Array<object> **示例:** ```js - var relativetimefmt = new Intl.RelativeTimeFormat("en", {"numeric": "auto"}); - var parts = relativetimefmt.format(10, "seconds"); + // 使用 en locale创建RelativeTimeFormat对象,numeric设置为auto + let relativetimefmt = new Intl.RelativeTimeFormat("en", {"numeric": "auto"}); + let parts = relativetimefmt.formatToParts(10, "seconds"); // parts = [ {type: "literal", value: "in"}, {type: "integer", value: 10, unit: "second"}, {type: "literal", value: "seconds"} ] ``` @@ -716,12 +779,15 @@ resolvedOptions(): RelativeTimeFormatResolvedOptions **示例:** ```js - var relativetimefmt= new Intl.RelativeTimeFormat("en-GB"); - relativetimefmt.resolvedOptions(); + // 使用 en-GB locale创建RelativeTimeFormat对象 + let relativetimefmt= new Intl.RelativeTimeFormat("en-GB", { style: "short" }); + // 获取RelativeTimeFormat对象配置项 + let options = relativetimefmt.resolvedOptions(); + let style = options.style; // style = "short" ``` -## RelativeTimeFormatInputOptions9+ +## RelativeTimeFormatInputOptions8+ 表示RelativeTimeFormat对象可设置的属性。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md index f520831d6033af8aae474842f52c88f721730354..cc1564f43a68281f0eb2f54e1ebf30a9ea0167a4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md @@ -1,8 +1,5 @@ # @ohos.util.LinkedList (线性容器LinkedList) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - LinkedList底层通过双向链表实现,双向链表的每个节点都包含对前一个元素和后一个元素的引用。当需要查询元素时,可以从头遍历,也可以从尾部遍历,插入、删除效率高,查询效率低。LinkedList允许元素为null。 LinkedList和[List](js-apis-list.md)相比,LinkedList是双向链表,可以快速地在头尾进行增删,而List是单向链表,无法双向操作。 @@ -11,8 +8,13 @@ LinkedList和[ArrayList](js-apis-arraylist.md)相比,插入数据效率LinkedL **推荐使用场景:** 当需要频繁的插入删除时,推荐使用LinkedList高效操作。 -文档中存在泛型的使用,涉及以下泛型标记符:
-- T: Type, 类 +文档中存在泛型的使用,涉及以下泛型标记符:
+- T:Type,类 + +> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> +> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + ## 导入模块 @@ -505,6 +507,7 @@ removeFirstFound(element: T): boolean | -------- | -------- | | 10200011 | The removeFirstFound method cannot be bound. | | 10200010 | Container is empty. | +| 10200017 | The element does not exist in this container. | **示例:** @@ -545,6 +548,7 @@ removeLastFound(element: T): boolean | -------- | -------- | | 10200011 | The removeLastFound method cannot be bound. | | 10200010 | Container is empty. | +| 10200017 | The element does not exist in this container. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-list.md b/zh-cn/application-dev/reference/apis/js-apis-list.md index a4f380e16e59f7bfe951515c2c6ecf3308fb8428..e399c28c79fa64200c7fadc54bbc7e7588102709 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-list.md +++ b/zh-cn/application-dev/reference/apis/js-apis-list.md @@ -1,16 +1,18 @@ # @ohos.util.List (线性容器List) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - List底层通过单向链表实现,每个节点有一个指向后一个元素的引用。当需要查询元素时,必须从头遍历,插入、删除效率高,查询效率低。List允许元素为null。 List和[LinkedList](js-apis-linkedlist.md)相比,LinkedList是双向链表,可以快速地在头尾进行增删,而List是单向链表,无法双向操作。 **推荐使用场景:** 当需要频繁的插入删除时,推荐使用List高效操作。 -文档中存在泛型的使用,涉及以下泛型标记符:
-- T: Type, 类 +文档中存在泛型的使用,涉及以下泛型标记符:
+- T:Type,类 + +> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> +> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-matrix4.md b/zh-cn/application-dev/reference/apis/js-apis-matrix4.md index bd45815101ffa3a86a7f6645e0d5ce59b1563ba4..e5b5be56efe03b57f0c799ed806d7810809f1735 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-matrix4.md +++ b/zh-cn/application-dev/reference/apis/js-apis-matrix4.md @@ -453,7 +453,7 @@ struct Test { .width('600px') .height('300px') .margin({ top: 50 }) - Text(`矩阵变换前的坐标:[${this.transformPoint}]`) + Text(`矩阵变换后的坐标:[${this.transformPoint}]`) .fontSize(16) .margin({ top: 100 }) Image($r("app.media.image")) 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 d35a9dd3f903e2bf7e7d52671d0252fc6b0904b6..f90b1d63669ce735a9c975a87211de819e1b375d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-media.md +++ b/zh-cn/application-dev/reference/apis/js-apis-media.md @@ -363,7 +363,7 @@ Audio/Video播放demo可参考:[AVPlayer开发指导](../../media/avplayer-pla | surfaceId9+ | string | 是 | 是 | 视频窗口ID,默认无窗口,只允许在**initialized**状态下设置,静态属性。
使用场景:视频播放的窗口渲染,纯音频播放不用设置。
**使用示例**:
[通过Xcomponent创建surfaceId](../arkui-ts/ts-basic-components-xcomponent.md#getxcomponentsurfaceid)。 | | 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) | 是 | 是 | 音频焦点模型,默认INDEPENDENT_MODE,动态属性。
只允许在**prepared**/**playing**/**paused**/**completed**状态下设置。 | +| audioInterruptMode9+ | [audio.InterruptMode](js-apis-audio.md#interruptmode9) | 是 | 是 | 音频焦点模型,默认SHARE_MODE,动态属性。
只允许在**prepared**/**playing**/**paused**/**completed**状态下设置。 | | state9+ | [AVPlayerState](#avplayerstate9) | 是 | 否 | 音视频播放的状态,全状态有效,可查询参数。 | | currentTime9+ | number | 是 | 否 | 视频的当前播放位置,单位为毫秒(ms),可查询参数。
返回为(-1)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。 | | duration9+ | number | 是 | 否 | 视频时长,单位为毫秒(ms),可查询参数。
返回为(-1)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。
直播场景默认返回(-1)。 | @@ -1691,7 +1691,9 @@ prepare(config: AVRecorderConfig, callback: AsyncCallback\): void **需要权限:** ohos.permission.MICROPHONE -不涉及音频录制时,可以不需要获取ohos.permission.MICROPHONE权限。涉及相机视频录制则需要额外获取相机权限ohos.permission.CAMERA。 +不涉及音频录制时,可以不需要获取ohos.permission.MICROPHONE权限。 + +使用相机视频录制还需要与相机模块配合,权限获取以及接口使用详见[相机管理](js-apis-camera.md)。 **系统能力:** SystemCapability.Multimedia.Media.AVRecorder @@ -1754,7 +1756,9 @@ prepare(config: AVRecorderConfig): Promise\ **需要权限:** ohos.permission.MICROPHONE -不涉及音频录制时,可以不需要获ohos.permission.MICROPHONE权限。涉及相机视频录制则需要额外获取相机权限ohos.permission.CAMERA。 +不涉及音频录制时,可以不需要获ohos.permission.MICROPHONE权限。 + +使用相机视频录制还需要与相机模块配合,权限获取以及接口使用详见[相机管理](js-apis-camera.md)。 **系统能力:** SystemCapability.Multimedia.Media.AVRecorder @@ -2478,7 +2482,7 @@ AVRecorder.off('error'); | audioSourceType | [AudioSourceType](#audiosourcetype9) | 否 | 选择录制的音频源类型。选择音频录制时必填。 | | videoSourceType | [VideoSourceType](#videosourcetype9) | 否 | 选择录制的视频源类型。选择视频录制时必填。 | | profile | [AVRecorderProfile](#avrecorderprofile9) | 是 | 录制的profile,必要参数。 | -| url | string | 是 | 录制输出URL:fd://xx (fd number) ![img](https://gitee.com/huang-xl/docs/raw/20221216_avplayer_doc/zh-cn/application-dev/reference/apis/figures/zh-cn_image_url.png),必要参数。 | +| url | string | 是 | 录制输出URL:fd://xx (fd number) ![img](figures/zh-cn_image_url.png),必要参数。 | | rotation | number | 否 | 录制的视频旋转角度,仅支持0,90,180,270。 | | location | [Location](#location) | 否 | 录制的地理位置。 | 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 79f1735cf8804de008c408b0ee7c52190dc1e04f..0b0b8964a6bafc9bb57b923b261a018194c13203 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-notificationManager.md b/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md index 7c53b3cd6e78afc6cc4f8520689bc6c193e8e474..082c541329f95275d81f93e69c4db19cced495da 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md @@ -29,6 +29,8 @@ publish(request: NotificationRequest, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------------- | | 1600001 | Internal error. | @@ -82,6 +84,8 @@ publish(request: NotificationRequest): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------------- | | 1600001 | Internal error. | @@ -134,6 +138,8 @@ publish(request: NotificationRequest, userId: number, callback: AsyncCallback\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------------- | | 1600001 | Internal error. | @@ -244,6 +252,8 @@ cancel(id: number, label: string, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -284,6 +294,8 @@ cancel(id: number, label?: string): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -318,6 +330,8 @@ cancel(id: number, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -351,6 +365,8 @@ cancelAll(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -389,6 +405,8 @@ cancelAll(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -426,6 +444,8 @@ addSlot(slot: NotificationSlot, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -472,6 +492,8 @@ addSlot(slot: NotificationSlot): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -509,6 +531,8 @@ addSlot(type: SlotType, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -547,6 +571,8 @@ addSlot(type: SlotType): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -584,6 +610,8 @@ addSlots(slots: Array\, callback: AsyncCallback\): voi **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -634,6 +662,8 @@ addSlots(slots: Array\): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -675,6 +705,8 @@ getSlot(slotType: SlotType, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -720,6 +752,8 @@ getSlot(slotType: SlotType): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -753,6 +787,8 @@ getSlots(callback: AsyncCallback>): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -791,6 +827,8 @@ getSlots(): Promise\> **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -824,6 +862,8 @@ removeSlot(slotType: SlotType, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -863,6 +903,8 @@ removeSlot(slotType: SlotType): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -896,6 +938,8 @@ removeAllSlots(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -927,6 +971,8 @@ removeAllSlots(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -965,6 +1011,8 @@ setNotificationEnable(bundle: BundleOption, enable: boolean, callback: AsyncCall **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1011,6 +1059,8 @@ setNotificationEnable(bundle: BundleOption, enable: boolean): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1052,6 +1102,8 @@ isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1103,6 +1155,8 @@ isNotificationEnabled(bundle: BundleOption): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1143,6 +1197,8 @@ isNotificationEnabled(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -1191,6 +1247,8 @@ isNotificationEnabled(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1230,6 +1288,8 @@ displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1317,6 +1379,8 @@ isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1368,6 +1432,8 @@ isBadgeDisplayed(bundle: BundleOption): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1410,6 +1476,8 @@ setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCal **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1461,6 +1529,8 @@ setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1505,6 +1575,8 @@ getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback> **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1597,6 +1671,8 @@ getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): voi **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1648,6 +1724,8 @@ getSlotNumByBundle(bundle: BundleOption): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -1689,6 +1767,8 @@ getAllActiveNotifications(callback: AsyncCallback>) **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -1731,6 +1811,8 @@ getAllActiveNotifications(): Promise\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -1801,6 +1885,8 @@ getActiveNotificationCount(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -1833,6 +1919,8 @@ getActiveNotifications(callback: AsyncCallback>): v **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -1871,6 +1959,8 @@ getActiveNotifications(): Promise\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -1944,6 +2036,8 @@ cancelGroup(groupName: string): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -1983,6 +2077,8 @@ removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCall **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -2030,6 +2126,8 @@ removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -2070,6 +2168,8 @@ setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): vo **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2118,6 +2218,8 @@ setDoNotDisturbDate(date: DoNotDisturbDate): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2160,6 +2262,8 @@ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallb **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2212,6 +2316,8 @@ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2256,6 +2362,8 @@ getDoNotDisturbDate(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2298,6 +2406,8 @@ getDoNotDisturbDate(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2334,6 +2444,8 @@ getDoNotDisturbDate(userId: number, callback: AsyncCallback\) **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2385,6 +2497,8 @@ getDoNotDisturbDate(userId: number): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2403,9 +2517,9 @@ Notification.getDoNotDisturbDate(userId).then((data) => { ``` -## Notification.supportDoNotDisturbMode +## Notification.isSupportDoNotDisturbMode -supportDoNotDisturbMode(callback: AsyncCallback\): void +isSupportDoNotDisturbMode(callback: AsyncCallback\): void 查询是否支持免打扰功能(Callback形式)。 @@ -2423,6 +2537,8 @@ supportDoNotDisturbMode(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2432,22 +2548,22 @@ supportDoNotDisturbMode(callback: AsyncCallback\): void **示例:** ```js -function supportDoNotDisturbModeCallback(err,data) { +function isSupportDoNotDisturbModeCallback(err,data) { if (err) { - console.info("supportDoNotDisturbMode failed " + JSON.stringify(err)); + console.info("isSupportDoNotDisturbMode failed " + JSON.stringify(err)); } else { - console.info("supportDoNotDisturbMode success"); + console.info("isSupportDoNotDisturbMode success"); } } -Notification.supportDoNotDisturbMode(supportDoNotDisturbModeCallback); +Notification.isSupportDoNotDisturbMode(supportDoNotDisturbModeCallback); ``` -## Notification.supportDoNotDisturbMode +## Notification.isSupportDoNotDisturbMode -supportDoNotDisturbMode(): Promise\ +isSupportDoNotDisturbMode(): Promise\ 查询是否支持勿扰模式功能(Promise形式)。 @@ -2465,6 +2581,8 @@ supportDoNotDisturbMode(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2474,8 +2592,8 @@ supportDoNotDisturbMode(): Promise\ **示例:** ```js -Notification.supportDoNotDisturbMode().then((data) => { - console.info("supportDoNotDisturbMode success, data: " + JSON.stringify(data)); +Notification.isSupportDoNotDisturbMode().then((data) => { + console.info("isSupportDoNotDisturbMode success, data: " + JSON.stringify(data)); }); ``` @@ -2498,6 +2616,8 @@ isSupportTemplate(templateName: string, callback: AsyncCallback\): voi **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2544,6 +2664,8 @@ isSupportTemplate(templateName: string): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2579,6 +2701,8 @@ requestEnableNotification(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2611,6 +2735,8 @@ requestEnableNotification(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2648,6 +2774,8 @@ setDistributedEnable(enable: boolean, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2693,6 +2821,8 @@ setDistributedEnable(enable: boolean): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2727,6 +2857,8 @@ isDistributedEnabled(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2766,6 +2898,8 @@ isDistributedEnabled(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -2805,6 +2939,8 @@ setDistributedEnableByBundle(bundle: BundleOption, enable: boolean, callback: As **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -2856,6 +2992,8 @@ setDistributedEnableByBundle(bundle: BundleOption, enable: boolean): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -2994,6 +3136,8 @@ getDeviceRemindType(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -3036,6 +3180,8 @@ getDeviceRemindType(): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -3074,6 +3220,8 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------------- | | 1600001 | Internal error. | @@ -3138,6 +3286,8 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------------- | | 1600001 | Internal error. | @@ -3198,6 +3348,8 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number, callbac **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -3249,6 +3401,8 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number): Promis **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -3293,6 +3447,8 @@ setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean, **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -3341,6 +3497,8 @@ setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean) **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -3382,6 +3540,8 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncC **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -3434,6 +3594,8 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -3862,7 +4032,7 @@ Notification.getSyncNotificationEnabledWithoutApp(userId).then((data) => { | label | string | 是 | 是 | 通知标签。 | | badgeIconStyle | number | 是 | 是 | 通知角标类型。 | | showDeliveryTime | boolean | 是 | 是 | 是否显示分发时间。 | -| actionButtons | Array\<[NotificationActionButton](#notificationactionbutton)\> | 是 | 是 | 通知按钮,最多两个按钮。 | +| actionButtons | Array\<[NotificationActionButton](#notificationactionbutton)\> | 是 | 是 | 通知按钮,最多三个按钮。 | | smallIcon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知小图标。可选字段,大小不超过30KB。 | | largeIcon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知大图标。可选字段,大小不超过30KB。 | | creatorBundleName | string | 是 | 否 | 创建通知的包名。 | 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 cc3438f5a42df3976a7f472312d4c67310715b4d..a44e8a95f6245ff1fc3b2eec29f7096935f90600 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md +++ b/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md @@ -36,6 +36,8 @@ subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, c **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -88,6 +90,8 @@ subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -136,6 +140,8 @@ subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -179,6 +185,8 @@ unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\) **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -226,6 +234,8 @@ unsubscribe(subscriber: NotificationSubscriber): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -271,6 +281,8 @@ remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveRea **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -324,6 +336,8 @@ remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveRea **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -372,6 +386,8 @@ remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -418,6 +434,8 @@ remove(hashCode: string, reason: RemoveReason): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -458,6 +476,8 @@ removeAll(bundle: BundleOption, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -503,6 +523,8 @@ removeAll(callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -545,6 +567,8 @@ removeAll(bundle?: BundleOption): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 1600001 | Internal error. | @@ -582,6 +606,8 @@ removeAll(userId: number, callback: AsyncCallback\): void **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | @@ -625,6 +651,8 @@ removeAll(userId: number): Promise\ **错误码:** +错误码详细介绍请参考[errcode-notification](../errorcodes/errorcode-notification.md)。 + | 错误码ID | 错误信息 | | -------- | ----------------------------------- | | 1600001 | Internal error. | 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..5ebba5403091c43c966efcd65f141923bc535f8c 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,18 @@ on\(type: \'networkStateChange\', callback: Callback\): void; | type | string | 是 | 网络状态变化事件 | | callback | Callback\<[NetworkState](js-apis-radio.md#networkstate)\> | 是 | 回调函数。参考radio的[NetworkState](js-apis-radio.md#networkstate) | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +69,18 @@ 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) | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +109,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 +144,18 @@ on\(type: \'signalInfoChange\', callback: Callback\>): | type | string | 是 | 信号状态变化事件 | | callback | Callback\> | 是 | 回调函数。参考radio的[SignalInformation](js-apis-radio.md#signalinformation) | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +181,18 @@ on\(type: \'signalInfoChange\', options: { slotId: number }, callback: Callback< | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | Callback\> | 是 | 回调函数。参考radio的[SignalInformation](js-apis-radio.md#signalinformation) | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +221,17 @@ off\(type: \'signalInfoChange\', callback?: Callback\> | type | string | 是 | 信号状态变化事件 | | callback | Callback\> | 否 | 回调函数。参考radio的[SignalInformation](js-apis-radio.md#signalinformation) | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +260,17 @@ 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:电话号码 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +296,17 @@ 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:电话号码 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +335,17 @@ 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:电话号码 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +374,17 @@ 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)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +410,17 @@ 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)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +449,17 @@ 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)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +488,17 @@ 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)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +524,17 @@ 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)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +563,17 @@ 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)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +602,17 @@ on\(type: 'simStateChange', callback: Callback\\): void; | type | string | 是 | sim状态更改事件 | | callback | Callback\<[SimStateData](#simstatedata7)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +638,17 @@ on\(type: 'simStateChange', options: { slotId: number }, callback: Callback\- 0:卡槽1
- 1:卡槽2 | | callback | Callback\<[SimStateData](#simstatedata7)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +677,17 @@ off\(type: 'simStateChange', callback?: Callback\\): void; | type | string | 是 | sim状态更改事件 | | callback | Callback\<[SimStateData](#simstatedata7)\> | 否 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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-permissionrequestresult.md b/zh-cn/application-dev/reference/apis/js-apis-permissionrequestresult.md index e6c7832bdb314f38903b4e594c439ea0aa9d10de..1eae91fc9ae92b7a9082ae4a66692a45a77ddf73 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-permissionrequestresult.md +++ b/zh-cn/application-dev/reference/apis/js-apis-permissionrequestresult.md @@ -14,7 +14,7 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | permissions | Array<string> | 是 | 否 | 用户传入的权限。| -| authResults | Array<number> | 是 | 否 | 相应请求权限的结果:0表示授权成功,非0表示失败。 | +| authResults | Array<number> | 是 | 否 | 相应请求权限的结果:
-1表示权限已设置,无需弹窗,需要用户在"设置"中修改。
0表示无需任何操作。
1表示需要动态弹窗授权。
2表示请求无效,可能原因有:
-未在设置文件中声明目标权限;
-权限名非法;
-部分权限存在特殊申请条件,在申请对应权限时未满足其指定的条件,见[ohos.permission.LOCATION](../../security/permission-list.md#ohospermissionlocation)与[ohos.permission.APPROXIMATELY_LOCATION](../../security/permission-list.md#ohospermissionapproximately_location)| ## 使用说明 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 d5147fc80cc2a3bd1bdbb2dca386aeaf13d27c62..d7244da3bbc60c50798d1dabefa46a4019ce887d 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,18 @@ getRadioTech\(slotId: number, callback: AsyncCallback<\{psRadioTech: RadioTechno | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<{psRadioTech: [RadioTechnology](#radiotechnology), csRadioTech:[RadioTechnology](#radiotechnology)}\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +74,18 @@ getRadioTech\(slotId: number\): Promise<\{psRadioTech: RadioTechnology, csRadioT | ------------------------------------------------------------ | ----------------------------------------------- | | Promise<{psRadioTech: [RadioTechnology](#radiotechnology), csRadioTech: [RadioTechnology](#radiotechnology)}> | 以Promise形式返回获取当前接入的CS域和PS域技术。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +115,18 @@ getNetworkState\(callback: AsyncCallback\): void | -------- | ---------------------------------------------- | ---- | ---------- | | callback | AsyncCallback\<[NetworkState](#networkstate)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +153,18 @@ getNetworkState\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NetworkState](#networkstate)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +197,18 @@ getNetworkState\(slotId?: number\): Promise | ---------------------------------------- | --------------------------- | | Promise\<[NetworkState](#networkstate)\> | 以Promise形式返回网络状态。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +237,17 @@ getNetworkSelectionMode\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NetworkSelectionMode](#networkselectionmode)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +278,17 @@ getNetworkSelectionMode\(slotId: number\): Promise | -------------------------------------------------------- | ------------------------------- | | Promise\<[NetworkSelectionMode](#networkselectionmode)\> | 以Promise形式返回当前选网模式。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +317,17 @@ getISOCountryCodeForNetwork\(slotId: number, callback: AsyncCallback\): | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。返回国家码,例如:CN(中国)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +358,17 @@ getISOCountryCodeForNetwork\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回注册网络所在国家的ISO国家码,例如CN(中国)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +396,17 @@ getPrimarySlotId\(callback: AsyncCallback\\): void | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | callback | AsyncCallback\ | 是 | 回调函数 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +430,17 @@ getPrimarySlotId\(\): Promise\ | ----------------------------------------------------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回获取设备主卡所在卡槽的索引号的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +468,17 @@ getSignalInformation\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\\> | 是 | 回调函数,返回[SignalInformation](#signalinformation)对象的数组。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +509,17 @@ getSignalInformation\(slotId: number\): Promise\> | ----------------------------------------------------------- | ------------------------------------------------------------ | | Promise\\> | 以Promise形式返回网络信号强度[SignalInformation](#signalinformation)对象的数组。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -384,12 +532,16 @@ promise.then(data => { }); ``` -## radio.isNrSupported7+ +## radio.isNrSupported(deprecated) isNrSupported\(\): boolean 判断当前设备是否支持5G\(NR\)。 +> **说明:** +> +> 从 API version 7开始支持,从API version 9开始废弃。建议使用[isNRSupported](#radioisnrsupported9)替代。 + **系统能力**:SystemCapability.Telephony.CoreService **返回值:** @@ -405,12 +557,16 @@ let result = radio.isNrSupported(); console.log("Result: "+ result); ``` -## radio.isNrSupported8+ +## radio.isNrSupported(deprecated) isNrSupported\(slotId: number\): boolean 判断当前设备是否支持5G\(NR\)。 +> **说明:** +> +> 从 API version 8开始支持,从API version 9开始废弃。建议使用[isNRSupported](#radioisnrsupported9-1)替代。 + **系统能力**:SystemCapability.Telephony.CoreService **参数:** @@ -434,6 +590,57 @@ console.log("Result: "+ result); ``` +## radio.isNRSupported9+ + +isNRSupported\(\): boolean + +判断当前设备是否支持5G\(NR\)。 + +**系统能力**:SystemCapability.Telephony.CoreService + +**返回值:** + +| 类型 | 说明 | +| ------- | -------------------------------- | +| boolean | - true:支持
- false:不支持 | + +**示例:** + +```js +let result = radio.isNRSupported(); +console.log("Result: "+ result); +``` + + +## radio.isNRSupported9+ + +isNRSupported\(slotId: number\): boolean + +判断当前设备是否支持5G\(NR\)。 + +**系统能力**:SystemCapability.Telephony.CoreService + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------------------------------------- | +| slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | + +**返回值:** + +| 类型 | 说明 | +| ------------------ | ------------------------------------------------------------ | +| boolean | - true:支持
- false:不支持 | + +**示例:** + +```js +let slotId = 0; +let result = radio.isNRSupported(slotId); +console.log("Result: "+ result); +``` + + ## radio.isRadioOn7+ isRadioOn\(callback: AsyncCallback\): void @@ -450,6 +657,18 @@ isRadioOn\(callback: AsyncCallback\): void | -------- | ------------------------ | ---- | ------------------------------------------------------- | | callback | AsyncCallback\ | 是 | 回调函数。
- true:Radio打开
- false:Radio关闭 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -476,6 +695,18 @@ isRadioOn\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。
- true:Radio打开
- false:Radio关闭 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -508,6 +739,18 @@ isRadioOn\(slotId?: number\): Promise | ------------------ | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回判断Radio是否打开的结果。
- true:Radio打开
- false:Radio关闭 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -536,6 +779,17 @@ getOperatorName\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数,返回运营商名称,例如:中国移动。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -566,6 +820,17 @@ getOperatorName\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回运营商名称,例如:中国移动。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -597,6 +862,19 @@ setPrimarySlotId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -631,6 +909,19 @@ setPrimarySlotId\(slotId: number\): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -661,6 +952,18 @@ getIMEI(callback: AsyncCallback): void | -------- | ----------------------- | ---- | ------------------------------------------ | | callback | AsyncCallback\ | 是 | 回调函数,如果IMEI不存在,则返回空字符串。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -689,6 +992,18 @@ getIMEI(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数,如果IMEI不存在,则返回空字符串。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -723,6 +1038,18 @@ getIMEI(slotId?: number): Promise | ----------------- | ------------------------------------------ | | Promise\ | 以Promise形式异步返回IMEI;如果IMEI不存在,则返回空字符串。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -753,6 +1080,18 @@ getMEID(callback: AsyncCallback): void | -------- | ----------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -781,6 +1120,18 @@ getMEID(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -815,6 +1166,18 @@ getMEID(slotId?: number): Promise | ----------------- | --------------------------------------- | | Promise\ | 以Promise形式返回设备的指定卡槽的MEID。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -845,6 +1208,18 @@ getUniqueDeviceId(callback: AsyncCallback): void | -------- | ----------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -873,6 +1248,18 @@ getUniqueDeviceId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -907,6 +1294,18 @@ getUniqueDeviceId(slotId?: number): Promise | ----------------- | --------------------------------------------- | | Promise\ | 以Promise形式返回设备的指定卡槽的唯一设备ID。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -937,6 +1336,18 @@ sendUpdateCellLocationRequest\(callback: AsyncCallback\): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -964,6 +1375,18 @@ sendUpdateCellLocationRequest\(slotId: number, callback: AsyncCallback\): | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -997,6 +1420,18 @@ sendUpdateCellLocationRequest\(slotId?: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1027,6 +1462,18 @@ getCellInformation(callback: AsyncCallback>): void | -------- | ------------------------------------------------------------ | ---- | ------------------------ | | callback | AsyncCallback\\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1055,6 +1502,18 @@ getCellInformation(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1089,6 +1548,18 @@ getCellInformation(slotId?: number): Promise\> | ------------------------------------------------------- | ----------------------- | | Promise\\> | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1120,6 +1591,18 @@ setNetworkSelectionMode\(options: NetworkSelectionModeOptions, callback: AsyncCa | options | [NetworkSelectionModeOptions](#networkselectionmodeoptions) | 是 | 网络选择模式选项。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1164,6 +1647,18 @@ setNetworkSelectionMode\(options: NetworkSelectionModeOptions\): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1206,6 +1701,18 @@ getNetworkSearchInformation\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NetworkSearchResult](#networksearchresult)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1238,6 +1745,18 @@ getNetworkSearchInformation\(slotId: number\): Promise | ------------------------------------------------------ | ----------------------- | | Promise\<[NetworkSearchResult](#networksearchresult)\> | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1784,17 @@ getNrOptionMode(callback: AsyncCallback): void | -------- | ----------------------------------------------- | ---- | ---------- | | callback | AsyncCallback\<[NrOptionMode](#nroptionmode8)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1291,6 +1821,17 @@ getNrOptionMode(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NrOptionMode](#nroptionmode8)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1323,6 +1864,17 @@ getNrOptionMode(slotId?: number): Promise | ----------------------------------------- | ----------------------- | | Promise\<[NrOptionMode](#nroptionmode8)\> | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1353,6 +1905,18 @@ turnOnRadio(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1381,6 +1945,18 @@ turnOnRadio(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1415,6 +1991,18 @@ turnOnRadio(slotId?: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1445,6 +2033,18 @@ turnOffRadio(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1473,6 +2073,18 @@ turnOffRadio(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1507,6 +2119,18 @@ turnOffRadio(slotId?: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1539,6 +2163,18 @@ setPreferredNetwork\(slotId: number, networkMode: PreferredNetworkMode, callback | networkMode | [PreferredNetworkMode](#preferrednetworkmode8) | 是 | 设置首选网络模式。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1572,6 +2208,18 @@ setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise< | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1597,11 +2245,23 @@ getPreferredNetwork\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------------------------------- | ---- | -------------------------------------- | +| slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[PreferredNetworkMode](#preferrednetworkmode8)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1634,6 +2294,18 @@ getPreferredNetwork(slotId: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1665,6 +2337,18 @@ getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1698,6 +2382,18 @@ getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise | ------------------------------------- | ----------------------- | | Promise\<[ImsRegInfo](#imsreginfo9)\> | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1730,6 +2426,18 @@ on(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback: | imsType | [ImsServiceType](#imsservicetype9) | 是 | IMS服务类型。 | | callback | Callback<[ImsRegInfo](#imsreginfo9)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1759,6 +2467,18 @@ off(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback | imsType | [ImsServiceType](#imsservicetype9) | 是 | IMS服务类型。 | | callback | Callback<[ImsRegInfo](#imsreginfo9)> | 否 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 @@ -1796,11 +2516,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 31d80be61ea3adb0d1cffbb2ac63ea6461e94ea4..2a0ff7f77f0bf3109bbb8bbca987759d32c0d662 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -280,91 +280,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: 'https://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: 'https://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对象。 @@ -933,78 +848,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 下载任务。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md b/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md index 339916a267b0a8a6b64c8182a2b7d390f406af1e..e959b5c021035b4bef999fd8b78ecca9fc14b008 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md @@ -60,6 +60,7 @@ getResourceManager(callback: AsyncCallback<ResourceManager>): void }); }); ``` +注:示例代码中的0x1000000表示资源对应的id, 其可在编译后的文件ResourceTable.txt中找到。 ## resourceManager.getResourceManager @@ -116,6 +117,7 @@ getResourceManager(): Promise<ResourceManager> console.log("error is " + error); }); ``` +注:示例代码中的0x1000000表示资源对应的id, 其可在编译后的文件ResourceTable.txt中找到。 ## resourceManager.getResourceManager diff --git a/zh-cn/application-dev/reference/apis/js-apis-router.md b/zh-cn/application-dev/reference/apis/js-apis-router.md index d300579e5ff8a1b9f631fb8582b36d4ed28dd769..501884d2dc3a30ef1454a4dcfe9104275fd0997c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-router.md +++ b/zh-cn/application-dev/reference/apis/js-apis-router.md @@ -572,7 +572,7 @@ router.getParams(); | 名称 | 说明 | | -------- | ------------------------------------------------------------ | -| Standard | 标准模式。
目标页面会被添加到页面路由栈顶,无论栈中是否存在相同url的页面。 | +| Standard | 标准模式。
目标页面会被添加到页面路由栈顶,无论栈中是否存在相同url的页面。
**说明:**不使用路由跳转模式时,按标准模式跳转。 | | Single | 单实例模式。
如果目标页面的url在页面栈中已经存在同url页面,离栈顶最近的页面会被移动到栈顶,移动后的页面为新建页。
如目标页面的url在页面栈中不存在同url页面,按标准模式跳转。 | ## 完整示例 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 8f0c38fc5710505d39524bd4e380ee4ea218b322..3b838f5fc0451dacde6a3c351fc5d95cca391a8b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-rpc.md +++ b/zh-cn/application-dev/reference/apis/js-apis-rpc.md @@ -884,9 +884,9 @@ writeDouble(val: number): void **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | ------ | ------ | ---- | ------ | - | val number | 是 | 要写入的双精度浮点值。 | + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | ---------------------- | + | val | number | 是 | 要写入的双精度浮点值。 | **错误码:** 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..1117f4ccd29b3d978aee7214c8ea10572fd05c9c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screen.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screen.md @@ -724,8 +724,8 @@ try { | 名称 | 类型 | 可读 | 可写 | 说明 | | --------- | -------- | ---- | ---- | ------------------------- | | name | string | 是 | 是 | 指定虚拟屏幕的名称。 | -| width | number | 是 | 是 | 指定虚拟屏幕的宽度。 | -| height | number | 是 | 是 | 指定虚拟屏幕的高度。 | +| width | number | 是 | 是 | 指定虚拟屏幕的宽度,单位为像素。 | +| height | number | 是 | 是 | 指定虚拟屏幕的高度,单位为像素。 | | density | number | 是 | 是 | 指定虚拟屏幕的密度。 | | surfaceId | string | 是 | 是 | 指定虚拟屏幕的surfaceId。 | @@ -1006,6 +1006,6 @@ try { | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------- | -------- | ---- | ---- | -------------------------------------------------- | | id | number | 是 | 是 | 模式id,所支持的模式由具体设备分辨率和刷新率决定。 | -| width | number | 是 | 是 | 屏幕的宽度。 | -| height | number | 是 | 是 | 屏幕的高度。 | +| width | number | 是 | 是 | 屏幕的宽度,单位为像素。 | +| height | number | 是 | 是 | 屏幕的高度,单位为像素。 | | refreshRate | number | 是 | 是 | 屏幕的刷新率。 | \ No newline at end of file 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 eff4c46ac3f4eba78da9e88354f39f455c697956..73b75b5381307ae355769a5426e3beb67cd6db52 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sensor.md @@ -3476,7 +3476,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..4b211c05a6008959eb334a5b7b93c96fcd0ca221 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,18 @@ hasOperatorPrivileges(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +172,18 @@ hasOperatorPrivileges(slotId: number): Promise | :----------------- | :---------------------------------------------------------- | | Promise\ | 以Promise形式返回检查应用(调用者)是否已被授予运营商权限。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +210,18 @@ getISOCountryCodeForSim\(slotId: number, callback: AsyncCallback\): voi | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。返回国家码,例如:CN(中国)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +251,18 @@ getISOCountryCodeForSim\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回获取指定卡槽SIM卡的ISO国家码,例如:CN(中国)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +290,18 @@ getSimOperatorNumeric\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +331,18 @@ getSimOperatorNumeric\(slotId: number\): Promise | ----------------- | ------------------------------------------------ | | Promise\ | 以Promise形式返回获取指定卡槽SIM卡的归属PLMN号。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +370,18 @@ getSimSpn\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +411,18 @@ getSimSpn\(slotId: number\): Promise | ----------------- | ----------------------------------------- | | Promise\ | 以Promise形式返回获取指定卡槽SIM卡的SPN。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +450,18 @@ getSimState\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[SimState](#simstate)\> | 是 | 回调函数。参考[SimState](#simstate)。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +491,18 @@ getSimState\(slotId: number\): Promise | -------------------------------- | ------------------------------------------ | | Promise\<[SimState](#simstate)\> | 以Promise形式返回获取指定卡槽的SIM卡状态。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +529,18 @@ getCardType\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[CardType](#cardtype7)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +570,18 @@ getCardType\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\<[CardType](#cardtype7)\> | 以Promise形式返回指定卡槽SIM卡的卡类型。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +609,18 @@ hasSimCard\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +650,18 @@ hasSimCard\(slotId: number\): Promise | --------------------- | ---------------------------------- | | Promise<boolean> | 以Promise形式返回指定卡槽是否插卡,如果插卡返回true。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +692,20 @@ getSimAccountInfo(slotId: number, callback: AsyncCallback): voi | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[IccAccountInfo](#iccaccountinfo7)\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +739,20 @@ getSimAccountInfo(slotId: number): Promise | -------------------------------------------- | ------------------------------------------ | | Promise<[IccAccountInfo](#iccaccountinfo7)\> | 以Promise形式返回指定卡槽SIM卡的账户信息。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +782,19 @@ getActiveSimAccountInfoList(callback: AsyncCallback>): vo | -------- | ----------------------------------------------------------- | ---- | ---------- | | callback | AsyncCallback\\> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +822,19 @@ getActiveSimAccountInfoList(): Promise>; | ---------------------------------------------------- | ---------------------------------------------- | | Promise\> | 以Promise形式返回活跃卡槽SIM卡的账户信息列表。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +865,20 @@ setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | SIM卡槽ID:
- 0:卡槽1
- 1:卡槽2
- -1:清除默认配置 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +912,20 @@ setDefaultVoiceSlotId(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +957,19 @@ setShowName\(slotId: number, name: string, callback: AsyncCallback\): voi | name | string | 是 | SIM卡名称。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1004,19 @@ setShowName\(slotId: number, name: string\): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1048,19 @@ getShowName(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1094,19 @@ getShowName(slotId: number): Promise | --------------------- | -------------------------------------- | | Promise<string> | 以Promise形式返回指定卡槽SIM卡的名称。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1138,19 @@ setShowNumber\(slotId: number, number: string, callback: AsyncCallback\): | number | string | 是 | SIM卡号码。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1186,19 @@ setShowNumber\(slotId: number, number: string\): Promise\ | -------------- | ------------------------------- | | Promise | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1230,19 @@ getShowNumber(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1276,19 @@ getShowNumber(slotId: number): Promise | --------------------- | --------------------------------- | | Promise<string> | 以Promise形式返回指定卡槽的号码。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1319,19 @@ activateSim(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1365,19 @@ activateSim(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1408,19 @@ deactivateSim(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1454,19 @@ deactivateSim(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1498,20 @@ setLockState(slotId: number, options: LockInfo, callback: AsyncCallback | 是 | 回调函数。 | | options | [LockInfo](#lockinfo8) | 是 | 锁信息。
- lockType: [LockType](#locktype8)
- password: string
- state: [LockState](#lockstate8) | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1551,20 @@ setLockState(slotId: number, options: LockInfo): Promise | ---------------------------------------------------- | -------------------------------------------- | | Promise<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽SIM卡的锁状态。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1601,20 @@ getLockState(slotId: number, lockType: LockType, callback: AsyncCallback | 是 | 回调函数。 | | options | [LockType](#locktype8) | 是 | 锁类型。
- 1: PIN锁
- 2: PIN2锁 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1649,20 @@ getLockState(slotId: number, lockType: LockType): Promise | ---------------------------------- | -------------------------------------------- | | Promise<[LockState](#lockstate8)\> | 以Promise形式返回获取指定卡槽SIM卡的锁状态。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1695,20 @@ alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback | newPin | string | 是 | 新密码。 | | oldPin | string | 是 | 旧密码。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1744,20 @@ alterPin(slotId: number, newPin: string, oldPin: string): Promise | 以Promise形式返回指定卡槽SIM卡的Pin是否成功。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1790,20 @@ alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallb | newPin2 | string | 是 | 新密码。 | | oldPin2 | string | 是 | 旧密码。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1839,20 @@ alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise | 以Promise形式返回指定卡槽SIM卡的Pin是否成功。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1884,20 @@ unlockPin(slotId: number, pin: string, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1933,20 @@ unlockPin(slotId: number, pin: string): Promise<LockStatusResponse\> | ---------------------------------------------------- | -------------------------------------------------- | | Promise\<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1980,20 @@ unlockPuk(slotId: number, newPin: string, puk: string, callback: AsyncCallback | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2078,20 @@ unlockPin2(slotId: number, pin2: string, callback: AsyncCallback | ----------------------------------------------------- | -------------------------------------------------- | | Promise\<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2174,20 @@ unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallbac | puk2 | string | 是 | SIM卡密码的解锁密码。 | | callback | AsyncCallback<[LockStatusResponse](#lockstatusresponse7)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2225,20 @@ unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise<LockStatus | ---------------------------------------------------- | -------------------------------------------------- | | Promise\<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2291,19 @@ getSimIccId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2337,19 @@ getSimIccId(slotId: number): Promise | ---------------- | ------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的ICCID。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2380,19 @@ getVoiceMailIdentifier(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2426,19 @@ getVoiceMailIdentifier(slotId: number): Promise | ---------------- | ------------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的alpha标识符。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2469,19 @@ getVoiceMailNumber(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2515,19 @@ getVoiceMailNumber(slotId: number): Promise | ---------------- | ------------------------------------------------ | | Promise | 以Promise形式返回获取指定卡槽SIM卡的语音信箱号。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2539,7 @@ promise.then(data => { }); ``` + ## sim.setVoiceMailInfo8+ setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback): void @@ -1852,6 +2561,20 @@ setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: | mailNumber | string | 是 | 邮件号码 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2610,20 @@ setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise< | -------------- | ----------------------- | | Promise | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2654,19 @@ getSimTelephoneNumber(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2700,19 @@ getSimTelephoneNumber(slotId: number): Promise | ---------------- | -------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的MSISDN。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2743,19 @@ getSimGid1(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2789,19 @@ getSimGid1(slotId: number): Promise | ---------------- | ------------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的标识符级别1。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2832,19 @@ getIMSI(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2878,19 @@ getIMSI(slotId: number): Promise | ---------------- | ------------------------------------------- | | Promise | 以Promise形式返回获取的国际移动用户识别码。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2921,19 @@ getOperatorConfigs(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +2967,19 @@ getOperatorConfigs(slotId: number): Promise> | --------------------------------------------------- | ----------------------------- | | Promise> | 以Promise形式返回运营商配置。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3011,20 @@ queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallba | type | [ContactType](#contacttype8) | 是 | 联系人类型。
- 1 : GENERAL_CONTACT
- 2 : FIXED_DIALING | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3057,21 @@ queryIccDiallingNumbers(slotId: number, type: ContactType): Promise> | 以Promise形式返回Icc拨号号码。 | +| Promise> | 以Promise形式返回Icc拨号号码。| + +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3105,20 @@ addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | diallingNumbers | [DiallingNumbersInfo](#diallingnumbersinfo8) | 是 | 拨号号码信息。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3159,20 @@ addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | -------------- | --------------------------- | | Promise | 以Promise形式返回添加结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3209,20 @@ delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | diallingNumbers | [DiallingNumbersInfo](#diallingnumbersinfo8) | 是 | 拨号号码信息。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3264,20 @@ delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | -------------- | --------------------------- | | Promise | 以Promise形式返回删除结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3314,20 @@ updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dia | diallingNumbers | [DiallingNumbersInfo](#diallingnumbersinfo8) | 是 | 拨号号码信息。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3369,20 @@ updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dia | -------------- | ----------------------------- | | Promise | 以Promise形式返回更新的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3419,19 @@ sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback): vo | cmd | string | 是 | 命令。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3466,19 @@ sendEnvelopeCmd(slotId: number, cmd: string): Promise | -------------- | --------------------------- | | Promise | 以Promise形式返回发送结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3510,19 @@ sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3557,19 @@ sendTerminalResponseCmd(slotId: number, cmd: string): Promise | -------------- | --------------------------- | | Promise | 以Promise形式返回发送结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3581,7 @@ promise.then(data => { }); ``` + ## sim.unlockSimLock8+ unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback): void @@ -2596,6 +3602,20 @@ unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3654,20 @@ unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise | 以Promise形式返回锁状态。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3698,33 @@ getOpKey(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3748,28 @@ getOpKey(slotId: number): Promise | ---------------- | ----------------------------------------- | | Promise | 以Promise形式返回指定卡槽中SIM卡的opkey。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3787,33 @@ getOpName(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +3837,28 @@ getOpName(slotId: number): Promise | ---------------- | ------------------------------------------ | | Promise | 以Promise形式返回指定卡槽中SIM卡的OpName。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +4049,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 +4063,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 87cc9690b282c56637ec89ed8a6ebd386b6bd32e..c51f119b45db6b95c2b0d14da997e63d71b578b3 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,19 @@ setDefaultSmsSlotId\(slotId: number, callback: AsyncCallback<void>\): void | slotId | number | 是 | SIM卡槽ID。
- 0:卡槽1
- 1:卡槽2
- -1:清除默认配置 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +223,19 @@ setDefaultSmsSlotId\(slotId: number\): Promise<void> | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +267,18 @@ setSmscAddr\(slotId: number, smscAddr: string, callback: AsyncCallback\): | smscAddr | string | 是 | 短信服务中心地址。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +315,18 @@ setSmscAddr\(slotId: number, smscAddr: string\): Promise\ | ------------------- | ------------------------------- | | Promise<void> | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +360,18 @@ getSmscAddr\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | SIM卡槽ID:
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +406,18 @@ getSmscAddr\(slotId: number\): Promise | --------------------- | --------------------------------------------- | | Promise<string> | 以Promise形式返回获取短信服务中心地址的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +468,18 @@ splitMessage(content: string, callback: AsyncCallback>): void | content | string | 是 | 指示短消息内容,不能为null。 | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +514,18 @@ splitMessage(content: string): Promise> | ----------------------- | ----------------------------------- | | Promise> | 以Promise形式返回多个片段的的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +557,18 @@ addSimMessage(options: SimMessageOptions, callback: AsyncCallback): void | options | [SimMessageOptions](#simmessageoptions7) | 是 | SIM卡消息选项。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +608,18 @@ addSimMessage(options: SimMessageOptions): Promise | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回添加的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +657,18 @@ delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback): | msgIndex | number | 是 | 消息索引。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +705,18 @@ delSimMessage(slotId: number, msgIndex: number): Promise | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回删除的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +749,18 @@ updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回更新的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +850,18 @@ getAllSimMessages(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +896,18 @@ getAllSimMessages(slotId: number): Promise> | ------------------------------------------------------- | ---------------------------------- | | PromiseArray<[SimShortMessage](#simshortmessage7)\>> | 以Promise形式返回获取的SIM短消息。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +939,18 @@ setCBConfig(options: CBConfigOptions, callback: AsyncCallback): void | options | [CBConfigOptions](#cbconfigoptions7) | 是 | 小区广播配置选项。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +991,18 @@ setCBConfig(options: CBConfigOptions): Promise | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回设置的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1040,17 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback | force7bit | boolean | 是 | 是否使用7 bit编码。 | | callback | AsyncCallback<[SmsSegmentsInfo](#smssegmentsinfo8)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1085,17 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise | ------------------------------------------------------- | ----------------------------- | | Promise<[SmsSegmentsInfo](#smssegmentsinfo8)> | 以Promise形式返回短信段信息。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1125,17 @@ isImsSmsSupported(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | SIM卡槽ID:
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1168,17 @@ isImsSmsSupported(slotId: number): Promise | ---------------------- | ----------------------- | | Promise<boolean> | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1207,18 @@ getImsShortMessageFormat(callback: AsyncCallback): void | -------- | --------------------------- | ---- | ---------- | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1244,18 @@ getImsShortMessageFormat(): Promise | --------------------- | -------------------------- | | Promise<string> | 以Promise形式返回SMS格式。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1284,17 @@ decodeMms(mmsFilePathName: string | Array, callback: AsyncCallback | 是 | 彩信文件路径名。 | | callback | AsyncCallback<[MmsInformation](#mmsinformation8)> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1327,17 @@ decodeMms(mmsFilePathName: string | Array): Promise | --------------------------------------------------------- | --------------------------- | | Promise<<[MmsInformation](#mmsinformation8)>> | 以Promise形式返回彩信信息。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1367,17 @@ encodeMms(mms: MmsInformation, callback: AsyncCallback>): void | mms | [MmsInformation](#mmsinformation8) | 是 | 彩信信息。 | | callback | AsyncCallback<Array> | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +1418,17 @@ encodeMms(mms: MmsInformation): Promise> | ----------------------------- | ----------------------------------- | | Promise<Array> | 以Promise形式返回彩信编码后的结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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-system-configuration.md b/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md index f41b78e15b0fa85f0e983acab1990c31f05f0a75..77b82a63795aa688fa946c9130f71615978e9795 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-location.md b/zh-cn/application-dev/reference/apis/js-apis-system-location.md index b2a31156f422a66047093aa514a5ef9e249aa88f..433fb412161875ec2d95864421874b2da19259f0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-location.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-location.md @@ -71,9 +71,9 @@ export default { }, fail: function(data, code) { console.log('fail to get location. code:' + code + ', data:' + data); - }, + } }); - }, + } } ``` @@ -193,7 +193,7 @@ unsubscribe(): void export default { unsubscribe() { geolocation.unsubscribe(); - }, + } } ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-parameterV9.md b/zh-cn/application-dev/reference/apis/js-apis-system-parameterEnhance.md similarity index 98% rename from zh-cn/application-dev/reference/apis/js-apis-system-parameterV9.md rename to zh-cn/application-dev/reference/apis/js-apis-system-parameterEnhance.md index dea9d2d84f1392a21f506eff79f8c3357be29f37..287030021e379be07ca1ba094d41b06d08d7a30a 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-system-parameterV9.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-parameterEnhance.md @@ -1,4 +1,4 @@ -# @ohos.systemParameterV9 (系统属性) +# @ohos.systemParameterEnhance (系统参数) 系统参数(SystemParameter)是为各系统服务提供的简单易用的键值对访问接口,各个系统服务可以定义系统参数来描述该服务的状态信息,或者通过系统参数来改变系统服务的行为。其基本操作原语为get和set,通过get可以查询系统参数的值,通过set可以修改系统参数的值。 详细的系统参数设计原理及定义可参考 @@ -15,7 +15,7 @@ ## 导入模块 ```ts -import systemparameter from '@ohos.systemParameterV9' +import systemparameter from '@ohos.systemParameterEnhance' ``` ## systemparameter.getSync diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-time.md b/zh-cn/application-dev/reference/apis/js-apis-system-time.md index 1d0d7b90816f6d9a6b00e088609f037b0ecca8d5..3e82b3c73eaf0165866afd69c991843da59e4b8a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-time.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-time.md @@ -48,7 +48,7 @@ try { console.info(`Failed to setting time. message: ${error.message}, code: ${error.code}`); return; } - }console.info(`Succeeded in setting time`); + console.info(`Succeeded in setting time`); }); } catch(e) { console.info(`Failed to set time. message: ${e.message}, code: ${e.code}`); @@ -735,7 +735,7 @@ try { console.info(`Failed to get timezone. message: ${error.message}, code: ${error.code}`); return; } - console.info(`Succeeded in get timezone : ${data}`);; + console.info(`Succeeded in get timezone : ${data}`); }); } catch(e) { console.info(`Failed to get timezone. message: ${e.message}, code: ${e.code}`); diff --git a/zh-cn/application-dev/reference/apis/js-apis-taskpool.md b/zh-cn/application-dev/reference/apis/js-apis-taskpool.md index 7f662943e812c30633716158082c73c2c28fa23a..ee10746563fe247ab24658a01fc503d9841ba538 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-taskpool.md +++ b/zh-cn/application-dev/reference/apis/js-apis-taskpool.md @@ -64,6 +64,7 @@ function func(args) { console.log("func: " + args); return args; } + let task = new taskpool.Task(func, "this is my first Task"); ``` @@ -116,7 +117,12 @@ function func(args) { return args; } -let value = taskpool.execute(func, 100); +async function taskpoolTest() { + let value = await taskpool.execute(func, 100); + console.log("taskpool result: " + value); +} + +taskpoolTest(); ``` ## taskpool.execute @@ -158,8 +164,14 @@ function func(args) { console.log("func: " + args); return args; } -let task = new taskpool.Task(func, "this is my first Task"); -let value = taskpool.execute(task); + +async function taskpoolTest() { + let task = new taskpool.Task(func, 100); + let value = await taskpool.execute(task); + console.log("taskpool result: " + value); +} + +taskpoolTest(); ``` ## taskpool.cancel @@ -193,9 +205,14 @@ function func(args) { console.log("func: " + args); return args; } -let task = new taskpool.Task(func, "this is first Task"); -let value = taskpool.execute(task); -taskpool.cancel(task); + +async function taskpoolTest() { + let task = new taskpool.Task(func, 100); + let value = await taskpool.execute(task); + taskpool.cancel(task); +} + +taskpoolTest(); ``` ## 其他说明 @@ -214,10 +231,18 @@ function func(args) { return args; } -let task = new taskpool.Task(func, "create task, then execute"); -let val1 = taskpool.execute(task); +async function taskpoolTest() { + // taskpool.execute(task) + let task = new taskpool.Task(func, "create task, then execute"); + let val1 = await taskpool.execute(task); + console.log("taskpool.execute(task) result: " + val1); -let val2 = taskpool.execute(func, "execute task by func"); + // taskpool.execute(function) + let val2 = await taskpool.execute(func, "execute task by func"); + console.log("taskpool.execute(function) result: " + val2); +} + +taskpoolTest(); ``` ```js @@ -226,7 +251,7 @@ let val2 = taskpool.execute(func, "execute task by func"); // b.ts export var c = 2000; -// a.ts +// a.ts(与b.ts同目录) import { c } from './b' function test(a) { @@ -236,8 +261,16 @@ function test(a) { return a; } -let task = new taskpool.Task(test, "create task, then execute"); -let val1 = taskpool.execute(task); +async function taskpoolTest() { + // taskpool.execute(task) + let task = new taskpool.Task(test, "create task, then execute"); + let val1 = await taskpool.execute(task); + console.log("taskpool.execute(task) result: " + val1); + + // taskpool.execute(function) + let val2 = await taskpool.execute(test, "execute task by func"); + console.log("taskpool.execute(function) result: " + val2); +} -let val2 = taskpool.execute(test, "execute task by func"); +taskpoolTest(); ``` \ No newline at end of file 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 9f60daed5a2dd794b5675dc6bb69164861e5a712..22418792bc14922a94b79598ae13b1cd5cf509b0 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 @@ -2,7 +2,7 @@ 蜂窝数据提供了移动数据管理能力,包括获取、设置默认移动数据的SIM卡,获取蜂窝数据业务的上下行和分组交换域(PS域)的连接状态,以及检查蜂窝数据业务和漫游是否启用等。 ->**说明:** +>**说明:** > >本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -98,6 +98,20 @@ setDefaultCellularDataSlotId(slotId: number, callback: AsyncCallback\): v | slotId | number | 是 | SIM卡槽ID。
- 0:卡槽1。
- 1:卡槽2。
- -1:清除默认配置。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +144,20 @@ setDefaultCellularDataSlotId(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +279,18 @@ isCellularDataEnabled(callback: AsyncCallback\): void | -------- | ------------------------ | ---- | ------------------------------------------------------------ | | callback | AsyncCallback\ | 是 | 回调函数。
true:蜂窝数据业务已启用。
false:蜂窝数据业务已禁用。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +315,18 @@ isCellularDataEnabled(): Promise\ | ------------------ | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回检查蜂窝数据业务是否启用。
true:蜂窝数据业务已启用。
false:蜂窝数据业务已禁用。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +355,18 @@ isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback\) | slotId | number | 是 | 卡槽ID。
0:卡槽1。
1:卡槽2。 | | callback | AsyncCallback\ | 是 | 回调函数。
true:蜂窝数据业务已启用漫游。
false:蜂窝数据业务已禁用漫游。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +397,18 @@ isCellularDataRoamingEnabled(slotId: number): Promise\ | ------------------ | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回检查蜂窝数据业务是否启用漫游。
true:蜂窝数据业务已启用漫游。
false:蜂窝数据业务已禁用漫游。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +438,18 @@ enableCellularData(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +476,18 @@ enableCellularData(): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +517,18 @@ disableCellularData(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +555,18 @@ disableCellularData(): Promise | --------------- | --------------------------- | | Promise\ | 以Promise形式返回禁用结果。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +597,18 @@ enableCellularDataRoaming(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
0:卡槽1。
1:卡槽2。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +641,18 @@ enableCellularDataRoaming(slotId: number): Promise | --------------- | ------------------------- | | Promise\ | 以Promise形式返回启用结果 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +683,18 @@ disableCellularDataRoaming(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
0:卡槽1。
1:卡槽2。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 +727,18 @@ disableCellularDataRoaming(slotId: number): Promise | --------------- | ------------------------- | | Promise\ | 以Promise形式返回禁用结果 | +**错误码:** +以下错误码的详细介绍请参见[ohos.telephony(电话子系统)错误码](../../reference/errorcodes/errorcode-telephony.md)错误码。 + +| 错误码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 d0e45db532b1bdeffe1d7714efe910d1b2d35ab1..99fabdacb010daf46b1a27fac7c5cb854ea59d42 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) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从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 16b1704998b81aeaaf7496bdcd94e0cf40a6a85c..9c035500ea0e9ce86c7f47017fe06e2f1279cd70 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) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从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 856991c14fb6ca24a2283248a9d3d9a3f6d0696b..7817395fa9d00d86898d765e1070f93f618c3e8b 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 899c602cf7af4d5b1f3292f6f83003f98219cb19..b952f9bc52b726ea52fb0629846b9932a33966ad 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 c3bb4e06631f7d6874be1ccf34dad5570d78470e..60ac715271482084f67bf13aff4e547548a419c5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md @@ -1,14 +1,14 @@ # @ohos.wantAgent (WantAgent模块) -WantAgent模块提供了触发、取消、比较WantAgent实例和获取bundle参数名的能力,包括创建WantAgent实例、获取实例的用户ID、获取want信息等。 +WantAgent模块提供了创建WantAgent实例、获取实例的用户ID、获取want信息、比较WantAgent实例和获取bundle名称等能力。 > **说明:** > -> 本模块首批接口从API version 7开始支持,从API version 9废弃,替换模块为[@ohos.app.ability.wantAgent](js-apis-app-ability-wantAgent.md)。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块首批接口从API version 7开始支持,从API version 9废弃,替换模块为[@ohos.app.ability.wantAgent](js-apis-app-ability-wantAgent.md)。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 -```js +```ts import WantAgent from '@ohos.wantAgent'; ``` @@ -16,7 +16,7 @@ import WantAgent from '@ohos.wantAgent'; getWantAgent(info: WantAgentInfo, callback: AsyncCallback\): void -创建WantAgent(callback形式)。 +创建WantAgent(callback形式)。 创建失败返回的WantAgent为空值。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -24,37 +24,41 @@ getWantAgent(info: WantAgentInfo, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------- | ---- | ----------------------- | -| info | WantAgentInfo | 是 | WantAgent信息。 | +| info | [WantAgentInfo](js-apis-inner-wantAgent-wantAgentInfo.md) | 是 | WantAgent信息。 | | callback | AsyncCallback\ | 是 | 创建WantAgent的回调方法。 | **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //getWantAgent回调 function getWantAgentCallback(err, data) { - console.info("==========================>getWantAgentCallback=======================>"); + if (err.code) { + console.info('getWantAgent Callback err:' + JSON.stringify(err)) + } else { + console.info('getWantAgent Callback success') + } } //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -64,16 +68,14 @@ var wantAgentInfo = { wantAgentFlags:[WantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } -WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) +WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback); ``` - - ## WantAgent.getWantAgent getWantAgent(info: WantAgentInfo): Promise\ -创建WantAgent(Promise形式)。 +创建WantAgent(Promise形式)。 创建失败返回的WantAgent为空值。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -81,7 +83,7 @@ getWantAgent(info: WantAgentInfo): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ---- | ------------- | ---- | ------------- | -| info | WantAgentInfo | 是 | WantAgent信息。 | +| info | [WantAgentInfo](js-apis-inner-wantAgent-wantAgentInfo.md) | 是 | WantAgent信息。 | **返回值:** @@ -91,29 +93,29 @@ getWantAgent(info: WantAgentInfo): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -124,17 +126,15 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); }); ``` - - ## WantAgent.getBundleName getBundleName(agent: WantAgent, callback: AsyncCallback\): void -获取WantAgent实例的包名(callback形式)。 +获取WantAgent实例的Bundle名称(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -147,41 +147,48 @@ getBundleName(agent: WantAgent, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //getWantAgent回调 function getWantAgentCallback(err, data) { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); 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对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -192,12 +199,6 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//getBundleName回调 -function getBundleNameCallback(err, data) { - console.info("==========================>getBundleNameCallback=======================>"); -} -WantAgent.getBundleName(wantAgent, getBundleNameCallback) ``` @@ -206,7 +207,7 @@ WantAgent.getBundleName(wantAgent, getBundleNameCallback) getBundleName(agent: WantAgent): Promise\ -获取WantAgent实例的包名(Promise形式)。 +获取WantAgent实例的Bundle名称(Promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -218,38 +219,37 @@ getBundleName(agent: WantAgent): Promise\ **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取WantAgent实例的包名。 | +| 类型 | 说明 | +| ----------------- | ------------------------------------------------ | +| Promise\ | 以Promise形式返回获取WantAgent实例的Bundle名称。 | **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; - //wantAgent对象 -var wantAgent; +let wantAgent; //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -260,12 +260,13 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; -}); - -WantAgent.getBundleName(wantAgent).then((data) => { - console.info("==========================>getBundleNameCallback=======================>"); + if (wantAgent) { + WantAgent.getBundleName(wantAgent).then((data) => { + console.info('==========================>getBundleNameCallback=======================>'); + }); + } }); ``` @@ -288,41 +289,48 @@ getUid(agent: WantAgent, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //getWantAgent回调 function getWantAgentCallback(err, data) { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); 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对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -333,12 +341,6 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//getUid回调 -function getUidCallback(err, data) { - console.info("==========================>getUidCallback=======================>"); -} -WantAgent.getUid(wantAgent, getUidCallback) ``` @@ -365,32 +367,32 @@ getUid(agent: WantAgent): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -401,162 +403,17 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; -}); - -WantAgent.getUid(wantAgent).then((data) => { - console.info("==========================>getUidCallback=======================>"); -}); -``` - - - -## WantAgent.getWant - -getWant(agent: WantAgent, callback: AsyncCallback\): void - -获取WantAgent对象的want(callback形式)。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**系统API**: 此接口为系统接口,三方应用不支持调用。 - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | --------------------- | ---- | ------------------------------- | -| agent | WantAgent | 是 | WantAgent对象。 | -| callback | AsyncCallback\ | 是 | 获取WantAgent对象want的回调方法。 | - -**示例:** - -```js -import WantAgent from '@ohos.wantAgent'; - - -//wantAgent对象 -var wantAgent; - -//getWantAgent回调 -function getWantAgentCallback(err, data) { - console.info("==========================>getWantAgentCallback=======================>"); - if (err.code == 0) { - wantAgent = data; - } else { - console.info('----getWantAgent failed!----'); + if (wantAgent) { + WantAgent.getUid(wantAgent).then((data) => { + console.info('==========================>getUidCallback=======================>'); + }); } -} -//WantAgentInfo对象 -var wantAgentInfo = { - wants: [ - { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - parameters: - { - mykey0: 2222, - mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", - mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], - mykey6: true, - } - } - ], - operationType: WantAgent.OperationType.START_ABILITIES, - requestCode: 0, - wantAgentFlags:[WantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] -} - -WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//getWant回调 -function getWantCallback(err, data) { - console.info("==========================>getWantCallback=======================>"); -} -WantAgent.getWant(wantAgent, getWantCallback) -``` - - - -## WantAgent.getWant - -getWant(agent: WantAgent): Promise\ - -获取WantAgent对象的want(Promise形式)。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**系统API**: 此接口为系统接口,三方应用不支持调用。 - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ----- | --------- | ---- | ------------- | -| agent | WantAgent | 是 | WantAgent对象。 | - -**返回值:** - -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取WantAgent对象的want。 | - -**示例:** - -```js -import WantAgent from '@ohos.wantAgent'; - - -//wantAgent对象 -var wantAgent; - -//WantAgentInfo对象 -var wantAgentInfo = { - wants: [ - { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - parameters: - { - mykey0: 2222, - mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", - mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], - mykey6: true, - } - } - ], - operationType: WantAgent.OperationType.START_ABILITIES, - requestCode: 0, - wantAgentFlags:[WantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] -} - -WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); - wantAgent = data; -}); - -WantAgent.getWant(wantAgent).then((data) => { - console.info("==========================>getWantCallback=======================>"); }); ``` - ## WantAgent.cancel cancel(agent: WantAgent, callback: AsyncCallback\): void @@ -574,41 +431,48 @@ cancel(agent: WantAgent, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //getWantAgent回调 function getWantAgentCallback(err, data) { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); 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对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -619,12 +483,6 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//cancel回调 -function cancelCallback(err, data) { - console.info("==========================>cancelCallback=======================>"); -} -WantAgent.cancel(wantAgent, cancelCallback) ``` @@ -651,32 +509,32 @@ cancel(agent: WantAgent): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -687,12 +545,13 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; -}); - -WantAgent.cancel(wantAgent).then((data) => { - console.info("==========================>cancelCallback=======================>"); + if (wantAgent) { + WantAgent.cancel(wantAgent).then((data) => { + console.info('==========================>cancelCallback=======================>'); + }); + } }); ``` @@ -711,46 +570,57 @@ trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: Callback\ | 否 | 主动激发WantAgent实例的回调方法。 | **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //getWantAgent回调 function getWantAgentCallback(err, data) { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); 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对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -761,16 +631,6 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//trigger回调 -function triggerCallback(data) { - console.info("==========================>triggerCallback=======================>"); -} - -var triggerInfo = { - code:0 -} -WantAgent.trigger(wantAgent, triggerInfo, triggerCallback) ``` @@ -779,7 +639,7 @@ WantAgent.trigger(wantAgent, triggerInfo, triggerCallback) equal(agent: WantAgent, otherAgent: WantAgent, callback: AsyncCallback\): void -判断两个WantAgent实例是否相等(callback形式)。 +判断两个WantAgent实例是否相等(callback形式),以此来判断是否是来自同一应用的相同操作。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -793,43 +653,50 @@ equal(agent: WantAgent, otherAgent: WantAgent, callback: AsyncCallback\getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); if (err.code == 0) { 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对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -840,12 +707,6 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//equal回调 -function equalCallback(err, data) { - console.info("==========================>equalCallback=======================>"); -} -WantAgent.equal(wantAgent1, wantAgent2, equalCallback) ``` @@ -854,7 +715,7 @@ WantAgent.equal(wantAgent1, wantAgent2, equalCallback) equal(agent: WantAgent, otherAgent: WantAgent): Promise\ -判断两个WantAgent实例是否相等(Promise形式)。 +判断两个WantAgent实例是否相等(Promise形式),以此来判断是否是来自同一应用的相同操作。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -873,33 +734,33 @@ equal(agent: WantAgent, otherAgent: WantAgent): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent1; -var wantAgent2; +let wantAgent1; +let wantAgent2; //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -910,13 +771,18 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); wantAgent1 = data; wantAgent2 = data; + if (data) { + WantAgent.equal(wantAgent1, wantAgent2).then((data) => { + console.info('==========================>equalCallback=======================>'); + }); + } }); WantAgent.equal(wantAgent1, wantAgent2).then((data) => { - console.info("==========================>equalCallback=======================>"); + console.info('==========================>equalCallback=======================>'); }); ``` @@ -937,31 +803,31 @@ getOperationType(agent: WantAgent, callback: AsyncCallback\): void; **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -972,13 +838,14 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); + 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+ @@ -1003,31 +870,31 @@ getOperationType(agent: WantAgent): Promise\; **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 -var wantAgent; +let wantAgent; //WantAgentInfo对象 -var wantAgentInfo = { +let wantAgentInfo = { wants: [ { - deviceId: "deviceId", - bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", + deviceId: 'deviceId', + bundleName: 'com.neu.setResultOnAbilityResultTest1', + abilityName: 'com.example.test.EntryAbility', + action: 'action1', + entities: ['entity1'], + type: 'MIMETYPE', + uri: 'key={true,true,false}', parameters: { mykey0: 2222, mykey1: [1, 2, 3], - mykey2: "[1, 2, 3]", - mykey3: "ssssssssssssssssssssssssss", + mykey2: '[1, 2, 3]', + mykey3: 'ssssssssssssssssssssssssss', mykey4: [false, true, false], - mykey5: ["qqqqq", "wwwwww", "aaaaaaaaaaaaaaaaa"], + mykey5: ['qqqqq', 'wwwwww', 'aaaaaaaaaaaaaaaaa'], mykey6: true, } } @@ -1038,18 +905,16 @@ var wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo).then((data) => { - console.info("==========================>getWantAgentCallback=======================>"); + console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; + WantAgent.getOperationType(wantAgent).then((OperationType) => { + console.log('getOperationType success, OperationType: ' + OperationType); + }).catch((err) => { + console.log('getOperationType fail, err: ' + err); + }) }); - -WantAgent.getOperationType(wantAgent).then((OperationType) => { - console.log('getOperationType success, OperationType: ' + OperationType); -}).catch((err) => { - console.log('getOperationType fail, err: ' + err); -}) ``` - ## WantAgentFlags **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core @@ -1088,5 +953,5 @@ WantAgent.getOperationType(wantAgent).then((OperationType) => { | info | WantAgent | 是 | 触发的wantAgent。 | | want | Want | 是 | 存在的被触发的want。 | | finalCode | number | 是 | 触发wantAgent的请求代码。| -| finalData | string | 否 | 公共事件收集的最终数据。 | -| extraInfo | {[key: string]: any} | 否 | 额外数据。 | +| finalData | string | 是 | 公共事件收集的最终数据。 | +| extraInfo | {[key: string]: any} | 否 | 额外数据。 | \ No newline at end of file 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 7c0de44422679d2b15fb8cf9d656818d87114917..81c95ab4260f350acb4744131bbc05bd0163a5f7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-webview.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webview.md @@ -11,6 +11,7 @@ > - 示例效果请以真机运行为准,当前IDE预览器不支持。 ## 需要权限 + 访问在线网页时需添加网络权限:ohos.permission.INTERNET,具体申请方式请参考[权限申请声明](../../security/accesstoken-guidelines.md)。 ## 导入模块 @@ -114,7 +115,7 @@ postMessageEvent(message: WebMessage): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------- | @@ -166,7 +167,7 @@ onMessageEvent(callback: (result: WebMessage) => void): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ----------------------------------------------- | @@ -248,7 +249,7 @@ export default class MainAbility extends Ability { ```ts // xxx.ets -import web_webview from '@ohos.web.webview' +import web_webview from '@ohos.web.webview'; @Entry @Component @@ -265,7 +266,7 @@ struct WebComponent { ### loadUrl -loadUrl(url: string | Resource, headers?: Array\): void +loadUrl(url: string | Resource, headers?: Array\): void 加载指定的URL。 @@ -276,11 +277,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 | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -304,6 +305,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}`); @@ -315,6 +317,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 @@ -335,7 +400,7 @@ loadData(data: string, mimeType: string, encoding: string, baseUrl?: string, his **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -389,7 +454,7 @@ accessForward(): boolean **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -433,7 +498,7 @@ forward(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -482,7 +547,7 @@ accessBackward(): boolean **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -526,7 +591,7 @@ backward(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -569,7 +634,7 @@ onActive(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -612,7 +677,7 @@ onInactive(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -654,7 +719,7 @@ refresh(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -709,7 +774,7 @@ accessStep(step: number): boolean **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -754,7 +819,7 @@ clearHistory(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -789,7 +854,7 @@ struct WebComponent { ### getHitTest -getHitTest(): HitTestTypeV9 +getHitTest(): WebHitTestType 获取当前被点击区域的元素类型。 @@ -799,11 +864,11 @@ getHitTest(): HitTestTypeV9 | 类型 | 说明 | | ------------------------------------------------------------ | ---------------------- | -| [HitTestTypeV9](#hittesttypev9)| 被点击区域的元素类型。 | +| [WebHitTestType](#webhittesttype)| 被点击区域的元素类型。 | **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -855,7 +920,7 @@ registerJavaScriptProxy(object: object, name: string, methodList: Array\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -922,7 +987,7 @@ runJavaScript(script: string, callback : AsyncCallback\): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -990,7 +1055,7 @@ runJavaScript(script: string): Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1048,7 +1113,7 @@ deleteJavaScriptRegister(name: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1099,7 +1164,7 @@ zoom(factor: number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1150,7 +1215,7 @@ searchAllAsync(searchString: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1198,7 +1263,7 @@ clearMatches(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1247,7 +1312,7 @@ searchNext(forward: boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1290,7 +1355,7 @@ clearSslCache(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1333,7 +1398,7 @@ clearClientAuthenticationCache(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1374,7 +1439,7 @@ struct WebComponent { **系统能力:** SystemCapability.Web.Webview.Core -**返回值:** +**返回值:** | 类型 | 说明 | | ---------------------- | ----------------- | @@ -1382,13 +1447,13 @@ struct WebComponent { **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | | 17100001 | Init error. The WebviewController must be associated with a Web component. | -**示例:** +**示例:** ```ts // xxx.ets @@ -1435,7 +1500,7 @@ postMessage(name: string, ports: Array\, uri: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1472,7 +1537,7 @@ struct WebComponent { this.ports = this.controller.createWebMessagePorts(); // 2、在应用侧的消息端口(如端口1)上注册回调事件。 this.ports[1].onMessageEvent((result: web_webview.WebMessage) => { - var msg = 'Got msg from HTML:'; + let msg = 'Got msg from HTML:'; if (typeof(result) == "string") { console.log("received string message from html5, string is:" + result); msg = msg + result; @@ -1500,7 +1565,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`); } @@ -1586,7 +1651,7 @@ requestFocus(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1629,7 +1694,7 @@ zoomIn(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1673,7 +1738,7 @@ zoomOut(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1723,7 +1788,7 @@ getHitTestValue(): HitTestValue **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1774,7 +1839,7 @@ getWebId(): number **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1824,7 +1889,7 @@ getUserAgent(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1874,7 +1939,7 @@ getTitle(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1924,7 +1989,7 @@ getPageHeight(): number **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1976,7 +2041,7 @@ storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2099,7 +2164,7 @@ getUrl(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2143,7 +2208,7 @@ stop(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2192,7 +2257,7 @@ backOrForward(step: number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2243,7 +2308,7 @@ scrollTo(x:number, y:number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2315,7 +2380,7 @@ scrollBy(deltaX:number, deltaY:number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2387,7 +2452,7 @@ slideScroll(vx:number, vy:number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2458,7 +2523,7 @@ getOriginalUrl(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2508,7 +2573,7 @@ getFavicon(): image.PixelMap **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2558,7 +2623,7 @@ setNetworkAvailable(enable: boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2607,7 +2672,7 @@ hasImage(callback: AsyncCallback\): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2662,7 +2727,7 @@ hasImage(): Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2716,7 +2781,7 @@ removeCache(clearRom: boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2765,7 +2830,7 @@ pageUp(top:boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2814,7 +2879,7 @@ pageDown(bottom:boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2863,7 +2928,7 @@ getBackForwardEntries(): BackForwardList **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2912,7 +2977,7 @@ serializeWebState(): Uint8Array **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2967,7 +3032,7 @@ restoreWebState(state: Uint8Array): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -3087,7 +3152,7 @@ static getCookie(url: string): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3138,7 +3203,7 @@ static setCookie(url: string, value: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3431,7 +3496,7 @@ static existCookie(): boolean **系统能力:** SystemCapability.Web.Webview.Core -**返回值:** +**返回值:** | 类型 | 说明 | | ------- | -------------------------------------- | @@ -3539,11 +3604,11 @@ static deleteOrigin(origin : string): void | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------ | -| origin | string | 是 | 指定源的字符串索引. | +| origin | string | 是 | 指定源的字符串索引,来自于[getOrigins](#getorigins)。 | **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3595,7 +3660,7 @@ static getOrigins(callback: AsyncCallback\>) : void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3656,7 +3721,7 @@ static getOrigins() : Promise\> **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3718,7 +3783,7 @@ static getOriginQuota(origin : string, callback : AsyncCallback\) : void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3782,7 +3847,7 @@ static getOriginQuota(origin : string) : Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3841,7 +3906,7 @@ static getOriginUsage(origin : string, callback : AsyncCallback\) : void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3905,7 +3970,7 @@ static getOriginUsage(origin : string) : Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ----------------------------------------------------- | @@ -4164,133 +4229,6 @@ struct WebComponent { } ``` -## WebAsyncController - -通过WebAsyncController可以控制Web组件具有异步回调通知的行为,一个WebAsyncController对象控制一个Web组件。 - -### 创建对象 - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController(); - webAsyncController: web_webview.WebAsyncController = new web_webview.WebAsyncController(this.controller) - build() { - Column() { - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### constructor9+ - -constructor(controller: WebController) - -WebAsyncController的创建需要与一个[WebController](../arkui-ts/ts-basic-components-web.md#webcontroller)进行绑定。 - -**系统能力:** SystemCapability.Web.Webview.Core - -**参数:** - -| 参数名| 类型 | 必填 | 说明 | -| ----- | ---- | ---- | --- | -| controller | [WebController](../arkui-ts/ts-basic-components-web.md#webcontroller) | 是 | 所绑定的WebviewController。| - -### storeWebArchive9+ - -storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\): void - -以回调方式异步保存当前页面。 - -**系统能力:** SystemCapability.Web.Webview.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ---------------------------------------- | ---- | ----------------------------------- | -| baseName | string | 是 | 文件存储路径,该值不能为空。 -| autoName | boolean | 是 | 决定是否自动生成文件名。
如果为false,则将baseName作为文件存储路径。
如果为true,则假定baseName是一个目录,将根据当前页的Url自动生成文件名。 -| callback | AsyncCallback\ | 是 | 返回文件存储路径,保持网页失败会返回null。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - build() { - Column() { - Button('saveWebArchive') - .onClick(() => { - let webAsyncController = new web_webview.WebAsyncController(this.controller) - webAsyncController.storeWebArchive("/data/storage/el2/base/", true, (filename) => { - if (filename != null) { - console.info(`save web archive success: ${filename}`) - } - }) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### storeWebArchive9+ - -storeWebArchive(baseName: string, autoName: boolean): Promise\ - -以Promise方式异步保存当前页面。 - -**系统能力:** SystemCapability.Web.Webview.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ---------------------------------------- | ---- | ----------------------------------- | -| baseName | string | 是 | 文件存储路径,该值不能为空。 -| autoName | boolean | 是 | 决定是否自动生成文件名。
如果为false,则将baseName作为文件存储路径。
如果为true,则假定baseName是一个目录,将根据当前页的Url自动生成文件名。 - -**返回值:** - -| 类型 | 说明 | -| ---------------------------------------- | ---------------------------------------- | -| Promise | Promise实例,保存成功返回文件路径,保存失败返回null。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController(); - build() { - Column() { - Button('saveWebArchive') - .onClick(() => { - let webAsyncController = new web_webview.WebAsyncController(this.controller); - webAsyncController.storeWebArchive("/data/storage/el2/base/", true) - .then(filename => { - if (filename != null) { - console.info(`save web archive success: ${filename}`) - } - }) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - ## GeolocationPermissions web组件地理位置权限管理对象。 @@ -4315,7 +4253,7 @@ static allowGeolocation(origin: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -4365,7 +4303,7 @@ static deleteGeolocation(origin: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -4416,7 +4354,7 @@ static getAccessibleGeolocation(origin: string, callback: AsyncCallback\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -4646,7 +4584,7 @@ struct WebComponent { } } ``` -## HeaderV9 +## WebHeader Web组件返回的请求/响应头对象。 **系统能力:** SystemCapability.Web.Webview.Core @@ -4656,7 +4594,7 @@ Web组件返回的请求/响应头对象。 | headerKey | string | 是 | 是 | 请求/响应头的key。 | | headerValue | string | 是 | 是 | 请求/响应头的value。 | -## HitTestTypeV9 +## WebHitTestType **系统能力:** SystemCapability.Web.Webview.Core @@ -4679,7 +4617,7 @@ Web组件返回的请求/响应头对象。 | 名称 | 类型 | 可读 | 可写 | 说明| | ---- | ---- | ---- | ---- |---- | -| type | [HitTestTypeV9](#hittesttypev9) | 是 | 否 | 当前被点击区域的元素类型。| +| type | [WebHitTestType](#webhittesttype) | 是 | 否 | 当前被点击区域的元素类型。| | extra | string | 是 | 否 |点击区域的附加参数信息。若被点击区域为图片或链接,则附加参数信息为其url地址。 | ## WebMessage @@ -4781,7 +4719,6 @@ struct WebComponent { | historyRawUrl | string | 是 | 否 | 历史记录项的原始url地址。 | | title | string | 是 | 否 | 历史记录项的标题。 | - ## WebCustomScheme 自定义协议配置。 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 fa392d9069cbf0435409d32eb285f522fa465c57..0f2f9637990b5b3d04065a12c4bfc67147a8a2fe 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -188,10 +188,10 @@ import window from '@ohos.window'; | 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | ------------------ | -| left | number | 是 | 是 | 矩形区域的左边界。 | -| top | number | 是 | 是 | 矩形区域的上边界。 | -| width | number | 是 | 是 | 矩形区域的宽度。 | -| height | number | 是 | 是 | 矩形区域的高度。 | +| left | number | 是 | 是 | 矩形区域的左边界,单位为px。 | +| top | number | 是 | 是 | 矩形区域的上边界,单位为px。 | +| width | number | 是 | 是 | 矩形区域的宽度,单位为px。 | +| height | number | 是 | 是 | 矩形区域的高度,单位为px。 | ## AvoidArea7+ @@ -215,8 +215,8 @@ import window from '@ohos.window'; | 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | ---------- | -| width | number | 是 | 是 | 窗口宽度。 | -| height | number | 是 | 是 | 窗口高度。 | +| width | number | 是 | 是 | 窗口宽度,单位为px。 | +| height | number | 是 | 是 | 窗口高度,单位为px。 | ## WindowProperties @@ -2735,58 +2735,6 @@ try { } ``` -### on('dialogTargetTouch')9+ - -on(type: 'dialogTargetTouch', callback: Callback<void>): void - -开启模态窗口目标窗口的点击事件的监听。 - -**系统能力:** SystemCapability.WindowManager.WindowManager.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------- | ---- | ------------------------------------------------------------ | -| type | string | 是 | 监听事件,固定为'dialogTargetTouch',即模态窗口目标窗口的点击事件。 | -| callback | Callback<void>| 是 | 回调函数。当点击事件发生在模态窗口目标窗口的回调。 | - -**示例:** - -```js -try { - windowClass.on('dialogTargetTouch', () => { - console.info('touch dialog target'); - }); -} catch (exception) { - console.error('Failed to register callback. Cause: ' + JSON.stringify(exception)); -} -``` - -### off('dialogTargetTouch')9+ - -off(type: 'dialogTargetTouch', callback?: Callback<void>): void - -关闭模态窗口目标窗口的点击事件的监听。 - -**系统能力:** SystemCapability.WindowManager.WindowManager.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ---------------------- | ---- | ------------------------------------------------------------ | -| type | string | 是 | 监听事件,固定为'dialogTargetTouch',即模态窗口目标窗口的点击事件。 | -| callback | Callback<void> | 否 | 回调函数。当点击事件发生在模态窗口目标窗口的回调。 | - -**示例:** - -```js -try { - windowClass.off('dialogTargetTouch'); -} catch (exception) { - console.error('Failed to unregister callback. Cause: ' + JSON.stringify(exception)); -} -``` - ### bindDialogTarget9+ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>, callback: AsyncCallback<void>): void @@ -5903,9 +5851,9 @@ getMainWindow(callback: AsyncCallback<Window>): void **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); let windowClass = null; @@ -5949,9 +5897,9 @@ getMainWindow(): Promise<Window> **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); let windowClass = null; @@ -5994,9 +5942,9 @@ getMainWindowSync(): Window **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); try { @@ -6037,9 +5985,9 @@ createSubWindow(name: string, callback: AsyncCallback<Window>): void **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); let windowClass = null; @@ -6093,9 +6041,9 @@ createSubWindow(name: string): Promise<Window> **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); let windowClass = null; @@ -6141,9 +6089,9 @@ getSubWindow(callback: AsyncCallback<Array<Window>>): void **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); let windowClass = null; @@ -6185,9 +6133,9 @@ getSubWindow(): Promise<Array<Window>> **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); let windowClass = null; @@ -6231,9 +6179,9 @@ loadContent(path: string, storage: LocalStorage, callback: AsyncCallback<void **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { storage : LocalStorage onWindowStageCreate(windowStage) { this.storage = new LocalStorage(); @@ -6289,9 +6237,9 @@ loadContent(path: string, storage?: LocalStorage): Promise<void> **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { storage : LocalStorage onWindowStageCreate(windowStage) { this.storage = new LocalStorage(); @@ -6340,9 +6288,9 @@ loadContent(path: string, callback: AsyncCallback<void>): void **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); try { @@ -6389,9 +6337,9 @@ on(eventType: 'windowStageEvent', callback: Callback<WindowStageEventType> **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); try { @@ -6436,9 +6384,9 @@ off(eventType: 'windowStageEvent', callback?: Callback<WindowStageEventType&g **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); try { @@ -6475,9 +6423,9 @@ disableWindowDecor(): void **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('disableWindowDecor'); windowStage.disableWindowDecor(); @@ -6515,9 +6463,9 @@ setShowOnLockScreen(showOnLockScreen: boolean): void **示例:** ```ts -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; -class myAbility extends Ability { +class myAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); try { diff --git a/zh-cn/application-dev/reference/apis/js-apis-worker.md b/zh-cn/application-dev/reference/apis/js-apis-worker.md index 9e98a5244869cf5fd48b55ee677f6b6a860e9949..6496d1a3507acc23399a3f554608b27c6819e59f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-worker.md +++ b/zh-cn/application-dev/reference/apis/js-apis-worker.md @@ -81,19 +81,19 @@ ThreadWorker构造函数。 import worker from '@ohos.worker'; // worker线程创建 -// FA模型-目录同级 +// FA模型-目录同级(entry模块下,workers目录与pages目录同级) const workerFAModel01 = new worker.ThreadWorker("workers/worker.js", {name:"first worker in FA model"}); -// FA模型-目录不同级(以workers目录放置pages目录前一级为例) +// FA模型-目录不同级(entry模块下,workers目录与pages目录的父目录同级) const workerFAModel02 = new worker.ThreadWorker("../workers/worker.js"); -// Stage模型-目录同级 +// Stage模型-目录同级(entry模块下,workers目录与pages目录同级) const workerStageModel01 = new worker.ThreadWorker('entry/ets/workers/worker.ts', {name:"first worker in Stage model"}); -// Stage模型-目录不同级(以workers目录放置pages目录后一级为例) +// Stage模型-目录不同级(entry模块下,workers目录是pages目录的子目录) const workerStageModel02 = new worker.ThreadWorker('entry/ets/pages/workers/worker.ts'); // 理解Stage模型scriptURL的"entry/ets/workers/worker.ts": -// entry: 为module.json5文件中module的name属性对应的值; -// ets: 表明当前使用的语言。 +// entry: 为module.json5文件中module的name属性对应的值,ets: 表明当前使用的语言。 +// scriptURL与worker文件所在的workers目录层级有关,与new worker所在文件无关。 ``` 同时,需在工程的模块级build-profile.json5文件的buildOption属性中添加配置信息,主要分为下面两种情况: @@ -585,6 +585,15 @@ dispatchEvent(event: Event): boolean ```js const workerInstance = new worker.ThreadWorker("workers/worker.js"); + +workerInstance.dispatchEvent({type:"eventType", timeStamp:0}); //timeStamp暂未支持。 +``` + +分发事件(dispatchEvent)可与监听接口(on、once、addEventListener)搭配使用,示例如下: + +```js +const workerInstance = new worker.ThreadWorker("workers/worker.js"); + //用法一: workerInstance.on("alert_on", (e)=>{ console.log("alert listener callback"); @@ -751,6 +760,15 @@ dispatchEvent(event: Event): boolean ```js const workerInstance = new worker.ThreadWorker("workers/worker.js"); + +workerInstance.dispatchEvent({type:"eventType", timeStamp:0}); //timeStamp暂未支持。 +``` + +分发事件(dispatchEvent)可与监听接口(on、once、addEventListener)搭配使用,示例如下: + +```js +const workerInstance = new worker.ThreadWorker("workers/worker.js"); + //用法一: workerInstance.on("alert_on", (e)=>{ console.log("alert listener callback"); @@ -1593,6 +1611,14 @@ dispatchEvent(event: Event): boolean ```js const workerInstance = new worker.Worker("workers/worker.js"); +workerInstance.dispatchEvent({type:"eventType", timeStamp:0}); //timeStamp暂未支持。 +``` + +分发事件(dispatchEvent)可与监听接口(on、once、addEventListener)搭配使用,示例如下: + +```js +const workerInstance = new worker.Worker("workers/worker.js"); + //用法一: workerInstance.on("alert_on", (e)=>{ console.log("alert listener callback"); diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif index 3c65871bb208133129e46956ecee119276a390a5..3c5b1fa0343c2e6ec1ebf8592ed769e25fc5b2c4 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif differ diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif index e83e2ce11234a97242e1f57204b96568ad248d3d..dcb1ff67a62b1053d3e1c392bbe0535e81771c54 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif differ diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167001464.png b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167001464.png index 5113bc6bad4f88bc2558aae304394e00e107ce88..8f997a0b5c76b206acacaf8f689e55f73bbaf20a 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167001464.png and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167001464.png differ diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif index 1589d8650fa225626fb8dadf085732f92170e40f..78a6830c434d54aab7beba2f171edfb2f8b4e7d9 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif differ diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001178875308.png b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001178875308.png index c085790c6651bf041b772f58f5665d442caf6f4a..ff15fe644562b95b868829af17e7be0068097a75 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001178875308.png and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001178875308.png differ diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001179035242.png b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001179035242.png index c7311ac9226ca3c0a04cef9a51961424daf8a47a..2c2f496c7af6589057af1ed24d69f22dc8b7e2d2 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001179035242.png and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001179035242.png differ diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001224354967.png b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001224354967.png index 7469c1e329fc86f0ca7eec9374be7c2c03ae2d6b..ad3d9f57521f89bdcbab75649447319bee650fa1 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001224354967.png and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001224354967.png differ diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif index 294687cdfb0cf7f2ea34f91c87d0a6394b32bff0..eaf9944676873d49c6ca1ac7110a48413583821c 100644 Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif differ diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md index 04af8c3d1d9d1ed06e2d2059f66b8207ad230c35..a729e82a2490d80e25295f5f83173831e6fe4765 100644 --- a/zh-cn/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md @@ -584,7 +584,7 @@ fillRect(x: number, y: number, width:number, height: number): void ```html
- +
``` @@ -620,7 +620,7 @@ clearRect(x: number, y: number, width:number, height: number): void ```html
- +
``` diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-common-events.md b/zh-cn/application-dev/reference/arkui-js/js-components-common-events.md index ceaae4522e80f28606596e2edb933a1c5314f237..e60d8aa72568f3c9a298d01cf3f442bda12d1156 100644 --- a/zh-cn/application-dev/reference/arkui-js/js-components-common-events.md +++ b/zh-cn/application-dev/reference/arkui-js/js-components-common-events.md @@ -1,6 +1,7 @@ # 通用事件 > **说明:** +> > 从API version 4开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 ## 事件说明 @@ -241,32 +242,38 @@ setDragImage(pixelmap: PixelMap, offsetX: number,offsetY: number): boolean **示例:** ```js -createPixelMap() { - let color = new ArrayBuffer(4*96*96); - var buffer = new Uint8Array(color); - for (var i = 0; i < buffer.length; i++) { - buffer[i] = (i + 1) % 255; - } - let opts = { - alphaType:0, - editable:true, - pixelFormat:4, - scaleMode:1, - size:{height:96,width:96} - } - const promise = image.createPixelMap(color,opts); - promise.then((data)=> { - console.error('-create pixmap has info message:' + JSON.stringify(data)); - this.pixelMap = data; - this.pixelMapReader = data; - }) -}, - -onInit() { - this.createPixelMap -}, +import image from '@ohos.multimedia.image'; -dragStart(e) { - e.dataTransfer.setDragImage(this.pixelMapReader, 50, 50); +export default { + createPixelMap() { + let color = new ArrayBuffer(4 * 96 * 96); + var buffer = new Uint8Array(color); + for (var i = 0; i < buffer.length; i++) { + buffer[i] = (i + 1) % 255; + } + let opts = { + alphaType: 0, + editable: true, + pixelFormat: 4, + scaleMode: 1, + size: { + height: 96, width: 96 + } + } + const promise = image.createPixelMap(color, opts); + promise.then((data) => { + console.error('-create pixmap has info message:' + JSON.stringify(data)); + this.pixelMap = data; + this.pixelMapReader = data; + }) + }, + + onInit() { + this.createPixelMap + }, + + dragStart(e) { + e.dataTransfer.setDragImage(this.pixelMapReader, 50, 50); + } } ``` \ No newline at end of file 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 7df435b4a48c3b2292055637a837acb7498ec269..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中的所写的属性个数以及类型需要相同,若不相同会导致显示异常): +多个.container中的所写的属性个数以及类型需要相同,若不相同会导致显示异常。 ```html diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md b/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md index 3d7409df287240e3358c69d842b635dfad2346e1..fc4057a506525cbb98c611a973089923f306db93 100644 --- a/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md +++ b/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md @@ -138,52 +138,42 @@ button{ ```js // xxx.js -import promptAction from '@ohos.promptAction'; -export default{ - data:{ - animation:'', - }, - onInit(){ - }, - onShow(){ - var options = { - duration: 1500, - easing: 'friction', - delay: 500, - fill: 'forwards', - iterations: 2, - direction: 'normal', - }; - var frames = [ - {transform: {translate: '-120px -0px'}, opacity: 0.1, offset: 0.0}, - {transform: {translate: '120px 0px'}, opacity: 1.0, offset: 1.0} - ]; - this.animation = this.$element('idName').animate(frames, options); - // handle finish event - this.animation.onfinish = function(){ - promptAction.showToast({ - message: "The animation is finished." - }); - }; - // handle cancel event - this.animation.oncancel = function(){ - promptAction.showToast({ - message: "The animation is canceled." - }); - }; - // handle repeat event - this.animation.onrepeat = function(){ - promptAction.showToast({ - message: "The animation is repeated." - }); - }; - }, - start(){ - this.animation.play(); - }, - cancel(){ - this.animation.cancel(); - } +export default { + data: { + animation: '', + options: {}, + frames: {} + }, + onInit() { + this.options = { + duration: 1500, + easing: 'friction', + delay: 500, + fill: 'forwards', + iterations: 2, + direction: 'normal', + }; + this.frames = [ + { + transform: { + translate: '-120px -0px' + }, opacity: 0.1, offset: 0.0 + }, + { + transform: { + translate: '120px 0px' + }, opacity: 1.0, offset: 1.0 + } + ]; + }, + + start() { + this.animation = this.$element('idName').animate(this.frames, this.options); + this.animation.play(); + }, + cancel() { + this.animation.cancel(); + } } ``` diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md b/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md index c0db6e8c9ce3668558a09d4c6ffbc888d1b5d769..d01d5628e943b96315a417708508aac9087e061c 100644 --- a/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md +++ b/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md @@ -117,16 +117,19 @@ } .swiperContent1{ height: 100%; + width: 100%; justify-content: center; background-color: #007dff; } .swiperContent2{ height: 100%; + width: 100%; justify-content: center; background-color: #ff7500; } .swiperContent3{ height: 100%; + width: 100%; justify-content: center; background-color: #41ba41; } diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md b/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md index 2e9f3063b51fe8bb7e97235f9503984ac6c11b1e..704cd76d5bcfd906b8ed6fe2d94c5d017316a890 100644 --- a/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md +++ b/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md @@ -75,7 +75,7 @@
- +
diff --git a/zh-cn/application-dev/reference/arkui-js/js-offscreencanvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-js/js-offscreencanvasrenderingcontext2d.md index 755be53275e2a0526d803d679db177e1e1cfe71a..4d65a807c8c4dafcc60102b46fcb89e5b718c3d6 100644 --- a/zh-cn/application-dev/reference/arkui-js/js-offscreencanvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-js/js-offscreencanvasrenderingcontext2d.md @@ -94,12 +94,36 @@ isPointInPath(path?: Path2D, x: number, y: number): boolean **示例:** ```html -
- In path:{{textValue}} - +
+ In path:{{textValue}} +
``` +```css +/* xxx.css */ +.container { + display: flex; + flex-direction: column; + background-color: #F1F3F5; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; +} + +canvas { + width: 600px; + height: 600px; + background-color: #fdfdfd; + border: none; +} + +.textsize { + font-size: 40px; +} +``` + ```js // xxx.js export default { @@ -144,12 +168,36 @@ isPointInStroke(path?: Path2D, x: number, y: number): boolean **示例:** ```html -
- In path:{{textValue}} - +
+ In stroke:{{textValue}} +
``` +```css +/* xxx.css */ +.container { + display: flex; + flex-direction: column; + background-color: #F1F3F5; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; +} + +canvas { + width: 600px; + height: 600px; + background-color: #fdfdfd; + border: none; +} + +.textsize { + font-size: 40px; +} +``` + ```js // xxx.js export default { @@ -180,12 +228,36 @@ resetTransform(): void **示例:** ```html -
- In path:{{textValue}} - +
+ In path:{{textValue}} +
``` +```css +/* xxx.css */ +.container { + display: flex; + flex-direction: column; + background-color: #F1F3F5; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; +} + +canvas { + width: 600px; + height: 600px; + background-color: #fdfdfd; + border: none; +} + +.textsize { + font-size: 40px; +} +``` + ```js // xxx.js export default { diff --git a/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md b/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md index bc1fe6a19615251c6845f3bbc5e270954a72381e..0029bbf9a4ecafdc4e11a482d3a681210a93fc84 100644 --- a/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md +++ b/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md @@ -60,6 +60,7 @@ - [DataPanel](ts-basic-components-datapanel.md) - [DatePicker](ts-basic-components-datepicker.md) - [Divider](ts-basic-components-divider.md) + - [Formcomponent](ts-basic-components-formcomponent.md) - [Gauge](ts-basic-components-gauge.md) - [Image](ts-basic-components-image.md) - [ImageAnimator](ts-basic-components-imageanimator.md) @@ -101,7 +102,6 @@ - [ColumnSplit](ts-container-columnsplit.md) - [Counter](ts-container-counter.md) - [Flex](ts-container-flex.md) - - [FlowItem](ts-container-flowitem.md) - [GridCol](ts-container-gridcol.md) - [GridRow](ts-container-gridrow.md) - [Grid](ts-container-grid.md) @@ -121,7 +121,6 @@ - [Swiper](ts-container-swiper.md) - [Tabs](ts-container-tabs.md) - [TabContent](ts-container-tabcontent.md) - - [WaterFlow](ts-container-waterflow.md) - 媒体组件 - [Video](ts-media-components-video.md) - 绘制组件 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/borderImage.gif b/zh-cn/application-dev/reference/arkui-ts/figures/borderImage.gif deleted file mode 100644 index dd8d0f1a9f9a786de94abf348130c526ecb09641..0000000000000000000000000000000000000000 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/borderImage.gif and /dev/null differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png b/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png index edf91d4844deeee4f997f65d2d88b45bf7ff7f1d..0cf19ef4273d18c84b86582543129906e8720142 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png and b/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/form.png b/zh-cn/application-dev/reference/arkui-ts/figures/form.png new file mode 100644 index 0000000000000000000000000000000000000000..4586dc5b6e03f856e7c0e7c7a3158d12a574a1bf Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/form.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/imageAnimator.gif b/zh-cn/application-dev/reference/arkui-ts/figures/imageAnimator.gif index 9686185c04ef6c0a764fa7fcb91b8270d503f79d..aa023c33fc6335b746d1e36eee2d9b55dc48cc1a 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/imageAnimator.gif and b/zh-cn/application-dev/reference/arkui-ts/figures/imageAnimator.gif differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/loadProgress.jpeg b/zh-cn/application-dev/reference/arkui-ts/figures/loadProgress.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..141bc03c7528681e90fc3ed91b4c05611355e092 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/loadProgress.jpeg differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/rating1.gif b/zh-cn/application-dev/reference/arkui-ts/figures/rating1.gif new file mode 100644 index 0000000000000000000000000000000000000000..1d7a087484ec152e0be0cecdc1b571d5a6a8f076 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/rating1.gif differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/stepper.gif b/zh-cn/application-dev/reference/arkui-ts/figures/stepper.gif index 03c2354e7cab3ad876f70e1c46ec1c05e437de95..258957a3effd7b53b3adde928b4a50848f08f9ad 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/stepper.gif and b/zh-cn/application-dev/reference/arkui-ts/figures/stepper.gif differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/textstyle.png b/zh-cn/application-dev/reference/arkui-ts/figures/textstyle.png index 38128cb5f1a6aa7a36a3b4e483bf2815c7170117..babd8a3e221a628927e8f760126d625e9f395066 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/textstyle.png and b/zh-cn/application-dev/reference/arkui-ts/figures/textstyle.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/transform.PNG b/zh-cn/application-dev/reference/arkui-ts/figures/transform.PNG index a840e7050d1ae79179722dd9f23e4f383d1db2ec..9dff892b65a37c26514e9ebe925d200a75d7eee7 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/transform.PNG and b/zh-cn/application-dev/reference/arkui-ts/figures/transform.PNG differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_000000111864201.gif b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_000000111864201.gif deleted file mode 100644 index 24702d37d233b9f10a83e4e36b8c8ff23393014f..0000000000000000000000000000000000000000 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_000000111864201.gif and /dev/null differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174264366.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174264366.png index f27757afb281875f5cd4fca0e4b86684cdf0f1a8..212290aaf09896bef738026b0c519eb9b5d21de2 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174264366.png and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174264366.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174422906.PNG b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174422906.PNG new file mode 100644 index 0000000000000000000000000000000000000000..854d21cc4692e51e8eac70f5644f4362a58ee640 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174422906.PNG differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174422906.gif b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174422906.gif deleted file mode 100644 index 791930fb1f2f681dac85167f646dbcf88d121882..0000000000000000000000000000000000000000 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174422906.gif and /dev/null differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174582854.PNG b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174582854.PNG new file mode 100644 index 0000000000000000000000000000000000000000..0a8168a0a1041188a2a090bd380c2a9f5f6306a7 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174582854.PNG differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174582854.gif b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174582854.gif deleted file mode 100644 index 1be92ae9b4a61f304b91c5b03f7b0e799ac679fa..0000000000000000000000000000000000000000 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001174582854.gif and /dev/null differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744189.PNG b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744189.PNG new file mode 100644 index 0000000000000000000000000000000000000000..3bcd5aa32b3ae31928a9691864fa792a9733b162 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744189.PNG differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744189.gif b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744189.gif deleted file mode 100644 index 8da8a4adcc50c16eafb2378f0bbab0706471ae8b..0000000000000000000000000000000000000000 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744189.gif and /dev/null differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744193.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744193.png index 5855095851b92058f270d69a46546db43ec974b8..17a7767c1f69c12ccfb0c1436110a9e22b848c26 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744193.png and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219744193.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219864151.gif b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219864151.gif index 4edf113bcfe487f1b10ddd123dfdbb3ab612af92..83ba2889028efdc09a1f8529d53ec03022fda5d7 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219864151.gif and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219864151.gif 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-formcomponent.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-formcomponent.md new file mode 100644 index 0000000000000000000000000000000000000000..d451d3fd941f47c54577fc54125255a713e35ea7 --- /dev/null +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-formcomponent.md @@ -0,0 +1,124 @@ +# FormComponent + +提供卡片组件,实现卡片的显示功能。 + +> **说明:** +> +> - 该组件从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 +> +> - 该组件为卡片组件的使用方,对应提供方的使用参考文档[JS服务卡片UI组件](../js-service-widget-ui/Readme-CN.md)。 +> +> - 该组件使用需要具有系统签名。 + +## 权限 + +ohos.permission.GET_BUNDLE_INFO + +ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + +ohos.permission.REQUIRE_FORM + + +## 子组件 + +无 + + +## 接口 + +FormComponent(value: { + id: number; + name: string; + bundle: string; + ability: string; + module: string; + dimension?: FormDimension; + temporary?: boolean + }) + +创建卡片组件,用于显示提供的卡片。 + +**参数:** + +| 参数名 | 参数类型 | 必填 | 参数描述 | +| --------- | ------------------------------- | ---- | ----------------------------------------------------------------------- | +| id | number | 是 | 卡片标识(新建卡片填0)。 | +| name | string | 是 | 卡片名称。 | +| bundle | string | 是 | 目标卡片包名。 | +| ability | string | 是 | 目标卡片Ability名称。 | +| module | string | 是 | 卡片模块名称。 | +| dimension | [FormDimension](#formdimension) | 否 | 卡片尺寸,支持2 * 2,4 * 4,4 * 2类型卡片。
默认值:Dimension_2_2。 | +| temporary | boolean | 否 | 卡片是否为临时卡片。 | + +## FormDimension + +| 名称 | 描述 | +| -------------------------- | -------- | +| Dimension_1_2 | 1*2 卡片 | +| Dimension_2_2 | 2*2 卡片 | +| Dimension_2_4 | 2*4 卡片 | +| Dimension_4_4 | 4*4 卡片 | +| Dimension_2_19+ | 2*1 卡片 | + +## 属性 +| 名称 | 参数类型 | 必填 | 描述 | +| ----------- | ----------------------------------------------------------------------------------------------------- | ---- | ----------------------------------------------------------------------- | +| size | {
width?: [Length](ts-types.md#length),
height?: [Length](ts-types.md#length)
} | 是 | 设置高宽尺寸。 | +| moduleName | string | 是 | 卡片模块名称。 | +| dimension | [FormDimension](#formdimension) | 否 | 卡片尺寸,支持2 * 2,4 * 4,4 * 2类型卡片。
默认值:Dimension_2_2。 | +| allowUpdate | boolean | 否 | 是否允许卡片更新。
默认值:true。 | +| visibility | [Visibility](ts-appendix-enums.md#visibility) | 否 | 是否允许卡片可见。
默认值:Visible。 | + + + +## 事件 + +| 名称 | 功能描述 | +| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| onAcquired(callback: (info: { id: number }) => void) | 获取到卡片后触发,返回卡片的id. | +| onError(callback: (info: { errcode: number, msg: string }) => void) | 组件加载错误回调。
errcode: 错误码。
msg: 错误信息。 | +| onRouter(callback: (info: any) => void) | 组件路由事件回调,返回[routerEvent](../js-service-widget-ui/js-service-widget-syntax-hml.md#事件绑定)中的信息。 | +| onUninstall(callback: (info: { id: number }) => void) | 组件卸载回调,返回卸载卡片的id. | + + +## 示例 + +```ts +//card.ets +@Entry +@Component +struct CardExample { + @State formId:number = 0; + build() { + Column() { + Text('this is a card') + .fontSize(50) + .fontWeight(FontWeight.Bold) + FormComponent({ + id:this.formId, + name:"Form1", + bundle:"com.example.cardexample", + ability:"FormAbility", + module:"entry", + dimension:FormDimension.Dimension_2_2, + temporary:false + }) + .allowUpdate(true) + .size({width:360,height:360}) + .visibility(Visibility.Visible) + .onAcquired((form)=>{ + console.log(`form info : ${JSON.stringify(form)}`); + this.fomId = form.id; + }) + .onError((err)=>{ + console.log(`fail to add form, err: ${JSON.stringify(err)}`); + }) + + } + .width('100%') + .height('100%') + } +} +``` + +![Form](figures/form.png) \ No newline at end of file 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 17032035c09dfd69578339fe65354bf3c030ea54..29575ae02c8eae383bd8005984e8c75c89ba450c 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 @@ -52,7 +52,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 @@ -99,21 +99,21 @@ struct ImageExample1 { Text('default').fontSize(16).fontColor(0xcccccc).height(30) Row({ space: 5 }) { Image($r('app.media.ic_png')) - .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(110).height(110).border({ width: 1 }) .overlay('png', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.ic_gif')) - .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(110).height(110).border({ width: 1 }) .overlay('gif', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.ic_svg')) - .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(110).height(110).border({ width: 1 }) .overlay('svg', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) } Row({ space: 5 }) { Image($r('app.media.img_example')) - .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(110).height(110).border({ width: 1 }) .overlay('jpg', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image(this.src) - .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(110).height(110).border({ width: 1 }) .overlay('network', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) }.margin({ top: 25, bottom: 10 }) } @@ -122,25 +122,25 @@ struct ImageExample1 { Text('objectFit').fontSize(16).fontColor(0xcccccc).height(30) Row({ space: 5 }) { Image($r('app.media.img_example')) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .objectFit(ImageFit.None).width(110).height(110) .overlay('None', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.img_example')) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .objectFit(ImageFit.Fill).width(110).height(110) .overlay('Fill', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.img_example')) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .objectFit(ImageFit.Cover).width(110).height(110) .overlay('Cover', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) } Row({ space: 5 }) { Image($r('app.media.img_example_w250')) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .objectFit(ImageFit.Contain).width(110).height(110) .overlay('Contain', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.img_example_w250')) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .objectFit(ImageFit.ScaleDown).width(110).height(110) .overlay('ScaleDown', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) }.margin({ top: 25 }) @@ -231,18 +231,18 @@ struct ImageExample2 { Row({ space: 50 }) { Image($r('app.media.img_example')) .renderMode(ImageRenderMode.Original).width(100).height(100) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .overlay('Original', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.img_example')) .renderMode(ImageRenderMode.Template).width(100).height(100) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .overlay('Template', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) } Text('alt').fontSize(12).fontColor(0xcccccc).width('96%').height(30) Image('') .alt($r('app.media.Image_none')) - .width(100).height(100).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(100).height(100).border({ width: 1 }) Text('sourceSize').fontSize(12).fontColor(0xcccccc).width('96%') Row({ space: 50 }) { @@ -252,7 +252,7 @@ struct ImageExample2 { height: 150 }) .objectFit(ImageFit.ScaleDown).width('25%').aspectRatio(1) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .overlay('w:150 h:150', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.img_example')) .sourceSize({ @@ -260,22 +260,22 @@ struct ImageExample2 { height: 200 }) .objectFit(ImageFit.ScaleDown).width('25%').aspectRatio(1) - .border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .border({ width: 1 }) .overlay('w:200 h:200', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) } Text('objectRepeat').fontSize(12).fontColor(0xcccccc).width('96%').height(30) Row({ space: 5 }) { Image($r('app.media.ic_health_heart')) - .width(120).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(120).height(125).border({ width: 1 }) .objectRepeat(ImageRepeat.XY).objectFit(ImageFit.ScaleDown) .overlay('ImageRepeat.XY', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.ic_health_heart')) - .width(110).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(110).height(125).border({ width: 1 }) .objectRepeat(ImageRepeat.Y).objectFit(ImageFit.ScaleDown) .overlay('ImageRepeat.Y', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) Image($r('app.media.ic_health_heart')) - .width(110).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed) + .width(110).height(125).border({ width: 1 }) .objectRepeat(ImageRepeat.X).objectFit(ImageFit.ScaleDown) .overlay('ImageRepeat.X', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) } diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-imageanimator.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-imageanimator.md index 43fe09091edccbe1e9d8703d256d1ed0a28ac945..c43cdc2d4abec8e72c858d517a5dbb988e21b2ae 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-imageanimator.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-imageanimator.md @@ -70,39 +70,20 @@ struct ImageAnimatorExample { ImageAnimator() .images([ { - src: $r('app.media.img1'), - duration: 500, - width: 170, - height: 120, - top: 0, - left: 0 + src: $r('app.media.img1') }, { - src: $r('app.media.img2'), - duration: 500, - width: 170, - height: 120, - top: 0, - left: 170 + src: $r('app.media.img2') }, { - src: $r('app.media.img3'), - duration: 500, - width: 170, - height: 120, - top: 120, - left: 170 + src: $r('app.media.img3') }, { - src: $r('app.media.img4'), - duration: 500, - width: 170, - height: 120, - top: 120, - left: 0 + src: $r('app.media.img4') } ]) - .state(this.state).reverse(this.reverse).fixedSize(false) + .duration(2000) + .state(this.state).reverse(this.reverse) .fillMode(FillMode.None).iterations(this.iterations).width(340).height(240) .margin({ top: 100 }) .onStart(() => { diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-loadingprogress.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-loadingprogress.md index abad3103f7e525eba3beb9e9d6f4d9163b8950b9..d52eaf34dbfe8a77bebb67e3e18f43238e35644a 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-loadingprogress.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-loadingprogress.md @@ -41,4 +41,4 @@ struct LoadingProgressExample { } ``` -![zh-cn_image_000000111864201](figures/zh-cn_image_000000111864201.gif) +![loadProgress](figures/loadProgress.jpeg) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md index 92b69ccb79cf84d7033c67052aaf286020368d7f..162f15f8f3645a41808ef0ad7dfca5a20077aa87 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md @@ -20,3 +20,61 @@ NavRouter() | 名称 | 功能描述 | | ---------------------------------------- | ---------------------------------------- | | onStateChange(callback: (isActivated: boolean) => void) | 组件激活状态切换时触发该回调。返回值isActivated为true时表示激活,为false时表示未激活。
**说明:** 用户点击NavRouter,激活NavRouter,加载对应的NavDestination子组件时,回调onStateChange(true);NavRouter对应的NavDestination子组件不再显示时,回调onStateChange(false)。 | + +## 示例 + +```ts +// xxx.ets +@Entry +@Component +struct NavRouterExample { + private arr: number[] = [0, 1, 2, 3] + @State isActive: boolean = false + @State dex: number = 0 + + build() { + Column() { + Navigation() { + List({ space: 12, initialIndex: 0 }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + NavRouter() { + Row() { + Image($r('app.media.icon')).width(30).height(30).borderRadius(30).margin({ left: 3, right: 10 }) + Text(`NavRouter${item + 1}`) + .fontSize(22) + .fontWeight(500) + .textAlign(TextAlign.Center) + } + .width(180) + .height(72) + .backgroundColor(this.dex === index ? '#ccc' : '#fff') + .borderRadius(24) + + NavDestination() { + Text(`我是NavDestination第${item + 1}页内容`).fontSize(50) + Flex({ direction: FlexDirection.Row }) { + Row() { + Image($r('app.media.icon')).width(40).height(40).borderRadius(40).margin({ right: 15 }) + Text('今天共有七节课').fontSize(30) + }.padding({ left: 15 }) + } + }.backgroundColor('#ccc') + .title(`NavDestination${item + 1}`) + }.onStateChange((isActivated: boolean) => { + this.dex = index + }) + } + }, item => item) + } + .height('100%') + .margin({ top: 12, left: 12 }) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} +``` + diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-rating.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-rating.md index 45552e9b3a8558c594c0445a78c47ec3ce5ddd4f..458692f9d232176521f0c46d7510abc907ebb9f0 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-rating.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-rating.md @@ -39,9 +39,10 @@ Rating(options?: { rating: number, indicator?: boolean }) | -------- | -------- | | onChange(callback:(value: number) => void) | 操作评分条的评星发生改变时触发该回调。 | - ## 示例 +### 示例1 + ```ts // xxx.ets @Entry @@ -95,3 +96,37 @@ struct RatingExample { ``` ![rating](figures/rating.gif) + +### 示例2 + +```ts +// xxx.ets +@Entry +@Component +struct RatingExample { + @State rating: number = 3.5 + + build() { + Column() { + Rating({ rating: this.rating, indicator: false }) + .stars(5) + .stepSize(0.5) + .starStyle({ + backgroundUri: '/common/imag1.png', // common目录与pages同级 + foregroundUri: '/common/imag2.png', + secondaryUri: '/common/imag3.png' + }) + .margin({ top: 24 }) + .onChange((value: number) => { + this.rating = value + }) + Text('current score is ' + this.rating) + .fontSize(16) + .fontColor('rgba(24,36,49,0.60)') + .margin({ top: 16 }) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} +``` + +![rating1](figures/rating1.gif) \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md index 98e907ab66bc8fabb12dc522ef6a7439bfd26fb7..7b823400d555d9ed8e11b215ccbc0994754e7f8d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md @@ -38,6 +38,7 @@ RichText(content:string) | \

--\

| 被用来定义HTML,\

定义重要等级最高的标题,\

定义重要等级最低的标题。 | \

这是一个标题\

\

这是h2标题\

| | \

\

| 定义段落。 | \

这是一个段落\

| | \
| 插入一个简单的换行符。 | \

这是一个段落\
这是换行段落\

| +| \ | 规定文本的字体、字体尺寸、字体颜色。 | \这是一段红色字体。\ | | \
| 定义HTML页面中的主题变化(比如话题的转移),并显示为一条水平线。 | \

这个一个段落\

\
\

这是一个段落\

| | \\ | 用来定义图片。 | \\ | | \
\
| 常用于组合块级元素,以便通过CSS来对这些元素进行格式化。 | \
\

这是一个在div元素中的标题。\

\
| @@ -82,4 +83,8 @@ struct RichTextExample { } ``` - ![richText](figures/richText.png) \ No newline at end of file + ![richText](figures/richText.png) + +## 使用场景说明 + +RichText组件底层复用了Web组件来提供基础能力,包括但不限于HTML页面的解析、渲染等。但由于Web组件比较消耗资源,所以在一些重复使用RichText组件的场景下,比如在List下循环重复使用RichText时,会出现卡顿、滑动响应慢等现象。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-search.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-search.md index a336251138f20d8f02d64fefbe30e18b423d0dbb..443f68660dbeb6d1be95c1aa9468828a2db02e98 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-search.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-search.md @@ -87,7 +87,7 @@ struct SearchExample { .searchButton('SEARCH') .width(400) .height(40) - .backgroundColor(Color.White) + .backgroundColor('#F5F5F5') .placeholderColor(Color.Grey) .placeholderFont({ size: 14, weight: 400 }) .textFont({ size: 14, weight: 400 }) 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..5d75e95d46cf426c88e71511beb0ff61e63bed42 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:上一步骤页索引值。 | @@ -122,7 +122,6 @@ struct StepperExample { .itemTextStyle() }.itemStyle() } - .nextLabel('Finish') } .backgroundColor('#F1F3F5') .onFinish(() => { 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-texttimer.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-texttimer.md index 8396476e8ad0867408a4cd801fd7d65e9758a88c..3e53817aa904b241a948b1456fa402d0d961130d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-texttimer.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-texttimer.md @@ -75,7 +75,7 @@ struct TextTimerExample { build() { Column() { - TextTimer({ controller: this.textTimerController, isCountDown: true, count: 30000 }) + TextTimer({ isCountDown: true, count: 30000, controller: this.textTimerController }) .format(this.format) .fontColor(Color.Black) .fontSize(50) 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 2ca6a9783d2c0a5c2a76454df4ac49f3515f570a..6d88aff8568c3a6a774c2f2af509676faecd8b49 100644 --- 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 @@ -2,7 +2,7 @@ 提供具有网页显示能力的Web组件。 -> **说明:** +> **说明:** > > - 该组件从API Version 8开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 > - 示例效果请以真机运行为准,当前IDE预览器不支持。 @@ -21,6 +21,7 @@ Web(options: { src: ResourceStr, controller: WebController | WebviewController}) > **说明:** > > 不支持转场动画。 +> 同一页面的多个web组件,必须绑定不同的WebController。 **参数:** @@ -744,36 +745,6 @@ userAgent(userAgent: string) } ``` -### webDebuggingAccess9+ - -webDebuggingAccess(webDebuggingAccess: boolean) - -设置是否启用网页调试功能。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ------------------ | ------- | ---- | ----- | ------------- | -| webDebuggingAccess | boolean | 是 | false | 设置是否启用网页调试功能。 | - -**示例:** - - ```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) @@ -804,6 +775,7 @@ blockNetwork(block: boolean) } } ``` + ### defaultFixedFontSize9+ defaultFixedFontSize(size: number) @@ -1299,7 +1271,7 @@ onBeforeUnload(callback: (event?: { url: string; message: string; result: JsResu @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1360,7 +1332,7 @@ onConfirm(callback: (event?: { url: string; message: string; result: JsResult }) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1420,7 +1392,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 }) @@ -1480,7 +1452,7 @@ onConsole(callback: (event?: { message: ConsoleMessage }) => boolean) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1517,7 +1489,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 }) @@ -1537,7 +1509,7 @@ onDownloadStart(callback: (event?: { url: string, userAgent: string, contentDisp onErrorReceive(callback: (event?: { request: WebResourceRequest, error: WebResourceError }) => void) -网页加载遇到错误时触发该回调。出于性能考虑,建议此回调中尽量执行简单逻辑。 +网页加载遇到错误时触发该回调。出于性能考虑,建议此回调中尽量执行简单逻辑。在无网络的情况下,触发此回调。 **参数:** @@ -1554,7 +1526,7 @@ onErrorReceive(callback: (event?: { request: WebResourceRequest, error: WebResou @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1598,7 +1570,7 @@ onHttpErrorReceive(callback: (event?: { request: WebResourceRequest, response: W @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1649,7 +1621,7 @@ onPageBegin(callback: (event?: { url: string }) => void) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1682,7 +1654,7 @@ onPageEnd(callback: (event?: { url: string }) => void) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1714,7 +1686,7 @@ onProgressChange(callback: (event?: { newProgress: number }) => void) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1746,7 +1718,7 @@ onTitleReceive(callback: (event?: { title: string }) => void) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1779,7 +1751,7 @@ onRefreshAccessedHistory(callback: (event?: { url: string, isRefreshed: boolean @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1811,7 +1783,7 @@ onRenderExited(callback: (event?: { renderExitReason: RenderExitReason }) => voi @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'chrome://crash/', controller: this.controller }) @@ -1899,7 +1871,7 @@ onResourceLoad(callback: (event: {url: string}) => void) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1932,7 +1904,7 @@ onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1948,7 +1920,7 @@ onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void) onUrlLoadIntercept(callback: (event?: { data:string | WebResourceRequest }) => boolean) -当Web组件加载url之前触发该回调,用于是否阻止此次访问。 +当Web组件加载url之前触发该回调,用于判断是否阻止此次访问。默认允许加载。 **参数:** @@ -1970,7 +1942,7 @@ onUrlLoadIntercept(callback: (event?: { data:string | WebResourceRequest }) => b @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -2078,7 +2050,7 @@ onHttpAuthRequest(callback: (event?: { handler: HttpAuthHandler, host: string, r struct WebComponent { controller: WebController = new WebController() httpAuth: boolean = false - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -2139,7 +2111,7 @@ onSslErrorEventReceive(callback: (event: { handler: SslErrorHandler, error: SslE @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -2324,8 +2296,8 @@ onScroll(callback: (event: {xOffset: number, yOffset: number}) => void) | 参数名 | 参数类型 | 参数描述 | | ------- | ------ | ------------ | -| xOffset | number | 水平滚动条滚动所在位置。 | -| yOffset | number | 竖直滚动条滚动所在位置。 | +| xOffset | number | 以网页最左端为基准,水平滚动条滚动所在位置。 | +| yOffset | number | 以网页最上端为基准,竖直滚动条滚动所在位置。 | **示例:** @@ -2666,7 +2638,7 @@ onPageVisible(callback: (event: {url: string}) => void) onInterceptKeyEvent(callback: (event: KeyEvent) => boolean) -设置键盘事件的回调函数,该回调在被Webview消费前触发。 +设置键盘事件的回调函数,该回调在被Webview使用前触发。 **参数:** @@ -2693,7 +2665,7 @@ onInterceptKeyEvent(callback: (event: KeyEvent) => boolean) Column() { Web({ src:'www.example.com', controller: this.controller }) .onInterceptKeyEvent((event) => { - if (event.keyCode == 2017 || event.keyCode == 2018) { + if (event.keyCode == 2017 || event.keyCode == 2018) { console.info(`onInterceptKeyEvent get event.keyCode ${event.keyCode}`) return true; } @@ -2782,7 +2754,7 @@ getLineNumber(): number 获取ConsoleMessage的行数。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | -------------------- | @@ -2794,7 +2766,7 @@ getMessage(): string 获取ConsoleMessage的日志信息。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ---------------------- | @@ -2806,7 +2778,7 @@ getMessageLevel(): MessageLevel 获取ConsoleMessage的信息级别。 -**返回值:** +**返回值:** | 类型 | 说明 | | --------------------------------- | ---------------------- | @@ -2818,7 +2790,7 @@ getSourceId(): string 获取网页源文件路径和名字。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ------------- | @@ -2888,7 +2860,7 @@ getErrorCode(): number 获取加载资源的错误码。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ----------- | @@ -2900,7 +2872,7 @@ getErrorInfo(): string 获取加载资源的错误信息。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ------------ | @@ -2916,7 +2888,7 @@ getResponseHeader() : Array\ 获取资源请求头信息。 -**返回值:** +**返回值:** | 类型 | 说明 | | -------------------------- | ---------- | @@ -2928,7 +2900,7 @@ getRequestUrl(): string 获取资源请求的URL信息。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ------------- | @@ -2940,7 +2912,7 @@ isMainFrame(): boolean 判断资源请求是否为主frame。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------- | ---------------- | @@ -2952,7 +2924,7 @@ isRedirect(): boolean 判断资源请求是否被服务端重定向。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------- | ---------------- | @@ -2964,7 +2936,7 @@ isRequestGesture(): boolean 获取资源请求是否与手势(如点击)相关联。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------- | -------------------- | @@ -2990,7 +2962,7 @@ getReasonMessage(): string 获取资源响应的状态码描述。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ------------- | @@ -3002,7 +2974,7 @@ getResponseCode(): number 获取资源响应的状态码。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ----------- | @@ -3014,7 +2986,7 @@ getResponseData(): string 获取资源响应数据。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | --------- | @@ -3026,7 +2998,7 @@ getResponseEncoding(): string 获取资源响应的编码。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ---------- | @@ -3038,7 +3010,7 @@ getResponseHeader() : Array\ 获取资源响应头。 -**返回值:** +**返回值:** | 类型 | 说明 | | -------------------------- | -------- | @@ -3050,7 +3022,7 @@ getResponseMimeType(): string 获取资源响应的媒体(MIME)类型。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------ | ------------------ | @@ -3160,25 +3132,13 @@ handleFileList(fileList: Array\): void web组件获取文件对象。示例代码参考[onShowFileSelector事件](#onshowfileselector9)。 -### getTitle9+ - -getTitle(): string - -获取文件选择器标题。 - -**返回值:** - -| 类型 | 说明 | -| ------ | ---------- | -| string | 返回文件选择器标题。 | - ### getMode9+ getMode(): FileSelectorMode 获取文件选择器的模式。 -**返回值:** +**返回值:** | 类型 | 说明 | | ---------------------------------------- | ----------- | @@ -3190,7 +3150,7 @@ getAcceptType(): Array\ 获取文件过滤类型。 -**返回值:** +**返回值:** | 类型 | 说明 | | --------------- | --------- | @@ -3202,7 +3162,7 @@ isCapture(): boolean 获取是否调用多媒体能力。 -**返回值:** +**返回值:** | 类型 | 说明 | | ------- | ------------ | @@ -3338,7 +3298,7 @@ grant(resources: Array\): void | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | --------- | --------------- | ---- | ---- | ------------- | -| resources | Array\ | 是 | - | 网页所请求的权限资源列表。 | +| resources | Array\ | 是 | - | 授予网页请求的权限的资源列表。 | ## ContextMenuSourceType9+枚举说明 | 名称 | 描述 | @@ -3609,7 +3569,7 @@ requestFocus() @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('requestFocus') @@ -3644,7 +3604,7 @@ accessBackward(): boolean @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('accessBackward') @@ -3680,7 +3640,7 @@ accessForward(): boolean @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('accessForward') @@ -3723,7 +3683,7 @@ accessStep(step: number): boolean struct WebComponent { controller: WebController = new WebController() @State steps: number = 2 - + build() { Column() { Button('accessStep') @@ -3753,7 +3713,7 @@ backward(): void @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('backward') @@ -3782,7 +3742,7 @@ forward(): void @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('forward') @@ -3795,40 +3755,6 @@ forward(): void } ``` -### backOrForward9+ - -backOrForward(step: number): void - -按照历史栈,前进或者后退指定步长的页面,当历史栈中不存在对应步长的页面时,不会进行页面跳转。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ---- | ------ | ---- | ---- | ----------- | -| step | number | 是 | - | 需要前进或后退的步长。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - @State step: number = -2 - - build() { - Column() { - Button('backOrForward') - .onClick(() => { - this.controller.backOrForward(this.step) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - ### deleteJavaScriptRegister(deprecated) deleteJavaScriptRegister(name: string) @@ -3852,7 +3778,7 @@ deleteJavaScriptRegister(name: string) struct WebComponent { controller: WebController = new WebController() @State name: string = 'Object' - + build() { Column() { Button('deleteJavaScriptRegister') @@ -3869,7 +3795,7 @@ deleteJavaScriptRegister(name: string) getHitTest(): HitTestType -获取当前被点击区域的元素类型。 +获取当前被点击区域的元素类型。 从API version 9开始不再维护,建议使用[getHitTest9+](../apis/js-apis-webview.md#gethittest)代替。 @@ -3887,7 +3813,7 @@ getHitTest(): HitTestType @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getHitTest') @@ -3901,73 +3827,6 @@ getHitTest(): HitTestType } ``` -### getHitTestValue9+ -getHitTestValue(): HitTestValue - -获取当前被点击区域的元素信息。 - -**返回值:** - -| 类型 | 说明 | -| ------------------------------ | ---------- | -| [HitTestValue](#hittestvalue9) | 点击区域的元素信息。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('getHitTestValue') - .onClick(() => { - let hitValue = this.controller.getHitTestValue() - console.log("hitType: " + hitValue.getType()) - console.log("extra: " + hitValue.getExtra()) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### getWebId9+ -getWebId(): number - -获取当前Web组件的索引值,用于多个Web组件的管理。 - -**返回值:** - -| 类型 | 说明 | -| ------ | ------------ | -| number | 当前Web组件的索引值。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('getWebId') - .onClick(() => { - let id = this.controller.getWebId() - console.log("id: " + id) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - ### getTitle9+ getTitle(): string @@ -3987,7 +3846,7 @@ getTitle(): string @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getTitle') @@ -4001,72 +3860,6 @@ getTitle(): string } ``` -### getPageHeight9+ -getPageHeight(): number - -获取当前网页的页面高度。 - -**返回值:** - -| 类型 | 说明 | -| ------ | ---------- | -| number | 当前网页的页面高度。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('getPageHeight') - .onClick(() => { - let pageHeight = this.controller.getPageHeight() - console.log("pageHeight: " + pageHeight) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### getDefaultUserAgent9+ -getDefaultUserAgent(): string - -获取当前默认用户代理。 - -**返回值:** - -| 类型 | 说明 | -| ------ | ------- | -| string | 默认用户代理。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('getDefaultUserAgent') - .onClick(() => { - let userAgent = this.controller.getDefaultUserAgent() - console.log("userAgent: " + userAgent) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - ### loadData(deprecated) loadData(options: { data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string }) @@ -4097,7 +3890,7 @@ baseUrl为空时,通过”data“协议加载指定的一段字符串。 @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('loadData') @@ -4141,7 +3934,7 @@ loadUrl(options: { url: string | Resource, headers?: Array\ }) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('loadUrl') @@ -4170,7 +3963,7 @@ onActive(): void @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('onActive') @@ -4199,7 +3992,7 @@ onInactive(): void @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('onInactive') @@ -4234,7 +4027,7 @@ zoom(factor: number): void struct WebComponent { controller: WebController = new WebController() @State factor: number = 1 - + build() { Column() { Button('zoom') @@ -4247,72 +4040,6 @@ zoom(factor: number): void } ``` -### zoomIn9+ -zoomIn(): boolean - -调用此接口将当前网页进行放大,比列20%。 - -**返回值:** - -| 类型 | 说明 | -| ------- | ----------- | -| boolean | 放大操作是否成功执行。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('zoomIn') - .onClick(() => { - let result = this.controller.zoomIn() - console.log("result: " + result) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### zoomOut9+ -zoomOut(): boolean - -调用此接口将当前网页进行缩小,比列20%。 - -**返回值:** - -| 类型 | 说明 | -| ------- | ----------- | -| boolean | 缩小操作是否成功执行。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('zoomOut') - .onClick(() => { - let result = this.controller.zoomOut() - console.log("result: " + result) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - ### refresh(deprecated) refresh() @@ -4329,7 +4056,7 @@ refresh() @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('refresh') @@ -4407,7 +4134,7 @@ registerJavaScriptProxy(options: { object: object, name: string, methodList: Arr } - + ``` ### runJavaScript(deprecated) @@ -4487,7 +4214,7 @@ stop() @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('stop') @@ -4516,777 +4243,12 @@ clearHistory(): void @Component struct WebComponent { controller: WebController = new WebController() - - build() { - Column() { - Button('clearHistory') - .onClick(() => { - this.controller.clearHistory() - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### clearSslCache - -clearSslCache(): void - -清除Web组件记录的SSL证书错误事件对应的用户操作行为。 - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('clearSslCache') - .onClick(() => { - this.controller.clearSslCache() - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### clearClientAuthenticationCache - -clearClientAuthenticationCache(): void - -清除Web组件记录的客户端证书请求事件对应的用户操作行为。 - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('clearClientAuthenticationCache') - .onClick(() => { - this.controller.clearClientAuthenticationCache() - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### getCookieManager9+ - -getCookieManager(): WebCookie - -获取web组件cookie管理对象。 - -**返回值:** - -| 类型 | 说明 | -| --------- | ---------------------------------------- | -| WebCookie | web组件cookie管理对象,参考[WebCookie](#webcookie)定义。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('getCookieManager') - .onClick(() => { - let cookieManager = this.controller.getCookieManager() - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### createWebMessagePorts9+ - -createWebMessagePorts(): Array\ - -创建Web消息端口。 - -**返回值:** - - -| 类型 | 说明 | -| ---------------------------------------- | ---------- | -| Array\<[WebMessagePort](#webmessageport9)\> | web消息端口列表。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - ports: WebMessagePort[] = null - build() { - Column() { - Button('createWebMessagePorts') - .onClick(() => { - this.ports = this.controller.createWebMessagePorts() - console.log("createWebMessagePorts size:" + this.ports.length) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### postMessage9+ - -postMessage(options: { message: WebMessageEvent, uri: string}): void - -发送Web消息端口到HTML5。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ------- | ------------------------------------ | ---- | ---- | ----------------- | -| message | [WebMessageEvent](#webmessageevent9) | 是 | - | 要发送的消息,包含数据和消息端口。 | -| uri | string | 是 | - | 接收该消息的URI。 | - -**示例:** - - ```ts - // index.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - ports: WebMessagePort[] = null - @State sendFromEts: string = 'Send this message from ets to HTML' - @State receivedFromHtml: string = 'Display received message send from HTML' - - build() { - Column() { - // 展示接收到的来自HTML的内容 - Text(this.receivedFromHtml) - // 输入框的内容发送到HTML - TextInput({placeholder: 'Send this message from ets to HTML'}) - .onChange((value: string) => { - this.sendFromEts = value - }) - - // 1、创建两个消息端口 - Button('1.CreateWebMessagePorts') - .onClick(() => { - this.ports = this.controller.createWebMessagePorts() - console.log("createWebMessagePorts size:" + this.ports.length) - }) - - // 2、将其中一个消息端口发送到HTML侧,由HTML侧保存并使用。 - Button('2.PostMessagePort') - .onClick(() => { - var sendPortArray = new Array(this.ports[1]) - var msgEvent = new WebMessageEvent() - msgEvent.setData("__init_port__") - msgEvent.setPorts(sendPortArray) - this.controller.postMessage({message: msgEvent, uri: "*"}) - }) - - // 3、另一个消息端口在应用侧注册回调事件。 - Button('3.RegisterCallback') - .onClick(() => { - this.ports[0].onMessageEvent((result: string) => { - var msg = 'Got msg from HTML: ' + result - this.receivedFromHtml = msg - }) - }) - - // 4、使用应用侧的端口给另一个已经发送到HTML的消息端口发送消息。 - Button('4.SendDataToHtml5') - .onClick(() => { - var msg = new WebMessageEvent() - msg.setData(this.sendFromEts) - this.ports[0].postMessageEvent(msg) - }) - Web({ src: $rawfile("index.html"), controller: this.controller }) - .javaScriptAccess(true) - .fileAccess(true) - } - } - } - - // index.html - - - -

Web Message Port Demo

-
-
-
-
-

display received message send from ets

- - - - - // index.js - var h5Port; - var output = document.querySelector('.output'); - window.addEventListener('message', function(event) { - if (event.data == '__init_port__') { - if(event.ports[0] != null) { - h5Port = event.ports[0]; // 1. 保存从ets侧发送过来的端口 - h5Port.onmessage = function(event) { - // 2. 接收ets侧发送过来的消息. - var msg = 'Got message from ets:' + event.data; - output.innerHTML = msg; - } - } - } - }) - - // 3. 使用h5Port往ets侧发送消息. - function PostMsgToEts(data) { - h5Port.postMessage(data) - } - ``` - -### getUrl9+ - -getUrl(): string - -获取当前页面的url地址。 - -**返回值:** - -| 类型 | 说明 | -| ------ | ----------- | -| string | 当前页面的url地址。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - build() { - Column() { - Button('getUrl') - .onClick(() => { - console.log("url: " + this.controller.getUrl()) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### searchAllAsync9+ - -searchAllAsync(searchString: string): void - -异步查找网页中所有匹配关键字'searchString'的内容并高亮,结果通过[onSearchResultReceive](#onsearchresultreceive9)异步返回。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ------------ | ------ | ---- | ---- | ------- | -| searchString | string | 是 | - | 查找的关键字。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - @State searchString: string = "xxx" - - build() { - Column() { - Button('searchString') - .onClick(() => { - this.controller.searchAllAsync(this.searchString) - }) - Button('clearMatches') - .onClick(() => { - this.controller.clearMatches() - }) - Button('searchNext') - .onClick(() => { - this.controller.searchNext(true) - }) - Web({ src: 'www.example.com', controller: this.controller }) - .onSearchResultReceive(ret => { - console.log("on search result receive:" + "[cur]" + ret.activeMatchOrdinal + - "[total]" + ret.numberOfMatches + "[isDone]"+ ret.isDoneCounting) - }) - } - } - } - ``` - -### clearMatches9+ - -clearMatches(): void - -清除所有通过[searchAllAsync](#searchallasync9)匹配到的高亮字符查找结果。 - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('clearMatches') - .onClick(() => { - this.controller.clearMatches() - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### searchNext9+ - -searchNext(forward: boolean): void - -滚动到下一个匹配的查找结果并高亮。 - -**参数:** -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ------- | ------- | ---- | ---- | ----------- | -| forward | boolean | 是 | - | 从前向后或者逆向查找。 | - - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('searchNext') - .onClick(() => { - this.controller.searchNext(true) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -## HitTestValue9+ -提供点击区域的元素信息。示例代码参考[getHitTestValue](#gethittestvalue9)。 - -### getType9+ -getType(): HitTestType - -获取当前被点击区域的元素类型。 - -**返回值:** - -| 类型 | 说明 | -| ------------------------------- | ------------- | -| [HitTestType](#hittesttype枚举说明) | 当前被点击区域的元素类型。 | - -### getExtra9+ -getExtra(): string - -若被点击区域为图片或链接,则附加参数信息为其url地址。 - -**返回值:** - -| 类型 | 说明 | -| ------ | ------------ | -| string | 点击区域的附加参数信息。 | - - -## WebCookie - -通过WebCookie可以控制Web组件中的cookie的各种行为,其中每个应用中的所有web组件共享一个WebCookie。通过controller方法中的getCookieManager方法可以获取WebCookie对象,进行后续的cookie管理操作。 - -### setCookie9+ -setCookie(url: string, value: string): boolean - -设置cookie,该方法为同步方法。设置成功返回true,否则返回false。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ----- | ------ | ---- | ---- | ----------------- | -| url | string | 是 | - | 要设置的cookie所属的url。 | -| value | string | 是 | - | cookie的值。 | - -**返回值:** - -| 类型 | 说明 | -| ------- | ------------- | -| boolean | 设置cookie是否成功。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('setCookie') - .onClick(() => { - let result = this.controller.getCookieManager().setCookie("www.example.com", "a=b") - console.log("result: " + result) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### getCookie9+ -getCookie(url: string): string - -获取指定url对应cookie的值。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ---- | ------ | ---- | ---- | ----------------- | -| url | string | 是 | - | 要获取的cookie所属的url。 | - -**返回值:** - -| 类型 | 说明 | -| ------ | ----------------- | -| string | 指定url对应的cookie的值。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('getCookie') - .onClick(() => { - let value = web_webview.WebCookieManager.getCookie('www.example.com') - console.log("value: " + value) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### setCookie9+ -setCookie(url: string, value: string): boolean - -为指定url设置单个cookie的值。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ----- | ------ | ---- | ---- | ----------------- | -| url | string | 是 | - | 要设置的cookie所属的url。 | -| value | string | 是 | - | 要设置的cookie的值。 | - -**返回值:** - -| 类型 | 说明 | -| ------- | ------------- | -| boolean | 设置cookie是否成功。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('setCookie') - .onClick(() => { - let result = web_webview.WebCookieManager.setCookie('www.example.com', 'a=b') - console.log("result: " + result) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### saveCookieSync9+ -saveCookieSync(): boolean - -将当前存在内存中的cookie保存到磁盘中,该方法为同步方法。 - -**返回值:** - -| 类型 | 说明 | -| ------- | -------------------- | -| boolean | 同步内存cookie到磁盘操作是否成功。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('saveCookieSync') - .onClick(() => { - let result = web_webview.WebCookieManager.saveCookieSync() - console.log("result: " + result) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### saveCookieAsync9+ -saveCookieAsync(): Promise\ - -将当前存在内存中的cookie以Promise方法异步保存到磁盘中。 - -**返回值:** - -| 类型 | 说明 | -| ----------------- | --------------------------- | -| Promise\ | Promise实例,用于获取cookie是否成功保存。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('saveCookieAsync') - .onClick(() => { - web_webview.WebCookieManager.saveCookieAsync() - .then (function(result) { - console.log("result: " + result) - }) - .catch(function(error) { - console.error("error: " + error) - }) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### saveCookieAsync9+ -saveCookieAsync(callback: AsyncCallback\): void - -将当前存在内存中的cookie异步保存到磁盘中。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| -------- | ----------------------- | ---- | ---- | ---------------------------- | -| callback | AsyncCallback\ | 是 | - | 返回cookie是否成功保存的布尔值作为回调函数的入参。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('saveCookieAsync') - .onClick(() => { - web_webview.WebCookieManager.saveCookieAsync(function(result) { - console.log("result: " + result) - }) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### isCookieAllowed9+ -isCookieAllowed(): boolean - -获取WebCookieManager实例是否拥有发送和接收cookie的权限。 - -**返回值:** - -| 类型 | 说明 | -| ------- | ------------------- | -| boolean | 是否拥有发送和接收cookie的权限。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('isCookieAllowed') - .onClick(() => { - let result = web_webview.WebCookieManager.isCookieAllowed() - console.log("result: " + result) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### putAcceptCookieEnabled9+ -putAcceptCookieEnabled(accept: boolean): void - -设置WebCookieManager实例是否拥有发送和接收cookie的权限。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ------ | ------- | ---- | ---- | --------------------- | -| accept | boolean | 是 | - | 设置是否拥有发送和接收cookie的权限。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('putAcceptCookieEnabled') - .onClick(() => { - web_webview.WebCookieManager.putAcceptCookieEnabled(false) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### isThirdPartyCookieAllowed9+ -isThirdCookieAllowed(): boolean - -获取WebCookieManager实例是否拥有发送和接收第三方cookie的权限。 - -**返回值:** - -| 类型 | 说明 | -| ------- | ---------------------- | -| boolean | 是否拥有发送和接收第三方cookie的权限。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - - build() { - Column() { - Button('isThirdPartyCookieAllowed') - .onClick(() => { - let result = web_webview.WebCookieManager.isThirdPartyCookieAllowed() - console.log("result: " + result) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### putAcceptThirdPartyCookieEnabled9+ -putAcceptThirdPartyCookieEnabled(accept: boolean): void - -设置WebCookieManager实例是否拥有发送和接收第三方cookie的权限。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ------ | ------- | ---- | ---- | ------------------------ | -| accept | boolean | 是 | - | 设置是否拥有发送和接收第三方cookie的权限。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - build() { Column() { - Button('putAcceptThirdPartyCookieEnabled') + Button('clearHistory') .onClick(() => { - web_webview.WebCookieManager.putAcceptThirdPartyCookieEnabled(false) + this.controller.clearHistory() }) Web({ src: 'www.example.com', controller: this.controller }) } @@ -5294,33 +4256,32 @@ putAcceptThirdPartyCookieEnabled(accept: boolean): void } ``` -### existCookie9+ -existCookie(): boolean +### getCookieManager9+ + +getCookieManager(): WebCookie -获取是否存在cookie。 +获取web组件cookie管理对象。 **返回值:** -| 类型 | 说明 | -| ------- | ----------- | -| boolean | 是否存在cookie。 | +| 类型 | 说明 | +| --------- | ---------------------------------------- | +| WebCookie | web组件cookie管理对象,参考[WebCookie](#webcookie)定义。 | **示例:** ```ts // xxx.ets - import web_webview from '@ohos.web.webview' @Entry @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { - Button('existCookie') + Button('getCookieManager') .onClick(() => { - let result = web_webview.WebCookieManager.existCookie() - console.log("result: " + result) + let cookieManager = this.controller.getCookieManager() }) Web({ src: 'www.example.com', controller: this.controller }) } @@ -5328,53 +4289,75 @@ existCookie(): boolean } ``` -### deleteEntireCookie9+ -deleteEntireCookie(): void +## WebCookie + +通过WebCookie可以控制Web组件中的cookie的各种行为,其中每个应用中的所有web组件共享一个WebCookie。通过controller方法中的getCookieManager方法可以获取WebCookie对象,进行后续的cookie管理操作。 + +### setCookie9+ +setCookie(url: string, value: string): boolean + +设置cookie,该方法为同步方法。设置成功返回true,否则返回false。 + +**参数:** -清除所有cookie。 +| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | +| ----- | ------ | ---- | ---- | ----------------- | +| url | string | 是 | - | 要设置的cookie所属的url。 | +| value | string | 是 | - | cookie的值。 | + +**返回值:** + +| 类型 | 说明 | +| ------- | ------------- | +| boolean | 设置cookie是否成功。 | **示例:** ```ts // xxx.ets - import web_webview from '@ohos.web.webview' @Entry @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { - Button('deleteEntireCookie') + Button('setCookie') .onClick(() => { - web_webview.WebCookieManager.deleteEntireCookie() + let result = this.controller.getCookieManager().setCookie("www.example.com", "a=b") + console.log("result: " + result) }) Web({ src: 'www.example.com', controller: this.controller }) } } } ``` +### saveCookieSync9+ +saveCookieSync(): boolean + +将当前存在内存中的cookie同步到磁盘中,该方法为同步方法。 -### deleteSessionCookie9+ -deleteSessionCookie(): void +**返回值:** -清除所有会话cookie。 +| 类型 | 说明 | +| ------- | -------------------- | +| boolean | 同步内存cookie到磁盘操作是否成功。 | **示例:** ```ts // xxx.ets - import web_webview from '@ohos.web.webview' @Entry @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { - Button('deleteSessionCookie') + Button('saveCookieSync') .onClick(() => { - web_webview.WebCookieManager.deleteSessionCookie() + let result = this.controller.getCookieManager().saveCookieSync() + console.log("result: " + result) }) Web({ src: 'www.example.com', controller: this.controller }) } @@ -5465,324 +4448,6 @@ onSslErrorEventReceive接口返回的SSL错误的具体原因。 | On | Web深色模式开启。 | | Auto | Web深色模式跟随系统。 | -## WebAsyncController - -通过WebAsyncController可以控制Web组件具有异步回调通知的行为,一个WebAsyncController对象控制一个Web组件。 - -### 创建对象 - -``` -webController: WebController = new WebController(); -webAsyncController: WebAsyncController = new WebAsyncController(webController); -``` - -### storeWebArchive9+ - -storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback): void - -以回调方式异步保存当前页面。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 说明 | -| -------- | ---------------------------------------- | ---- | ----------------------------------- | -| baseName | string | 是 | 文件存储路径,该值不能为空。 -| autoName | boolean | 是 | 决定是否自动生成文件名。
如果为false,则将baseName作为文件存储路径。
如果为true,则假定baseName是一个目录,将根据当前页的Url自动生成文件名。 -| callback | AsyncCallback | 是 | 返回文件存储路径,保持网页失败会返回null。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - build() { - Column() { - Button('saveWebArchive') - .onClick(() => { - let webAsyncController = new web_webview.WebAsyncController(this.controller) - webAsyncController.storeWebArchive("/data/storage/el2/base/", true, (filename) => { - if (filename != null) { - console.info(`save web archive success: ${filename}`) - } - }) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### storeWebArchive9+ - -storeWebArchive(baseName: string, autoName: boolean): Promise - -以Promise方式异步保存当前页面。 - -**参数:** - -| 参数名 | 参数类型 | 必填 | 说明 | -| -------- | ---------------------------------------- | ---- | ----------------------------------- | -| baseName | string | 是 | 文件存储路径,该值不能为空。 -| autoName | boolean | 是 | 决定是否自动生成文件名。
如果为false,则将baseName作为文件存储路径。
如果为true,则假定baseName是一个目录,将根据当前页的Url自动生成文件名。 - -**返回值:** - -| 类型 | 说明 | -| --------------- | -------------------------------- | -| Promise | Promise实例,保存成功返回文件路径,保存失败返回null。 | - -**示例:** - - ```ts - // xxx.ets - import web_webview from '@ohos.web.webview' - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController(); - build() { - Column() { - Button('saveWebArchive') - .onClick(() => { - let webAsyncController = new web_webview.WebAsyncController(this.controller); - webAsyncController.storeWebArchive("/data/storage/el2/base/", true) - .then(filename => { - if (filename != null) { - console.info(`save web archive success: ${filename}`) - } - }) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -## WebMessagePort9+ - -通过WebMessagePort可以进行消息的发送以及接收。 - -### close9+ -close(): void - -关闭该消息端口。 - -### postMessageEvent9+ -postMessageEvent(message: WebMessageEvent): void - -发送消息。完整示例代码参考[postMessage](#postmessage9) - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ------- | ------------------------------------ | ---- | ---- | ------- | -| message | [WebMessageEvent](#webmessageevent9) | 是 | - | 要发送的消息。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - ports: WebMessagePort[] = null - - build() { - Column() { - Button('postMessageEvent') - .onClick(() => { - var msg = new WebMessageEvent() - msg.setData("post message from ets to html5") - this.ports[0].postMessageEvent(msg) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - -### onMessageEvent9+ -onMessageEvent(callback: (result: string) => void): void - -注册回调函数,接收HTML5侧发送过来的消息。完整示例代码参考[postMessage](#postmessage9) - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| -------- | -------- | ---- | ---- | ---------- | -| callback | function | 是 | - | 接收消息的回调函数。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - ports: WebMessagePort[] = null - - build() { - Column() { - Button('onMessageEvent') - .onClick(() => { - this.ports[0].onMessageEvent((result: string) => { - console.log("received message from html5, on message:" + result); - }) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - - -## WebMessageEvent9+ - -通过WebMessagePort对要发送的消息和端口进行封装。 - -### getData9+ -getData(): string - -获取当前对象中存放的消息。 - -**返回值:** - -| 类型 | 说明 | -| ------ | -------------- | -| string | 当前该类型对象中存放的消息。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - build() { - Column() { - Button('getPorts') - .onClick(() => { - var msgEvent = new WebMessageEvent(); - msgEvent.setData("message event data") - var messageData = msgEvent.getData() - console.log("message is:" + messageData) - }) - } - } - } - ``` - -### setData9+ -setData(data: string): void - -设置当前对象中的消息。完整示例代码参考[postMessage](#postmessage9) - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ---- | ------ | ---- | ---- | ------- | -| data | string | 是 | - | 要发送的消息。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - ports: WebMessagePort[] = null - - build() { - Column() { - Button('setData') - .onClick(() => { - var msg = new WebMessageEvent() - msg.setData("post message from ets to HTML5") - this.ports[0].postMessageEvent(msg) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` -### getPorts9+ -getPorts(): Array\ - -获取当前对象中存放的消息端口。 - -**返回值:** - -| 类型 | 说明 | -| ---------------------------------------- | ---------------- | -| Array\<[WebMessagePort](#webmessageport9)\> | 当前该类型对象中存放的消息端口。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - ports: WebMessagePort[] = null - build() { - Column() { - Button('getPorts') - .onClick(() => { - var sendPortArray = new Array(this.ports[0]) - var msgEvent = new WebMessageEvent() - msgEvent.setPorts(sendPortArray) - var getPorts = msgEvent.getPorts() - console.log("Ports is:" + getPorts) - }) - } - } - } - ``` - -### setPorts9+ -setPorts(ports: Array\): void - -设置当前对象中的消息端口。完整示例代码参考[postMessage](#postmessage9) - -**参数:** - -| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | -| ----- | ---------------------------------------- | ---- | ---- | --------- | -| ports | Array\<[WebMessagePort](#webmessageport9)\> | 是 | - | 要发送的消息端口。 | - -**示例:** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - ports: WebMessagePort[] = null - - build() { - Column() { - Button('setPorts') - .onClick(() => { - var sendPortArray = new Array(this.ports[1]) - var msgEvent = new WebMessageEvent() - msgEvent.setData("__init_ports__") - msgEvent.setPorts(sendPortArray) - this.controller.postMessage({message: msgEvent, uri: "*"}) - }) - Web({ src: 'www.example.com', controller: this.controller }) - } - } - } - ``` - ## DataResubmissionHandler9+ 通过DataResubmissionHandler可以重新提交表单数据或取消提交表单数据。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-components-summary.md b/zh-cn/application-dev/reference/arkui-ts/ts-components-summary.md index 4ddc18329b5ed829cd3258012a3ca3c8befa6157..26d9859e7d7c42952f58f5857d52bff459f64648 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-components-summary.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-components-summary.md @@ -69,12 +69,6 @@ - [Swiper](ts-container-swiper.md) 滑块视图容器组件,提供子组件滑动轮播显示的能力。 -- [WaterFlow](ts-container-waterflow.md) - - 瀑布流容器组件,由“行”和“列”分割的单元格所组成,通过容器自身的排列规则,将不同大小的“项目”自上而下,如瀑布般紧密布局。 -- [FlowItem](ts-container-flowitem.md) - - 瀑布流组件WaterFlow的子组件,用来展示瀑布流具体item。 ## 导航 @@ -287,4 +281,7 @@ 独立显示Ability的容器组件。 - [RemoteWindow](ts-basic-components-remotewindow.md) - 远程控制窗口组件,可以通过此组件控制应用窗口,提供启动退出过程中控件动画和应用窗口联动动画的能力。 \ No newline at end of file + 远程控制窗口组件,可以通过此组件控制应用窗口,提供启动退出过程中控件动画和应用窗口联动动画的能力。 +- [Formcomponent](ts-basic-components-formcomponent.md) + + 提供卡片组件,实现卡片的显示功能。 \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-column.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-column.md index 0e4a307c4f856cf2d330051642853dd1d94c285b..7f1a17f3b79fe982560746540e72947510cfa4da 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-column.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-column.md @@ -29,7 +29,7 @@ Column(value?: {space?: string | number}) | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | alignItems | [HorizontalAlign](ts-appendix-enums.md#horizontalalign) | 设置子组件在水平方向上的对齐格式。
默认值:HorizontalAlign.Center | -| justifyContent8+ | [FlexAlign](ts-container-flex.md) | 设置子组件在垂直方向上的对齐格式。
默认值:FlexAlign.Start | +| justifyContent8+ | [FlexAlign](ts-appendix-enums.md#flexalign) | 设置子组件在垂直方向上的对齐格式。
默认值:FlexAlign.Start | ## 示例 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..a84a7661022605f7663d75f9134c1317ebe0fca0 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 @@ -96,7 +96,7 @@ struct FlexExample1 { } ``` -![zh-cn_image_0000001219744189](figures/zh-cn_image_0000001219744189.gif) +![zh-cn_image_0000001219744189](figures/zh-cn_image_0000001219744189.PNG) ```ts // xxx.ets @@ -142,7 +142,7 @@ struct FlexExample2 { } ``` -![zh-cn_image_0000001174264366](figures/zh-cn_image_0000001174264366.png) +![zh-cn_image_0000001174264366](figures/zh-cn_image_0000001174264366.PNG) ```ts // xxx.ets @@ -191,7 +191,7 @@ struct FlexExample3 { } ``` -![zh-cn_image_0000001174582854](figures/zh-cn_image_0000001174582854.gif) +![zh-cn_image_0000001174582854](figures/zh-cn_image_0000001174582854.PNG) ```ts // xxx.ets @@ -289,4 +289,4 @@ struct FlexExample5 { } ``` -![zh-cn_image_0000001174422906](figures/zh-cn_image_0000001174422906.gif) +![zh-cn_image_0000001174422906](figures/zh-cn_image_0000001174422906.PNG) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-flowitem.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-flowitem.md index 2c2ed70cdd5e019db511e5235305e5fd2b91b67d..4628ea7bb51de907d3b1ace994e25c80d1e100b3 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-flowitem.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-flowitem.md @@ -1,31 +1,31 @@ -# FlowItem - - -[瀑布流组件](ts-container-waterflow.md)的子组件,用来展示瀑布流具体item。 - - -> **说明:** -> -> 该组件从API Version 9开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 - - -## 子组件 - - -支持单个子组件。 - - -## 接口 - -FlowItem() - -使用该接口来创建瀑布流子组件。 - - -## 属性 - -无 - -## 示例 - +# FlowItem + + +[瀑布流组件](ts-container-waterflow.md)的子组件,用来展示瀑布流具体item。 + + +> **说明:** +> +> 该组件从API Version 9开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 + + +## 子组件 + + +支持单个子组件。 + + +## 接口 + +FlowItem() + +使用该接口来创建瀑布流子组件。 + + +## 属性 + +无 + +## 示例 + 详见[瀑布流组件示例](ts-container-waterflow.md#示例)。 \ No newline at end of file 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-list.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md index 2dbd94b4cb78393b3a3d12faf28d34963fbad773..02a2c585cfdad297e4b05824f4d23c0b792a17c6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md @@ -70,7 +70,8 @@ List(value?:{space?: number | string, initialIndex?: number, scroller? | onScrollIndex(event: (start: number, end: number) => void) | 列表滑动时触发。
计算索引值时,ListItemGroup作为一个整体占一个索引值,不计算ListItemGroup内部ListItem的索引值。
- start: 滑动起始位置索引值。
- end: 滑动结束位置索引值。 | | onReachStart(event: () => void) | 列表到达起始位置时触发。 | | onReachEnd(event: () => void) | 列表到底末尾位置时触发。 | -| onScrollBegin9+(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }) | 列表开始滑动时触发,事件参数传入即将发生的滑动量,事件处理函数中可根据应用场景计算实际需要的滑动量并作为事件处理函数的返回值返回,列表将按照返回值的实际滑动量进行滑动。
\- dx:即将发生的水平方向滑动量。
\- dy:即将发生的竖直方向滑动量。
- dxRemain:水平方向实际滑动量。
\- dyRemain:竖直方向实际滑动量。 | +| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | 列表开始滑动时触发,事件参数传入即将发生的滑动量,事件处理函数中可根据应用场景计算实际需要的滑动量并作为事件处理函数的返回值返回,列表将按照返回值的实际滑动量进行滑动。
\- offset:即将发生的滑动量。
\- state:当前滑动状态。
- offsetRemain:水平方向实际滑动量。 | +| onScrollStart9+(event: () => void) | 列表滑动开始时触发。手指拖动列表或列表的滚动条触发的滑动开始时,会触发该事件。使用[Scroller](ts-container-scroll.md#scroller)滑动控制器触发的滑动,不会触发该事件。 | | onScrollStop(event: () => void) | 列表滑动停止时触发。手拖动列表或列表的滚动条触发的滑动,手离开屏幕并且滑动停止时会触发该事件;使用[Scroller](ts-container-scroll.md#scroller)滑动控制器触发的滑动,不会触发该事件。 | | onItemMove(event: (from: number, to: number) => boolean) | 列表元素发生移动时触发。
- from: 移动前索引值。
- to: 移动后索引值。 | | onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => ((() => any) \| void) | 开始拖拽列表元素时触发。
- event: 见[ItemDragInfo对象说明](ts-container-grid.md#itemdraginfo对象说明)。
- itemIndex: 被拖拽列表元素索引值。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-listitem.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-listitem.md index 075e7ce36f21f5b61d5b5dc7f32b69e22af9cf9a..3ce6fcd4f8bb16989ae70e0f08d1c26634e9a350 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-listitem.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-listitem.md @@ -101,8 +101,7 @@ struct ListItemExample2 { Column() { List({space:10}) { ListItem() { - Text(this.message) { - } + Text(this.message) .width('100%') .height(100) .fontSize(16) @@ -113,8 +112,7 @@ struct ListItemExample2 { .swipeAction({ end:this.itemEnd}) ListItem() { - Text(this.message) { - } + Text(this.message) .width('100%') .height(100) .fontSize(16) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-scroll.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-scroll.md index bcef3272e6a2ce23274f876eba6bf4b18faac93a..76f8d2f0b5c048a4380a6555a102a32d707cb81d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-scroll.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-scroll.md @@ -42,14 +42,16 @@ Scroll(scroller?: Scroller) | 名称 | 功能描述 | | ------------------------------------------------------------ | ------------------------------------------------------------ | -| onScrollBegin9+(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }) | 滚动开始事件回调。
参数:
- dx:即将发生的水平方向滚动量。
- dy:即将发生的竖直方向滚动量。
返回值:
- dxRemain:水平方向滚动剩余量。
- dyRemain:竖直方向滚动剩余量。 | +| onScrollFrameBegin9+(event: (offset: number, state: ScrollState) => { offsetRemain }) | 每帧开始滚动时触发,事件参数传入即将发生的滚动量,事件处理函数中可根据应用场景计算实际需要的滚动量并作为事件处理函数的返回值返回,Scroll将按照返回值的实际滚动量进行滚动。
\- offset:即将发生的滚动量。
\- state:当前滚动状态。
- offsetRemain:水平方向实际滚动量。 | | onScroll(event: (xOffset: number, yOffset: number) => void) | 滚动事件回调, 返回滚动时水平、竖直方向偏移量。 | | onScrollEdge(event: (side: Edge) => void) | 滚动到边缘事件回调。 | -| onScrollEnd(event: () => void) | 滚动停止事件回调。 | +| onScrollEnd(event: () => void) | 滚动停止事件回调。
该事件从API9开始废弃,使用onScrollStop事件替代。 | +| onScrollStart9+(event: () => void) | 滚动开始时触发。手指拖动Scroll或拖动Scroll的滚动条触发的滚动开始时,会触发该事件。使用[Scroller](#scroller)滚动控制器触发的滚动,不会触发该事件。 | +| onScrollStop9+(event: () => void) | 滚动停止时触发。手拖动Scroll或拖动Scroll的滚动条触发的滚动,手离开屏幕并且滚动停止时会触发该事件;使用[Scroller](#scroller)滚动控制器触发的滚动,不会触发该事件。 | > **说明:** > -> 若通过onScrollBegin事件和scrollBy方法实现容器嵌套滚动,需设置子滚动节点的EdgeEffect为None。如Scroll嵌套List滚动时,List组件的edgeEffect属性需设置为EdgeEffect.None。 +> 若通过onScrollFrameBegin事件和scrollBy方法实现容器嵌套滚动,需设置子滚动节点的EdgeEffect为None。如Scroll嵌套List滚动时,List组件的edgeEffect属性需设置为EdgeEffect.None。 ## Scroller @@ -76,7 +78,7 @@ scrollTo(value: { xOffset: number | string, yOffset: number | string, animation? | --------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | xOffset | Length | 是 | 水平滑动偏移。 | | yOffset | Length | 是 | 竖直滑动偏移。 | -| animation | {
duration: number,
curve: [Curve](ts-animatorproperty.md)
} | 否 | 动画配置:
- duration: 滚动时长设置。
- curve: 滚动曲线设置。 | +| animation | {
duration: number,
curve: [Curve](ts-appendix-enums.md#curve)
} | 否 | 动画配置:
- duration: 滚动时长设置。
- curve: 滚动曲线设置。 | ### scrollEdge @@ -131,7 +133,7 @@ scrollToIndex(value: number): void > **说明:** > -> 仅支持Grid、list、WaterFlow组件。 +> 仅支持Grid、list组件。 **参数:** @@ -268,13 +270,13 @@ struct NestedScroll { .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 } + .onScrollFrameBegin((offset: number) => { + if ((this.listPosition == 0 && offset >= 0) || (this.listPosition == 2 && offset <= 0)) { + this.scrollerForScroll.scrollBy(0, -offset) + return { offsetRemain: 0 } } this.listPosition = 1 - return { dxRemain: dx, dyRemain: dy }; + return { offsetRemain: offset }; }) Text("Scroll Area") 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..dcd23fcc36c703fc73f6615056b47e9a766fc3eb 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,44 @@ 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 +225,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..2787e1f58ed4ff75df39d9ce7c16dd5cea6dcd17 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 @@ -34,7 +34,7 @@ Tabs(value?: {barPosition?: BarPosition, index?: number, controller?: [TabsContr ## 属性 -不支持[触摸热区设置](ts-universal-attributes-touch-target.md),除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: +除支持[通用属性](ts-universal-attributes-size.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-container-waterflow.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md index 388a78aad718f534728d8ade84fb8e0fdf9434a9..cba3fda2ef1385d851b80935f6b4406aba972f04 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md @@ -1,291 +1,291 @@ -# WaterFlow - - -瀑布流容器,由“行”和“列”分割的单元格所组成,通过容器自身的排列规则,将不同大小的“项目”自上而下,如瀑布般紧密布局。 - - -> **说明:** -> -> 该组件从API Version 9 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 - - -## 子组件 - - -包含[FlowItem](ts-container-flowitem.md)子组件。 - - -## 接口 - - -WaterFlow(options?: {footer?: CustomBuilder, scroller?: Scroller}) - -**参数:** - -| 参数名 | 参数类型 | 必填 | 参数描述 | -| ---------- | ----------------------------------------------- | ------ | -------------------------------------------- | -| footer | [CustomBuilder](ts-types.md#custombuilder8) | 否 | 设置WaterFlow尾部组件。 | -| scroller | [Scroller](ts-container-scroll.md#scroller) | 否 | 可滚动组件的控制器,与可滚动组件绑定。
目前瀑布流仅支持Scroller组件的scrollToIndex接口。 | - - -## 属性 - - -除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: - -| 名称 | 参数类型 | 描述 | -| -------- | -------- | -------- | -| columnsTemplate | string | 设置当前瀑布流组件布局列的数量,不设置时默认1列。
例如, '1fr 1fr 2fr' 是将父组件分3列,将父组件允许的宽分为4等份,第一列占1份,第二列占1份,第三列占2份。并支持[auto-fill](#auto-fill说明)。
默认值:'1fr' | -| rowsTemplate | string | 设置当前瀑布流组件布局行的数量,不设置时默认1行。
例如, '1fr 1fr 2fr'是将父组件分三行,将父组件允许的高分为4等份,第一行占1份,第二行占一份,第三行占2份。并支持[auto-fill](#auto-fill说明)。
默认值:'1fr' | -| itemConstraintSize | [ConstraintSizeOptions](ts-types.md#constraintsizeoptions) | 设置约束尺寸,子组件布局时,进行尺寸范围限制。 | -| columnsGap | Length |设置列与列的间距。
默认值:0| -| rowsGap | Length |设置行与行的间距。
默认值:0| -| layoutDirection | [FlexDirection](ts-appendix-enums.md#flexdirection) |设置布局的主轴方向。
默认值:FlexDirection.Column| - -layoutDirection优先级高于rowsTemplate和columnsTemplate。根据layoutDirection设置情况,分为以下三种设置模式: - -- layoutDirection设置纵向布局(FlexDirection.Column 或 FlexDirection.ColumnReverse) - - 此时columnsTemplate有效(如果未设置,取默认值)。例如columnsTemplate设置为"1fr 1fr"、rowsTemplate设置为"1fr 1fr 1fr"时,瀑布流组件纵向布局,辅轴均分成横向2列。 - -- layoutDirection设置横向布局(FlexDirection.Row 或 FlexDirection.RowReverse) - - 此时rowsTemplate有效(如果未设置,取默认值)。例如columnsTemplate设置为"1fr 1fr"、rowsTemplate设置为"1fr 1fr 1fr"时,瀑布流组件横向布局,辅轴均分成纵向3列。 - -- layoutDirection未设置布局方向 - - 布局方向为layoutDirection的默认值:FlexDirection.Column,此时columnsTemplate有效。例如columnsTemplate设置为"1fr 1fr"、rowsTemplate设置为"1fr 1fr 1fr"时,瀑布流组件纵向布局,辅轴均分成横向2列。 - -## 事件 - - -除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: - - -| 名称 | 功能描述 | -| -------- | -------- | -| onReachStart(event: () => void) | 瀑布流组件到达起始位置时触发。 | -| onReachEnd(event: () => void) | 瀑布流组件到底末尾位置时触发。 | - - -## auto-fill说明 - -WaterFlow的columnsTemplate、rowsTemplate属性的auto-fill仅支持以下格式: - -```css -repeat(auto-fill, track-size) -``` - -其中repeat、auto-fill为关键字。track-size为行高或者列宽,支持的单位包括px、vp、%或有效数字,track-size至少包括一个有效行高或者列宽。 - - -## 示例 - - -```ts -// WaterFlowDataSource.ets - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 100; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): any { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdded(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChanged(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDeleted(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMoved(from, to) - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public Add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public AddLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length-1) - } - - // 在指定索引位置增加一个元素 - public AddItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public Delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public Delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public DeleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 重新加载数据 - public Reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -``` - -```ts -// WaterflowDemo.ets -import { WaterFlowDataSource } from './WaterFlowDataSource' - -@Entry -@Component -struct WaterflowDemo { - @State minSize: number = 50 - @State maxSize: number = 100 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - datasource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算flow item宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 保存flow item宽/高 - getItemSizeArray() { - for (let i = 0; i < 100; i++) { - this.itemWidthArray.push(this.getSize()) - this.itemHeightArray.push(this.getSize()) - } - } - - aboutToAppear() { - this.getItemSizeArray() - } - - @Builder itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow({ footer: this.itemFoot, scroller: this.scroller }) { - LazyForEach(this.datasource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image('res/waterFlowTest(' + item % 5 + ').jpg') - .objectFit(ImageFit.Fill) - } - } - .width(this.itemWidthArray[item]) - .height(this.itemHeightArray[item]) - .backgroundColor(this.colors[item % 5]) - }, item => item) - } - .columnsTemplate("1fr 1fr 1fr 1fr") - .itemConstraintSize({ - minWidth: 0, - maxWidth: '100%', - minHeight: 0, - maxHeight: '100%' - }) - .columnsGap(10) - .rowsGap(5) - .onReachStart(() => { - console.info("onReachStart") - }) - .onReachEnd(() => { - console.info("onReachEnd") - }) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('80%') - .layoutDirection(FlexDirection.Column) - } - } -} -``` - -![zh-cn_image_WaterFlow.gif](figures/waterflow.gif) +# WaterFlow + + +瀑布流容器,由“行”和“列”分割的单元格所组成,通过容器自身的排列规则,将不同大小的“项目”自上而下,如瀑布般紧密布局。 + + +> **说明:** +> +> 该组件从API Version 9 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 + + +## 子组件 + + +包含[FlowItem](ts-container-flowitem.md)子组件。 + + +## 接口 + + +WaterFlow(options?: {footer?: CustomBuilder, scroller?: Scroller}) + +**参数:** + +| 参数名 | 参数类型 | 必填 | 参数描述 | +| ---------- | ----------------------------------------------- | ------ | -------------------------------------------- | +| footer | [CustomBuilder](ts-types.md#custombuilder8) | 否 | 设置WaterFlow尾部组件。 | +| scroller | [Scroller](ts-container-scroll.md#scroller) | 否 | 可滚动组件的控制器,与可滚动组件绑定。
目前瀑布流仅支持Scroller组件的scrollToIndex接口。 | + + +## 属性 + + +除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性: + +| 名称 | 参数类型 | 描述 | +| -------- | -------- | -------- | +| columnsTemplate | string | 设置当前瀑布流组件布局列的数量,不设置时默认1列。
例如, '1fr 1fr 2fr' 是将父组件分3列,将父组件允许的宽分为4等份,第一列占1份,第二列占1份,第三列占2份。并支持[auto-fill](#auto-fill说明)。
默认值:'1fr' | +| rowsTemplate | string | 设置当前瀑布流组件布局行的数量,不设置时默认1行。
例如, '1fr 1fr 2fr'是将父组件分三行,将父组件允许的高分为4等份,第一行占1份,第二行占一份,第三行占2份。并支持[auto-fill](#auto-fill说明)。
默认值:'1fr' | +| itemConstraintSize | [ConstraintSizeOptions](ts-types.md#constraintsizeoptions) | 设置约束尺寸,子组件布局时,进行尺寸范围限制。 | +| columnsGap | Length |设置列与列的间距。
默认值:0| +| rowsGap | Length |设置行与行的间距。
默认值:0| +| layoutDirection | [FlexDirection](ts-appendix-enums.md#flexdirection) |设置布局的主轴方向。
默认值:FlexDirection.Column| + +layoutDirection优先级高于rowsTemplate和columnsTemplate。根据layoutDirection设置情况,分为以下三种设置模式: + +- layoutDirection设置纵向布局(FlexDirection.Column 或 FlexDirection.ColumnReverse) + + 此时columnsTemplate有效(如果未设置,取默认值)。例如columnsTemplate设置为"1fr 1fr"、rowsTemplate设置为"1fr 1fr 1fr"时,瀑布流组件纵向布局,辅轴均分成横向2列。 + +- layoutDirection设置横向布局(FlexDirection.Row 或 FlexDirection.RowReverse) + + 此时rowsTemplate有效(如果未设置,取默认值)。例如columnsTemplate设置为"1fr 1fr"、rowsTemplate设置为"1fr 1fr 1fr"时,瀑布流组件横向布局,辅轴均分成纵向3列。 + +- layoutDirection未设置布局方向 + + 布局方向为layoutDirection的默认值:FlexDirection.Column,此时columnsTemplate有效。例如columnsTemplate设置为"1fr 1fr"、rowsTemplate设置为"1fr 1fr 1fr"时,瀑布流组件纵向布局,辅轴均分成横向2列。 + +## 事件 + + +除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件: + + +| 名称 | 功能描述 | +| -------- | -------- | +| onReachStart(event: () => void) | 瀑布流组件到达起始位置时触发。 | +| onReachEnd(event: () => void) | 瀑布流组件到底末尾位置时触发。 | + + +## auto-fill说明 + +WaterFlow的columnsTemplate、rowsTemplate属性的auto-fill仅支持以下格式: + +```css +repeat(auto-fill, track-size) +``` + +其中repeat、auto-fill为关键字。track-size为行高或者列宽,支持的单位包括px、vp、%或有效数字,track-size至少包括一个有效行高或者列宽。 + + +## 示例 + + +```ts +// WaterFlowDataSource.ets + +// 实现IDataSource接口的对象,用于瀑布流组件加载数据 +export class WaterFlowDataSource implements IDataSource { + + private dataArray: number[] = [] + private listeners: DataChangeListener[] = [] + + constructor() { + for (let i = 0; i < 100; i++) { + this.dataArray.push(i) + } + } + + // 获取索引对应的数据 + public getData(index: number): any { + return this.dataArray[index] + } + + // 通知控制器数据重新加载 + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded() + }) + } + + // 通知控制器数据增加 + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdded(index) + }) + } + + // 通知控制器数据变化 + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChanged(index) + }) + } + + // 通知控制器数据删除 + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDeleted(index) + }) + } + + // 通知控制器数据位置变化 + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMoved(from, to) + }) + } + + // 获取数据总数 + public totalCount(): number { + return this.dataArray.length + } + + // 注册改变数据的控制器 + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + this.listeners.push(listener) + } + } + + // 注销改变数据的控制器 + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener) + if (pos >= 0) { + this.listeners.splice(pos, 1) + } + } + + // 增加数据 + public Add1stItem(): void { + this.dataArray.splice(0, 0, this.dataArray.length) + this.notifyDataAdd(0) + } + + // 在数据尾部增加一个元素 + public AddLastItem(): void { + this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) + this.notifyDataAdd(this.dataArray.length-1) + } + + // 在指定索引位置增加一个元素 + public AddItem(index: number): void { + this.dataArray.splice(index, 0, this.dataArray.length) + this.notifyDataAdd(index) + } + + // 删除第一个元素 + public Delete1stItem(): void { + this.dataArray.splice(0, 1) + this.notifyDataDelete(0) + } + + // 删除第二个元素 + public Delete2ndItem(): void { + this.dataArray.splice(1, 1) + this.notifyDataDelete(1) + } + + // 删除最后一个元素 + public DeleteLastItem(): void { + this.dataArray.splice(-1, 1) + this.notifyDataDelete(this.dataArray.length) + } + + // 重新加载数据 + public Reload(): void { + this.dataArray.splice(1, 1) + this.dataArray.splice(3, 2) + this.notifyDataReload() + } +} +``` + +```ts +// WaterflowDemo.ets +import { WaterFlowDataSource } from './WaterFlowDataSource' + +@Entry +@Component +struct WaterflowDemo { + @State minSize: number = 50 + @State maxSize: number = 100 + @State fontSize: number = 24 + @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] + scroller: Scroller = new Scroller() + datasource: WaterFlowDataSource = new WaterFlowDataSource() + private itemWidthArray: number[] = [] + private itemHeightArray: number[] = [] + + // 计算flow item宽/高 + getSize() { + let ret = Math.floor(Math.random() * this.maxSize) + return (ret > this.minSize ? ret : this.minSize) + } + + // 保存flow item宽/高 + getItemSizeArray() { + for (let i = 0; i < 100; i++) { + this.itemWidthArray.push(this.getSize()) + this.itemHeightArray.push(this.getSize()) + } + } + + aboutToAppear() { + this.getItemSizeArray() + } + + @Builder itemFoot() { + Column() { + Text(`Footer`) + .fontSize(10) + .backgroundColor(Color.Red) + .width(50) + .height(50) + .align(Alignment.Center) + .margin({ top: 2 }) + } + } + + build() { + Column({ space: 2 }) { + WaterFlow({ footer: this.itemFoot, scroller: this.scroller }) { + LazyForEach(this.datasource, (item: number) => { + FlowItem() { + Column() { + Text("N" + item).fontSize(12).height('16') + Image('res/waterFlowTest(' + item % 5 + ').jpg') + .objectFit(ImageFit.Fill) + } + } + .width(this.itemWidthArray[item]) + .height(this.itemHeightArray[item]) + .backgroundColor(this.colors[item % 5]) + }, item => item) + } + .columnsTemplate("1fr 1fr 1fr 1fr") + .itemConstraintSize({ + minWidth: 0, + maxWidth: '100%', + minHeight: 0, + maxHeight: '100%' + }) + .columnsGap(10) + .rowsGap(5) + .onReachStart(() => { + console.info("onReachStart") + }) + .onReachEnd(() => { + console.info("onReachEnd") + }) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('80%') + .layoutDirection(FlexDirection.Column) + } + } +} +``` + +![zh-cn_image_WaterFlow.gif](figures/waterflow.gif) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md index b55a9ffd0de75708aedc6af8994dceb6ff85430d..1b3ebdef17e3e5b66396fac00b0cdef9c0fc5f49 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md @@ -74,9 +74,8 @@ struct PathExample { .width('90%') // 绘制一条长900px,宽3vp的直线 Path() - .width(300) .height(10) - .commands('M0 0 L900 0') + .commands('M0 0 L600 0') .stroke(Color.Black) .strokeWidth(3) @@ -85,55 +84,43 @@ struct PathExample { .fontColor(0xCCCCCC) .width('90%') // 绘制直线图形 - Row({ space: 20 }) { + Flex({ justifyContent: FlexAlign.SpaceBetween }) { Path() - .width(100) - .height(100) - .commands('M150 0 L300 300 L0 300 Z') + .commands('M100 0 L200 240 L0 240 Z') .fillOpacity(0) .stroke(Color.Black) .strokeWidth(3) Path() - .width(100) - .height(100) - .commands('M0 0 H300 V300 H0 Z') + .commands('M0 0 H200 V200 H0 Z') .fillOpacity(0) .stroke(Color.Black) .strokeWidth(3) Path() - .width(100) - .height(100) - .commands('M150 0 L0 150 L60 300 L240 300 L300 150 Z') + .commands('M100 0 L0 100 L50 200 L150 200 L200 100 Z') .fillOpacity(0) .stroke(Color.Black) .strokeWidth(3) - }.width('100%') + }.width('95%') Text('Curve graphics').fontSize(11).fontColor(0xCCCCCC).width('90%') // 绘制弧线图形 - Row({ space: 20 }) { + Flex({ justifyContent: FlexAlign.SpaceBetween }) { Path() - .width(100) - .height(100) - .commands("M0 300 S150 0 300 300 Z") + .commands("M0 300 S100 0 240 300 Z") .fillOpacity(0) .stroke(Color.Black) .strokeWidth(3) Path() - .width(100) - .height(100) - .commands('M0 150 C0 150 150 0 300 150 L150 300 Z') + .commands('M0 150 C0 100 140 0 200 150 L100 300 Z') .fillOpacity(0) .stroke(Color.Black) .strokeWidth(3) Path() - .width(100) - .height(100) - .commands('M0 200 A30 20 20 0 0 250 200 Z') + .commands('M0 100 A30 20 20 0 0 200 100 Z') .fillOpacity(0) .stroke(Color.Black) .strokeWidth(3) - } + }.width('95%') }.width('100%') .margin({ top: 5 }) } diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md index 5ec83e3c362a6b4b9038e353633f9018c256af46..687754f921ef7200cbeb8f13d8a150dd4e0af4a6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md @@ -65,6 +65,7 @@ struct PolygonExample { Polygon({ width: 100, height: 100 }) .points([[0, 0], [50, 100], [100, 0]]) .fill(Color.Green) + .stroke(Color.Transparent) // 在 100 * 100 的矩形框中绘制一个四边形,起点(0, 0),经过(0, 100)和(100, 100),终点(100, 0) Polygon().width(100).height(100) .points([[0, 0], [0, 100], [100, 100], [100, 0]]) @@ -76,6 +77,7 @@ struct PolygonExample { .points([[50, 0], [0, 50], [20, 100], [80, 100], [100, 50]]) .fill(Color.Red) .fillOpacity(0.6) + .stroke(Color.Transparent) }.width('100%').margin({ top: 10 }) } } diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md index d455b7d6be8fb885fb29d23d369a25274cd44481..dbddfaf03fa31c54f880521a47d37a1c56f423c7 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md @@ -66,6 +66,7 @@ struct RectExample { // 绘制90% * 50矩形 Rect({ width: '90%', height: 50 }) .fill(Color.Pink) + .stroke(Color.Transparent) // 绘制90% * 50的矩形框 Rect() .width('90%') @@ -80,15 +81,18 @@ struct RectExample { .radiusHeight(20) .radiusWidth(40) .fill(Color.Pink) + .stroke(Color.Transparent) // 绘制90% * 80的矩形, 圆角宽高为20 Rect({ width: '90%', height: 80 }) .radius(20) .fill(Color.Pink) + .stroke(Color.Transparent) }.width('100%').margin({ top: 10 }) // 绘制90% * 50矩形, 左上圆角宽高40,右上圆角宽高20,右下圆角宽高40,左下圆角宽高20 Rect({ width: '90%', height: 80 }) .radius([[40, 40], [20, 20], [40, 40], [20, 20]]) .fill(Color.Pink) + .stroke(Color.Transparent) }.width('100%').margin({ top: 5 }) } } 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-media-components-video.md b/zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md index bdd1e633c7d43b7290c61620de71304ce0e60ede..0e54bbfe10129a063a445fe9a84fe138e292cab2 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md @@ -48,7 +48,7 @@ Video(value: {src?: string | Resource, currentProgressRate?: number | string | P | muted | boolean | 是否静音。
默认值:false | | autoPlay | boolean | 是否自动播放。
默认值:false | | controls | boolean | 控制视频播放的控制栏是否显示。
默认值:true | -| objectFit | [ImageFit](ts-basic-components-image.md) | 设置视频显示模式。
默认值:Cover | +| objectFit | [ImageFit](ts-appendix-enums.md#imagefit) | 设置视频显示模式。
默认值:Cover | | loop | boolean | 是否单个视频循环播放。
默认值:false | ## 事件 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-methods-action-sheet.md b/zh-cn/application-dev/reference/arkui-ts/ts-methods-action-sheet.md index 8036320cf4dcd4d0db51338505eb181225b1d55a..f013e6cf7f1fa6ca9345f150382b979426e657d1 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-methods-action-sheet.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-methods-action-sheet.md @@ -22,7 +22,7 @@ show(value: { title: string | Resource, message: string  | autoCancel | boolean | 否 | 点击遮障层时,是否关闭弹窗。
默认值:true | | confirm | {
value: [ResourceStr](ts-types.md#resourcestr),
action: () => void
} | 否 | 确认按钮的文本内容和点击回调。
默认值:
value:按钮文本内容。
action: 按钮选中时的回调。 | | cancel | () => void | 否 | 点击遮障层关闭dialog时的回调。 | -| alignment | [DialogAlignment](ts-methods-custom-dialog-box.md#dialogalignment枚举说明) | 否 | 弹窗在竖直方向上的对齐方式。
默认值:DialogAlignment.Bottom | +| alignment | [DialogAlignment](ts-methods-alert-dialog-box.md#dialogalignment枚举说明) | 否 | 弹窗在竖直方向上的对齐方式。
默认值:DialogAlignment.Bottom | | offset | {
dx: Length,
dy: Length
} | 否 | 弹窗相对alignment所在位置的偏移量。{
dx: 0,
dy: 0
} | | sheets | Array<SheetInfo> | 是 | 设置选项内容,每个选择项支持设置图片、文本和选中的回调。 | 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-menu.md b/zh-cn/application-dev/reference/arkui-ts/ts-methods-menu.md index 2ab47f602bcda04b3f577036774cfa86fb7ebaf1..40d6c195f2c13689d5c15a94514ae805b939f0ea 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-methods-menu.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-methods-menu.md @@ -24,9 +24,9 @@ struct Index { @Builder MenuBuilder() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { Button('Test ContextMenu1') - Divider().strokeWidth(2).margin(5) + Divider().strokeWidth(2).margin(5).color(Color.Black) Button('Test ContextMenu2') - Divider().strokeWidth(2).margin(5) + Divider().strokeWidth(2).margin(5).color(Color.Black) Button('Test ContextMenu3') } .width(200) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md b/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md index 2f958cf53b91705af872585eedae6acc2662c77d..c940d0d083d1e3af7cf2dd6f2e3f97a23979f165 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md @@ -77,7 +77,7 @@ let simple = AppStorage.Prop('simpleProp') ### SetAndProp -SetAndProp\(propName: string, defaultValue: S): SubscribedAbstractProperty\; +SetAndProp\(propName: string, defaultValue: S): SubscribedAbstractProperty\ 与Prop接口类似,如果当前的key保存于AppStorage,则返回该key对应的value。如果该key未被创建,则创建一个对应default值的Prop返回。 @@ -162,7 +162,7 @@ Set\(propName: string, newValue: T): boolean | boolean | 如果存在key值,设置value值并返回true,否则返回false。 | ```ts -let simple = AppStorage.Set('simpleProp', 121); +let simple = AppStorage.Set('simpleProp', 121) ``` ### SetOrCreate @@ -313,7 +313,7 @@ constructor(initializingProperties?: Object) | initializingProperties | Object | 否 | object.keys(obj)返回的所有对象属性及其值都将添加到LocalStorage。 | ```ts -this.storage = new LocalStorage() +let storage = new LocalStorage() ``` ### GetShared9+ @@ -353,8 +353,8 @@ has(propName: string): boolean | boolean | 返回属性的属性值是否存在。 | ```ts -this.storage = new LocalStorage() -this.storage.has('storageSimpleProp') +let storage = new LocalStorage() +storage.has('storageSimpleProp') ``` ### get9+ @@ -376,8 +376,8 @@ get\(propName: string): T | T \| undefined | 当keyvalue存在时,返回keyvalue值。不存在返回undefined。 | ```ts -this.storage = new LocalStorage() -let simpleValue = this.storage.get('storageSimpleProp') +let storage = new LocalStorage() +let simpleValue = storage.get('storageSimpleProp') ``` ### set9+ @@ -400,8 +400,8 @@ set\(propName: string, newValue: T): boolean | boolean | 如果存在key值,设置value值并返回true,否则返回false。 | ```ts -this.storage = new LocalStorage() -this.storage.set('storageSimpleProp', 121) +let storage = new LocalStorage() +storage.set('storageSimpleProp', 121) ``` ### setOrCreate9+ @@ -424,8 +424,8 @@ setOrCreate\(propName: string, newValue: T): boolean | boolean | 如果已存在与给定键名字相同的属性,更新其值且返回true。如果不存在具有给定名称的属性,在LocalStorage中创建具有给定默认值的新属性,默认值必须是T类型,不允许undefined 或 null 。 | ```ts -this.storage = new LocalStorage() -this.storage.setOrCreate('storageSimpleProp', 121) +let storage = new LocalStorage() +storage.setOrCreate('storageSimpleProp', 121) ``` ### link9+ @@ -447,8 +447,8 @@ link\(propName: string): T | T | 如果存在具有给定键的属性,返回到此属性的双向绑定,该双向绑定意味着变量或者组件对数据的更改将同步到LocalStorage,然后通过LocalStorage实例同步到任何变量或组件。如果不存在给定键的属性,返回undefined。 | ```ts -this.storage = new LocalStorage() -let localStorage = this.storage.link('storageSimpleProp') +let storage = new LocalStorage() +let localStorage = storage.link('storageSimpleProp') ``` ### setAndLink9+ @@ -471,8 +471,8 @@ setAndLink\(propName: string, defaultValue: T): T | @Link | 与Link接口类似,如果当前的key保存于LocalStorage,返回该key值对应的value值。如果该key值未被创建,则创建一个对应的defaultValue的Link返回。 | ```ts -this.storage = new LocalStorage() -let localStorage = this.storage.setAndLink('storageSimpleProp', 121) +let storage = new LocalStorage() +let localStorage = storage.setAndLink('storageSimpleProp', 121) ``` ### prop9+ @@ -494,8 +494,8 @@ prop\(propName: string): T | @Prop | 如果存在具有给定键的属性,返回此属性的单向数据绑定。该单向绑定意味着只能通过LocalStorage将属性的更改同步到变量或组件。该方法返回的变量为不可变变量,适用于可变和不可变的状态变量。如果此键的属性不存在则返回undefined。 | ```ts -this.storage = new LocalStorage() -let localStorage = this.storage.prop('storageSimpleProp') +let storage = new LocalStorage() +let localStorage = storage.prop('storageSimpleProp') ``` ### setAndProp9+ @@ -518,8 +518,8 @@ setAndProp\(propName: string, defaultValue: T): T | @Prop | 如果当前的key保存与LocalStorage,返回该key值对应的value值。如果该key值未被创建,则创建一个对应的defaultValue的Prop返回。 | ```ts -this.storage = new LocalStorage() -let localStorage = this.storage.setAndProp('storageSimpleProp', 121) +let storage = new LocalStorage() +let localStorage = storage.setAndProp('storageSimpleProp', 121) ``` ### delete9+ @@ -541,8 +541,8 @@ delete(propName: string): boolean | boolean | 删除key指定的键值对。存在且删除成功,返回true。不存在、删除失败或有状态变量依旧引用propName,返回false。 | ```ts -this.storage = new LocalStorage() -this.storage.delete('storageSimpleProp') +let storage = new LocalStorage() +storage.delete('storageSimpleProp') ``` ### keys9+ @@ -558,8 +558,8 @@ keys(): IterableIterator\ | array\ | 返回包含所有键不可序列化的字符串数组。 | ```ts -this.storage = new LocalStorage() -let simple = this.storage.keys() +let storage = new LocalStorage() +let simple = storage.keys() ``` ### size9+ @@ -575,8 +575,8 @@ size(): number | number | 返回键值对的数量。 | ```ts -this.storage = new LocalStorage() -let simple = this.storage.size() +let storage = new LocalStorage() +let simple = storage.size() ``` ### Clear9+ @@ -592,8 +592,8 @@ clear(): boolean | boolean | 删除所有的属性,如果当前有状态变量依旧引用此属性,返回false。 | ```ts -this.storage = new LocalStorage() -let simple = this.storage.clear() +let storage = new LocalStorage() +let simple = storage.clear() ``` ## PersistentStorage @@ -612,7 +612,7 @@ constructor(appStorage: AppStorage, storage: Storage) | storage | Storage | 是 | Storage实例对象。 | ```ts -this.persistentstorage = new PersistentStorage(AppStorage,Storage) +let persistentstorage = new PersistentStorage(AppStorage,Storage) ``` ### PersistProp @@ -650,7 +650,7 @@ PersistentStorage.DeleteProp('highScore') ### PersistProps -PersistProps(properties: {key: string, defaultValue: any}[]): void; +PersistProps(properties: {key: string, defaultValue: any}[]): void 关联多个命名的属性绑定。 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-border-image.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md index bc7115c31ae1c215eb12669c0b8ccc875cbdd78e..2ce59a0349c7729a2e8c86b4913906f0ab5adb4f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md @@ -36,46 +36,6 @@ ## 示例 -```ts -// xxx.ets -@Entry -@Component -struct Index { - @State outSetValue: number = 40 - - build() { - Row() { - Column() { - Text('This is borderImage.').textAlign(TextAlign.Center).fontSize(50) - .borderImage({ - source: $r('app.media.heart'), - slice: `${this.outSetValue}%`, - width: `${this.outSetValue}px`, - outset: '5px', - repeat: RepeatMode.Repeat, - fill: false - }) - Slider({ - value: this.outSetValue, - min: 0, - max: 100, - style: SliderStyle.OutSet - }) - .margin({ top: 30 }) - .onChange((value: number, mode: SliderChangeMode) => { - this.outSetValue = value - console.info('value:' + value + 'mode:' + mode.toString()) - }) - } - .width('100%') - } - .height('100%') - } -} -``` - -![zh-cn_image_borderImage](figures/borderImage.gif) - ```ts // xxx.ets @@ -85,7 +45,7 @@ struct Index { build() { Row() { Column() { - Text('This is gradient color.').textAlign(TextAlign.Center).width(68) + Text('This is gradient color.').textAlign(TextAlign.Center).height(50).width(200) .borderImage({ source: { angle: 90, 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-layout-constraints.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md index 86660cec308c85cb96f356972f8b34b69a3eb850..5fb5468e9a67be8d63c19ce5f20c7057a542527f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md @@ -55,6 +55,7 @@ struct AspectRatioExample { Text(item) .backgroundColor(0xbbb2cb) .fontSize(40) + .height(160) .aspectRatio(1.5) } }, item => item) 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 e2ad528acbf515fcc23993bc8572ec6f7eebca20..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 @@ -34,7 +34,7 @@ | 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箭头在弹窗处的偏移。箭头在气泡上下方时,数值为0表示箭头居最左侧,偏移量为箭头至最左侧的距离,默认居中。箭头在气泡左右侧时,偏移量为箭头至最上侧的距离,默认居中。如果显示在屏幕边缘,气泡会自动左右偏移,数值为0时箭头始终指向绑定组件。 | 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..5491d40f9dabbf8166d19255f7e1723d23dae0bc 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',且当前只支持这种字体。| @@ -30,30 +30,24 @@ struct TextStyleExample { build() { Column({ space: 5 }) { Text('default text') - Divider() Text('text font color red').fontColor(Color.Red) - Divider() Text('text font default') Text('text font size 10').fontSize(10) Text('text font size 10fp').fontSize('10fp') Text('text font size 20').fontSize(20) - Divider() Text('text font style Italic').fontStyle(FontStyle.Italic) - Divider() Text('text fontWeight bold').fontWeight(700) Text('text fontWeight lighter').fontWeight(FontWeight.Lighter) - Divider() Text('red 20 Italic bold text') .fontColor(Color.Red) .fontSize(20) .fontStyle(FontStyle.Italic) .fontWeight(FontWeight.Bold) - Divider() Text('Orange 18 Normal text') .fontColor(Color.Orange) @@ -64,4 +58,4 @@ struct TextStyleExample { } ``` -![textstyle](figures/textstyle.png) +![textstyle](figures/textstyle.PNG) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md index 33cfcba164e7b09d9a4f44c64cd94a0592620cb5..2c9869a9dce1c8dc8f81791848d0a7293b516d43 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md @@ -31,13 +31,13 @@ struct TransformExample { Text('rotate').width('90%').fontColor(0xCCCCCC).padding(15).fontSize(14) Row() .rotate({ - x: 1, - y: 1, + x: 0, + y: 0, z: 1, centerX: '50%', centerY: '50%', angle: 300 - }) // 组件以矢量(1,1,1)为旋转轴,绕中心点顺时针旋转300度 + }) // 组件以矢量(0,0,1)为旋转轴,绕中心点顺时针旋转300度 .width(100).height(100).backgroundColor(0xAFEEEE) Text('translate').width('90%').fontColor(0xCCCCCC).padding(10).fontSize(14) diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-form.md b/zh-cn/application-dev/reference/errorcodes/errorcode-form.md index 37168b50968d92bfab046622719772aebaf95560..93dfb3c6d91ed044720e9d74d455dc619df116a6 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-form.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-form.md @@ -137,5 +137,20 @@ The form can not be operated by the current application. 1. 检查传入卡片ID所有权 2. 升级权限为SystemApp +## 16501004 指定的ability未安装 +**错误信息** + +The ability is not installed. + +**错误描述** + +当指定的ability未安装时,系统会报此错误码。 + +**可能原因** + +指定的ability未安装。 + +**处理步骤** +检查传入的abilityName与bundleName是否有效。 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-notification.md b/zh-cn/application-dev/reference/errorcodes/errorcode-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..e790eeaa9e5476ebafe83119bb8343c7e3bb62bb --- /dev/null +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-notification.md @@ -0,0 +1,219 @@ +# 元能力子系统错误码 + +## 1600001 内部错误 + +**错误信息** + +Internal error. + +**错误描述** + +多线程处理异常、内部指针校验错误等内部处理错误时,方法将返回该错误码。 + +**可能原因** + +多线程处理、内部处理异常等内核通用错误。 + +**处理步骤** + +确认系统资源是否足够。 + +## 1600002 序列化或反序列化错误 + +**错误信息** + +marshalling or unmarshalling error. + +**错误描述** + +数据传输前,进行序列化或反序列化错误,方法将返回该错误码。 + +**可能原因** + +应用与通知服务字段未匹配。 + +**处理步骤** + +检查应用sdk版本与系统版本是否匹配。 + +## 1600003 连接通知服务失败 + +**错误信息** + +Failed to connect service. + +**错误描述** + +应用连接通知服务失败,方法将返回该错误码。 + +**可能原因** + +通知服务繁忙或异常。 + +**处理步骤** + +重启系统。 + +## 1600004 通知开关关闭 + +**错误信息** + +Notification is not enabled. + +**错误描述** + +当通知开关为关闭状态时,方法将返回该错误码。 + +**可能原因** + +应用的通知开关为关闭状态。 + +**处理步骤** + +通知设置里开启应用通知开关。 + +## 1600005 通知渠道关闭 + +**错误信息** + +Notification slot is not enabled. + +**错误描述** + +当通知渠道关闭时,方法将返回该错误码。 + +**可能原因** + +通知渠道关闭状态,或未添加该类型渠道。 + +**处理步骤** + +1、通知设置里查看应用是否有该类型渠道,没有需要新增。 + +2、通知设置里查看应用该类型渠道状态,要保持开启状态。 + +## 1600006 通知删除失败 + +**错误信息** + +Notification is not allowed to remove. + +**错误描述** + +通知设置了禁止删除属性,方法将返回该错误码。 + +**可能原因** + +通知设置了禁止删除属性。 + +**处理步骤** + +参考[NotificationRequest](../apis/js-apis-notificationManager.md#notificationrequest)通知禁止删除属性。 + +## 1600007 通知不存在 + +**错误信息** + +The notification is not exist. + +**错误描述** + +通知服务未找到该通知,方法将返回该错误码。 + +**可能原因** + +通知已被取消或删除。 + +**处理步骤** + +无 + +## 1600008 用户不存在 + +**错误信息** + +The user is not exist. + +**错误描述** + +传入的用户信息系统里未查询到,方法将返回该错误码。 + +**可能原因** + +传入用户信息有误。 + +**处理步骤** + +检查传入的用户信息。 + +## 1600009 通知发布频度超过限制 + +**错误信息** + +Over max number notifications per second. + +**错误描述** + +通知发送频率超过限制,方法将返回该错误码。 + +**可能原因** + +通知发送频率超过每秒10个。 + +**处理步骤** + +降低通知发送频率。 + +## 16000010 分布式操作失败 + +**错误信息** + +Distributed operation failed. + +**错误描述** + +分布式数据库操作异常或分布式接口调用异常,方法将返回该错误码。 + +**可能原因** + +分布式数据库操作异常或分布式接口调用异常。 + +**处理步骤** + +检查分布式连接是否正常。 + +## 16000011 读模板配置文件错误 + +**错误信息** + +Read template config failed. + +**错误描述** + +模板配置文件读取异常,方法将返回该错误码。 + +**可能原因** + +系统中模板配置文件丢失。 + +**处理步骤** + +请检查系统中模板配置文件是否存在,配置文件路径:/system/etc/notification_template/external.json。 + +## 16000012 内存空间不够 + +**错误信息** + +No memory space. + +**错误描述** + +内存申请出现错误,方法将返回该错误码。 + +**可能原因** + +内存申请出现错误。 + +**处理步骤** + +确认系统内存是否足够。 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-utils.md b/zh-cn/application-dev/reference/errorcodes/errorcode-utils.md index 9dd0d2ccf0650a53e9cb60f9db1f538834b71590..eab38038d22bcd536f7a131261296cb16e652600 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-utils.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-utils.md @@ -272,4 +272,22 @@ The task is running when cancel it. **处理步骤** -取消任务前,确保任务已被执行完毕。 \ No newline at end of file +取消任务前,确保任务已被执行完毕。 + +## 10200017 删除不存在的元素错误 + +**错误信息** + +The element does not exist in this container. + +**错误描述** + +删除的元素不存在此容器中。 + +**可能原因** + +删除元素时,此容器中不存在此元素。 + +**处理步骤** + +删除元素前,确保元素存在于此容器中。 \ 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 aab1b2529434e24ee563ef399aaee74526af422c..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名称、包名、携带的参数字段等。 - - | 选择器 | 类型 | 默认值 | 样例描述 | - | ------ | ------ | -------- | ---------------------------------------- | - | 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": "com.example.entry.MainAbility" - } - }, - "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/_audio_decoder.md b/zh-cn/application-dev/reference/native-apis/_audio_decoder.md index 9fc9af23256d369d24609fafd1380f325c05bf3d..dba176333f7234ad5a5cdb60e543d58c43138df8 100644 --- a/zh-cn/application-dev/reference/native-apis/_audio_decoder.md +++ b/zh-cn/application-dev/reference/native-apis/_audio_decoder.md @@ -17,27 +17,27 @@ AudioDecoder模块提供用于音频解码功能的函数。 | 名称 | 描述 | | -------- | -------- | -| [native_avcodec_audiodecoder.h](native__avcodec__audiodecoder_8h.md) | 声明用于音频解码的Native API。 | +| [native_avcodec_audiodecoder.h](native__avcodec__audiodecoder_8h.md) | 声明用于音频解码的Native API。
引用文件: | ### 函数 | 名称 | 描述 | | -------- | -------- | -| [OH_AudioDecoder_CreateByMime](#oh_audiodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频解码器实例,大多数情况下推荐使用该接口。 | -| [OH_AudioDecoder_CreateByName](#oh_audiodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频解码器名称创建一个音频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | -| [OH_AudioDecoder_Destroy](#oh_audiodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例 | -| [OH_AudioDecoder_SetCallback](#oh_audiodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioDecoder_Configure](#oh_audiodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频解码器,典型地,需要配置被解码音频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioDecoder_Prepare](#oh_audiodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_AudioDecoder_Start](#oh_audiodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_AudioDecoder_Stop](#oh_audiodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | -| [OH_AudioDecoder_Flush](#oh_audiodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_AudioDecoder_Reset](#oh_audiodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | -| [OH_AudioDecoder_GetOutputDescription](#oh_audiodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | -| [OH_AudioDecoder_SetParameter](#oh_audiodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | -| [OH_AudioDecoder_PushInputData](#oh_audiodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程。 | -| [OH_AudioDecoder_FreeOutputData](#oh_audiodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | +| [OH_AudioDecoder_CreateByMime](#oh_audiodecoder_createbymime) (const char \*mime) | 通过mime类型创建一个音频解码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioDecoder_CreateByName](#oh_audiodecoder_createbyname) (const char \*name) | 通过音频解码器名称创建一个音频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | +| [OH_AudioDecoder_Destroy](#oh_audiodecoder_destroy) (OH_AVCodec \*codec) | 清空解码器内部资源,并销毁解码器实例 | +| [OH_AudioDecoder_SetCallback](#oh_audiodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应音频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Configure](#oh_audiodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置音频解码器,典型地,需要配置被解码音频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Prepare](#oh_audiodecoder_prepare) (OH_AVCodec \*codec) | 准备解码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioDecoder_Start](#oh_audiodecoder_start) (OH_AVCodec \*codec) | 启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioDecoder_Stop](#oh_audiodecoder_stop) (OH_AVCodec \*codec) | 停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | +| [OH_AudioDecoder_Flush](#oh_audiodecoder_flush) (OH_AVCodec \*codec) | 清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioDecoder_Reset](#oh_audiodecoder_reset) (OH_AVCodec \*codec) | 重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | +| [OH_AudioDecoder_GetOutputDescription](#oh_audiodecoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioDecoder_SetParameter](#oh_audiodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | +| [OH_AudioDecoder_PushInputData](#oh_audiodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | 将填充好数据的输入Buffer提交给音频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程。 | +| [OH_AudioDecoder_FreeOutputData](#oh_audiodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给解码器。 | ## 函数说明 diff --git a/zh-cn/application-dev/reference/native-apis/_audio_encoder.md b/zh-cn/application-dev/reference/native-apis/_audio_encoder.md index cafd93cefe0297671c38cdcffcfa93e78dbd22b1..088def8941959030ba924013f6a729c998957bc0 100644 --- a/zh-cn/application-dev/reference/native-apis/_audio_encoder.md +++ b/zh-cn/application-dev/reference/native-apis/_audio_encoder.md @@ -17,27 +17,27 @@ AudioEncoder模块提供用于音频编码功能的函数。 | 名称 | 描述 | | -------- | -------- | -| [native_avcodec_audioencoder.h](native__avcodec__audioencoder_8h.md) | 声明用于音频编码的Native API。 | +| [native_avcodec_audioencoder.h](native__avcodec__audioencoder_8h.md) | 声明用于音频编码的Native API。
引用文件: | ### 函数 | 名称 | 描述 | | -------- | -------- | -| [OH_AudioEncoder_CreateByMime](#oh_audioencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频编码器实例,大多数情况下推荐使用该接口。 | -| [OH_AudioEncoder_CreateByName](#oh_audioencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频编码器名称创建一个音频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | -| [OH_AudioEncoder_Destroy](#oh_audioencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | -| [OH_AudioEncoder_SetCallback](#oh_audioencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioEncoder_Configure](#oh_audioencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频编码器,典型地,需要配置被编码音频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioEncoder_Prepare](#oh_audioencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_AudioEncoder_Start](#oh_audioencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_AudioEncoder_Stop](#oh_audioencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | -| [OH_AudioEncoder_Flush](#oh_audioencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_AudioEncoder_Reset](#oh_audioencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | -| [OH_AudioEncoder_GetOutputDescription](#oh_audioencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | -| [OH_AudioEncoder_SetParameter](#oh_audioencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | -| [OH_AudioEncoder_PushInputData](#oh_audioencoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频编码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给编码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。 | -| [OH_AudioEncoder_FreeOutputData](#oh_audioencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | +| [OH_AudioEncoder_CreateByMime](#oh_audioencoder_createbymime) (const char \*mime) | 通过mime类型创建一个音频编码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioEncoder_CreateByName](#oh_audioencoder_createbyname) (const char \*name) | 通过音频编码器名称创建一个音频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | +| [OH_AudioEncoder_Destroy](#oh_audioencoder_destroy) (OH_AVCodec \*codec) | 清空编码器内部资源,并销毁编码器实例。 | +| [OH_AudioEncoder_SetCallback](#oh_audioencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应音频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Configure](#oh_audioencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置音频编码器,典型地,需要配置被编码音频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Prepare](#oh_audioencoder_prepare) (OH_AVCodec \*codec) | 准备编码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioEncoder_Start](#oh_audioencoder_start) (OH_AVCodec \*codec) | 启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioEncoder_Stop](#oh_audioencoder_stop) (OH_AVCodec \*codec) | 停止编码器。在停止后可通过Start重新进入Started状态。 | +| [OH_AudioEncoder_Flush](#oh_audioencoder_flush) (OH_AVCodec \*codec) | 清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioEncoder_Reset](#oh_audioencoder_reset) (OH_AVCodec \*codec) | 重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | +| [OH_AudioEncoder_GetOutputDescription](#oh_audioencoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioEncoder_SetParameter](#oh_audioencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | +| [OH_AudioEncoder_PushInputData](#oh_audioencoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | 将填充好数据的输入Buffer提交给音频编码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给编码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。 | +| [OH_AudioEncoder_FreeOutputData](#oh_audioencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给编码器。 | ## 函数说明 diff --git a/zh-cn/application-dev/reference/native-apis/_codec_base.md b/zh-cn/application-dev/reference/native-apis/_codec_base.md index ad17aaa1184a11aceeef7ed0c490479d10118f27..8447b567a850200de0311367940e1a6da35ca65e 100644 --- a/zh-cn/application-dev/reference/native-apis/_codec_base.md +++ b/zh-cn/application-dev/reference/native-apis/_codec_base.md @@ -17,33 +17,31 @@ CodecBase模块提供运行音视频编解码通用的结构体、字符常量 | 名称 | 描述 | | -------- | -------- | -| [native_avcodec_base.h](native__avcodec__base_8h.md) | 声明运行音视频编解码通用的结构体、字符常量、枚举。 | +| [native_avcodec_base.h](native__avcodec__base_8h.md) | 声明运行音视频编解码通用的结构体、字符常量、枚举。
引用文件: | ### 结构体 | 名称 | 描述 | | -------- | -------- | -| [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) | struct
定义OH_AVCodec的Buffer描述信息。 | -| [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | struct
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | +| [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) | 定义OH_AVCodec的Buffer描述信息。 | +| [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | ### 类型定义 | 名称 | 描述 | | -------- | -------- | -| **OHNativeWindow** | typedef struct NativeWindow | -| **OH_AVCodec** | typedef struct OH_AVCodec | -| [OH_AVCodecBufferFlags](#oh_avcodecbufferflags) | typedef enum [OH_AVCodecBufferFlags](#oh_avcodecbufferflags)
枚举OH_AVCodec的Buffer标记的类别。 | -| [OH_AVCodecBufferAttr](#oh_avcodecbufferattr) | typedef struct [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md)
定义OH_AVCodec的Buffer描述信息。 | -| [OH_AVCodecOnError](#oh_avcodeconerror)) (OH_AVCodec \*codec, int32_t errorCode, void \*userData) | typedef void(\*
当OH_AVCodec实例运行发生错误时,该函数指针会被调用以报告具体错误信息。 | -| [OH_AVCodecOnStreamChanged](#oh_avcodeconstreamchanged)) (OH_AVCodec \*codec, OH_AVFormat \*format, void \*userData) | typedef void(\*
当输出流发生变化时,该函数指针会被调用以报告新的流描述信息。 需要注意的时,OH_AVFormat指针的生命周期仅维持在该函数指针被调用时上有效,禁止在调用结束后继续访问。 | -| [OH_AVCodecOnNeedInputData](#oh_avcodeconneedinputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, void \*userData) | typedef void(\*
当AVCodec运行过程中需要新的输入数据时,该函数指针会被调用,并携带一块可用的Buffer以供填入新的输入数据。 | -| [OH_AVCodecOnNewOutputData](#oh_avcodeconnewoutputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) \*attr, void \*userData) | typedef void(\*
当AVCodec运行过程中产生了新的输出数据时,该函数指针会被调用,并携带一块包含新输出数据的Buffer, 需要注意的是,OH_AVCodecBufferAttr指针的生命周期仅维持在该函数指针被调用时有效,禁止调用结束后继续访问。 | -| [OH_AVCodecAsyncCallback](#oh_avcodecasynccallback) | typedef struct [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md)
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | -| [OH_MediaType](#oh_mediatype) | typedef enum [OH_MediaType](#oh_mediatype)
媒体类型。 | -| [OH_AVCProfile](#oh_avcprofile) | typedef enum [OH_AVCProfile](#oh_avcprofile)
AVC Profile枚举。 | -| [OH_AACProfile](#oh_aacprofile) | typedef enum [OH_AACProfile](#oh_aacprofile)
AAC Profile枚举。 | +| [OH_AVCodecBufferFlags](#oh_avcodecbufferflags) | 枚举OH_AVCodec的Buffer标记的类别。 | +| [OH_AVCodecBufferAttr](#oh_avcodecbufferattr) | 定义OH_AVCodec的Buffer描述信息。 | +| (\*[OH_AVCodecOnError](#oh_avcodeconerror)) (OH_AVCodec \*codec, int32_t errorCode, void \*userData) | 当OH_AVCodec实例运行发生错误时,该函数指针会被调用以报告具体错误信息。 | +| (\*[OH_AVCodecOnStreamChanged](#oh_avcodeconstreamchanged)) (OH_AVCodec \*codec, OH_AVFormat \*format, void \*userData) | 当输出流发生变化时,该函数指针会被调用以报告新的流描述信息。 需要注意的时,OH_AVFormat指针的生命周期仅维持在该函数指针被调用时上有效,禁止在调用结束后继续访问。 | +| (\*[OH_AVCodecOnNeedInputData](#oh_avcodeconneedinputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, void \*userData) | 当AVCodec运行过程中需要新的输入数据时,该函数指针会被调用,并携带一块可用的Buffer以供填入新的输入数据。 | +| (\*[OH_AVCodecOnNewOutputData](#oh_avcodeconnewoutputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) \*attr, void \*userData) | 当AVCodec运行过程中产生了新的输出数据时,该函数指针会被调用,并携带一块包含新输出数据的Buffer, 需要注意的是,OH_AVCodecBufferAttr指针的生命周期仅维持在该函数指针被调用时有效,禁止调用结束后继续访问。 | +| [OH_AVCodecAsyncCallback](#oh_avcodecasynccallback) | AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | +| [OH_MediaType](#oh_mediatype) | 媒体类型。 | +| [OH_AVCProfile](#oh_avcprofile) | AVC Profile枚举。 | +| [OH_AACProfile](#oh_aacprofile) | AAC Profile枚举。 | ### 枚举 @@ -60,34 +58,30 @@ CodecBase模块提供运行音视频编解码通用的结构体、字符常量 | 名称 | 描述 | | -------- | -------- | -| [OH_AVCodecBufferAttr::pts](#pts) | int64_t
以微秒为单位表示的该Buffer的Presentation时间戳 | -| [OH_AVCodecBufferAttr::size](#size) | int32_t
以字节为单位表示的该Buffer内所包含数据的大小 | -| [OH_AVCodecBufferAttr::offset](#offset) | int32_t
有效数据在该Buffer内的起始偏移量 | -| [OH_AVCodecBufferAttr::flags](#flags) | uint32_t
该Buffer具有的标记,也是多个[OH_AVCodecBufferFlags](#oh_avcodecbufferflags)的组合 | -| **OH_AVCodecAsyncCallback::onError** | [OH_AVCodecOnError](#oh_avcodeconerror) | -| **OH_AVCodecAsyncCallback::onStreamChanged** | [OH_AVCodecOnStreamChanged](#oh_avcodeconstreamchanged) | -| **OH_AVCodecAsyncCallback::onNeedInputData** | [OH_AVCodecOnNeedInputData](#oh_avcodeconneedinputdata) | -| **OH_AVCodecAsyncCallback::onNeedOutputData** | [OH_AVCodecOnNewOutputData](#oh_avcodeconnewoutputdata) | -| [OH_AVCODEC_MIMETYPE_VIDEO_AVC](#oh_avcodec_mimetype_video_avc) | const char \*
AVC视频编解码器的MIME类型。 | -| [OH_AVCODEC_MIMETYPE_AUDIO_AAC](#oh_avcodec_mimetype_audio_aac) | const char \*
AAC音频编解码器的MIME类型。 | -| [OH_ED_KEY_TIME_STAMP](#oh_ed_key_time_stamp) | const char \*
提供统一的surface Buffer附属数据的字符描述符。 | -| [OH_ED_KEY_EOS](#oh_ed_key_eos) | const char \*
surface附属数据中结束流的字符描述符,值类型为bool | -| [OH_MD_KEY_TRACK_TYPE](#oh_md_key_track_type) | const char \*
为媒体播放框架提供统一的字符描述符。 | -| [OH_MD_KEY_CODEC_MIME](#oh_md_key_codec_mime) | const char \*
mime类型的字符描述符,值类型为string | -| [OH_MD_KEY_DURATION](#oh_md_key_duration) | const char \*
duration的字符描述符,值类型为int64_t | -| [OH_MD_KEY_BITRATE](#oh_md_key_bitrate) | const char \*
比特率的字符描述符,值类型为uint32_t | -| [OH_MD_KEY_MAX_INPUT_SIZE](#oh_md_key_max_input_size) | const char \*
最大输入尺寸的字符描述符,值类型为uint32_t | -| [OH_MD_KEY_WIDTH](#oh_md_key_width) | const char \*
视频宽度的字符描述符,值类型为uint32_t | -| [OH_MD_KEY_HEIGHT](#oh_md_key_height) | const char \*
视频高度的字符描述符,值类型为uint32_t | -| [OH_MD_KEY_PIXEL_FORMAT](#oh_md_key_pixel_format) | const char \*
视频像素格式的字符描述符,值类型为int32_t,具体见[OH_AVPixelFormat](_core.md#oh_avpixelformat) | -| [OH_MD_KEY_AUDIO_SAMPLE_FORMAT](#oh_md_key_audio_sample_format) | const char \*
音频采样格式的字符描述符,值类型为uint32_t | -| [OH_MD_KEY_FRAME_RATE](#oh_md_key_frame_rate) | const char \*
视频帧率的字符描述符,值类型为double | -| [OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE](#oh_md_key_video_encode_bitrate_mode) | const char \*
视频编码比特率模式的字符描述符,值类型为int32_t,具体见[OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) | -| [OH_MD_KEY_PROFILE](#oh_md_key_profile) | const char \*
音视频编码能力的字符描述符,值类型为int32_t,具体见[OH_AVCProfile](#oh_avcprofile)或[OH_AACProfile](#oh_aacprofile) | -| [OH_MD_KEY_AUD_CHANNEL_COUNT](#oh_md_key_aud_channel_count) | const char \*
音频声道数的字符描述符,值类型为uint32_t | -| [OH_MD_KEY_AUD_SAMPLE_RATE](#oh_md_key_aud_sample_rate) | const char \*
音频采样率的字符描述符,值类型为uint32_t | -| [OH_MD_KEY_I_FRAME_INTERVAL](#oh_md_key_i_frame_interval) | const char \*
I帧间隔时长的字符描述符,值类型为int32_t,单位是毫秒 | -| [OH_MD_KEY_ROTATION](#oh_md_key_rotation) | const char \*
surface旋转角度的字符描述符,值类型为int32_t,限于{0, 90, 180, 270},默认值为0 | +| [OH_AVCodecBufferAttr::pts](#pts) | 以微秒为单位表示的该Buffer的Presentation时间戳 | +| [OH_AVCodecBufferAttr::size](#size) | 以字节为单位表示的该Buffer内所包含数据的大小 | +| [OH_AVCodecBufferAttr::offset](#offset) | 有效数据在该Buffer内的起始偏移量 | +| [OH_AVCodecBufferAttr::flags](#flags) | u该Buffer具有的标记,也是多个[OH_AVCodecBufferFlags](#oh_avcodecbufferflags)的组合 | +| [OH_AVCODEC_MIMETYPE_VIDEO_AVC](#oh_avcodec_mimetype_video_avc) | AVC视频编解码器的MIME类型。 | +| [OH_AVCODEC_MIMETYPE_AUDIO_AAC](#oh_avcodec_mimetype_audio_aac) | AAC音频编解码器的MIME类型。 | +| [OH_ED_KEY_TIME_STAMP](#oh_ed_key_time_stamp) | 提供统一的surface Buffer附属数据的字符描述符。 | +| [OH_ED_KEY_EOS](#oh_ed_key_eos) | surface附属数据中结束流的字符描述符,值类型为bool | +| [OH_MD_KEY_TRACK_TYPE](#oh_md_key_track_type) | 为媒体播放框架提供统一的字符描述符。 | +| [OH_MD_KEY_CODEC_MIME](#oh_md_key_codec_mime) | mime类型的字符描述符,值类型为string | +| [OH_MD_KEY_DURATION](#oh_md_key_duration) | duration的字符描述符,值类型为int64_t | +| [OH_MD_KEY_BITRATE](#oh_md_key_bitrate) | 比特率的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_MAX_INPUT_SIZE](#oh_md_key_max_input_size) | 最大输入尺寸的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_WIDTH](#oh_md_key_width) | 视频宽度的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_HEIGHT](#oh_md_key_height) | 视频高度的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_PIXEL_FORMAT](#oh_md_key_pixel_format) | 视频像素格式的字符描述符,值类型为int32_t,具体见[OH_AVPixelFormat](_core.md#oh_avpixelformat) | +| [OH_MD_KEY_AUDIO_SAMPLE_FORMAT](#oh_md_key_audio_sample_format) | 音频采样格式的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_FRAME_RATE](#oh_md_key_frame_rate) | 视频帧率的字符描述符,值类型为double | +| [OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE](#oh_md_key_video_encode_bitrate_mode) | 视频编码比特率模式的字符描述符,值类型为int32_t,具体见[OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) | +| [OH_MD_KEY_PROFILE](#oh_md_key_profile) | 音视频编码能力的字符描述符,值类型为int32_t,具体见[OH_AVCProfile](#oh_avcprofile)或[OH_AACProfile](#oh_aacprofile) | +| [OH_MD_KEY_AUD_CHANNEL_COUNT](#oh_md_key_aud_channel_count) | 音频声道数的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_AUD_SAMPLE_RATE](#oh_md_key_aud_sample_rate) | 音频采样率的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_I_FRAME_INTERVAL](#oh_md_key_i_frame_interval) | I帧间隔时长的字符描述符,值类型为int32_t,单位是毫秒 | +| [OH_MD_KEY_ROTATION](#oh_md_key_rotation) | surface旋转角度的字符描述符,值类型为int32_t,限于{0, 90, 180, 270},默认值为0 | ## 类型定义说明 diff --git a/zh-cn/application-dev/reference/native-apis/_core.md b/zh-cn/application-dev/reference/native-apis/_core.md index f22ab2b5480b7da877274a105533c18feb168323..0fd46eb392753fd223478b8f74d4847ee37f5cbd 100644 --- a/zh-cn/application-dev/reference/native-apis/_core.md +++ b/zh-cn/application-dev/reference/native-apis/_core.md @@ -17,19 +17,17 @@ Core模块提供用于播放框架的基础骨干能力,包含内存、错误 | 名称 | 描述 | | -------- | -------- | -| [native_averrors.h](native__averrors_8h.md) | 声明了媒体播放框架的错误码。 | -| [native_avformat.h](native__avformat_8h.md) | 声明了格式相关的函数和枚举。 | -| [native_avmemory.h](native__avmemory_8h.md) | 声明了AVMemory的函数接口。 | +| [native_averrors.h](native__averrors_8h.md) | 声明了媒体播放框架的错误码。
引用文件: | +| [native_avformat.h](native__avformat_8h.md) | 声明了格式相关的函数和枚举。
引用文件: | +| [native_avmemory.h](native__avmemory_8h.md) | 声明了AVMemory的函数接口。
引用文件: | ### 类型定义 | 名称 | 描述 | | -------- | -------- | -| [OH_AVErrCode](#oh_averrcode) | typedef enum [OH_AVErrCode](#oh_averrcode)
音视频错误码。 | -| **OH_AVFormat** | typedef struct OH_AVFormat | -| [OH_AVPixelFormat](#oh_avpixelformat) | typedef enum [OH_AVPixelFormat](#oh_avpixelformat)
AVPixel 格式的枚举。 | -| **OH_AVMemory** | typedef struct OH_AVMemory | +| [OH_AVErrCode](#oh_averrcode) | 音视频错误码。 | +| [OH_AVPixelFormat](#oh_avpixelformat) | AVPixel 格式的枚举。 | ### 枚举 @@ -44,24 +42,24 @@ Core模块提供用于播放框架的基础骨干能力,包含内存、错误 | 名称 | 描述 | | -------- | -------- | -| [OH_AVFormat_Create](#oh_avformat_create) (void) | struct OH_AVFormat \*
创建一个OH_AVFormat句柄指针,用以读写数据。 | -| [OH_AVFormat_Destroy](#oh_avformat_destroy) (struct OH_AVFormat \*format) | void
销毁指定OH_AVFormat句柄资源。 | -| [OH_AVFormat_Copy](#oh_avformat_copy) (struct OH_AVFormat \*to, struct OH_AVFormat \*from) | bool
拷贝OH_AVFormat句柄资源. | -| [OH_AVFormat_SetIntValue](#oh_avformat_setintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t value) | bool
向OH_AVFormat写入Int数据. | -| [OH_AVFormat_SetLongValue](#oh_avformat_setlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t value) | bool
向OH_AVFormat写入Long数据。 | -| [OH_AVFormat_SetFloatValue](#oh_avformat_setfloatvalue) (struct OH_AVFormat \*format, const char \*key, float value) | bool
向OH_AVFormat写入Float数据。 | -| [OH_AVFormat_SetDoubleValue](#oh_avformat_setdoublevalue) (struct OH_AVFormat \*format, const char \*key, double value) | bool
向OH_AVFormat写入Double数据。 | -| [OH_AVFormat_SetStringValue](#oh_avformat_setstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*value) | bool
向OH_AVFormat写入String数据。 | -| [OH_AVFormat_SetBuffer](#oh_avformat_setbuffer) (struct OH_AVFormat \*format, const char \*key, const uint8_t \*addr, size_t size) | bool
向OH_AVFormat写入一块指定长度的数据。 | -| [OH_AVFormat_GetIntValue](#oh_avformat_getintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t \*out) | bool
从OH_AVFormat读取Int数据。 | -| [OH_AVFormat_GetLongValue](#oh_avformat_getlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t \*out) | bool
从OH_AVFormat读取Long数据。 | -| [OH_AVFormat_GetFloatValue](#oh_avformat_getfloatvalue) (struct OH_AVFormat \*format, const char \*key, float \*out) | bool
从OH_AVFormat读取Float数据。 | -| [OH_AVFormat_GetDoubleValue](#oh_avformat_getdoublevalue) (struct OH_AVFormat \*format, const char \*key, double \*out) | bool
从OH_AVFormat读取Double数据。 | -| [OH_AVFormat_GetStringValue](#oh_avformat_getstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*\*out) | bool
从OH_AVFormat读取Double数据。 | -| [OH_AVFormat_GetBuffer](#oh_avformat_getbuffer) (struct OH_AVFormat \*format, const char \*key, uint8_t \*\*addr, size_t \*size) | bool
从OH_AVFormat读取一块指定长度的数据。 | -| [OH_AVFormat_DumpInfo](#oh_avformat_dumpinfo) (struct OH_AVFormat \*format) | const char \*
以字符串的形式输出OH_AVFormat所包含的信息。 | -| [OH_AVMemory_GetAddr](#oh_avmemory_getaddr) (struct OH_AVMemory \*mem) | uint8_t \*
获取入参的内存虚拟地址。 | -| [OH_AVMemory_GetSize](#oh_avmemory_getsize) (struct OH_AVMemory \*mem) | int32_t
获取入参的内存长度。 | +| [OH_AVFormat_Create](#oh_avformat_create) (void) | 创建一个OH_AVFormat句柄指针,用以读写数据。 | +| [OH_AVFormat_Destroy](#oh_avformat_destroy) (struct OH_AVFormat \*format) | 销毁指定OH_AVFormat句柄资源。 | +| [OH_AVFormat_Copy](#oh_avformat_copy) (struct OH_AVFormat \*to, struct OH_AVFormat \*from) | 拷贝OH_AVFormat句柄资源. | +| [OH_AVFormat_SetIntValue](#oh_avformat_setintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t value) | 向OH_AVFormat写入Int数据. | +| [OH_AVFormat_SetLongValue](#oh_avformat_setlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t value) | 向OH_AVFormat写入Long数据。 | +| [OH_AVFormat_SetFloatValue](#oh_avformat_setfloatvalue) (struct OH_AVFormat \*format, const char \*key, float value) | 向OH_AVFormat写入Float数据。 | +| [OH_AVFormat_SetDoubleValue](#oh_avformat_setdoublevalue) (struct OH_AVFormat \*format, const char \*key, double value) | 向OH_AVFormat写入Double数据。 | +| [OH_AVFormat_SetStringValue](#oh_avformat_setstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*value) | 向OH_AVFormat写入String数据。 | +| [OH_AVFormat_SetBuffer](#oh_avformat_setbuffer) (struct OH_AVFormat \*format, const char \*key, const uint8_t \*addr, size_t size) | 向OH_AVFormat写入一块指定长度的数据。 | +| [OH_AVFormat_GetIntValue](#oh_avformat_getintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t \*out) | 从OH_AVFormat读取Int数据。 | +| [OH_AVFormat_GetLongValue](#oh_avformat_getlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t \*out) | 从OH_AVFormat读取Long数据。 | +| [OH_AVFormat_GetFloatValue](#oh_avformat_getfloatvalue) (struct OH_AVFormat \*format, const char \*key, float \*out) | 从OH_AVFormat读取Float数据。 | +| [OH_AVFormat_GetDoubleValue](#oh_avformat_getdoublevalue) (struct OH_AVFormat \*format, const char \*key, double \*out) | 从OH_AVFormat读取Double数据。 | +| [OH_AVFormat_GetStringValue](#oh_avformat_getstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*\*out) | 从OH_AVFormat读取Double数据。 | +| [OH_AVFormat_GetBuffer](#oh_avformat_getbuffer) (struct OH_AVFormat \*format, const char \*key, uint8_t \*\*addr, size_t \*size) | 从OH_AVFormat读取一块指定长度的数据。 | +| [OH_AVFormat_DumpInfo](#oh_avformat_dumpinfo) (struct OH_AVFormat \*format) | 以字符串的形式输出OH_AVFormat所包含的信息。 | +| [OH_AVMemory_GetAddr](#oh_avmemory_getaddr) (struct OH_AVMemory \*mem) | 获取入参的内存虚拟地址。 | +| [OH_AVMemory_GetSize](#oh_avmemory_getsize) (struct OH_AVMemory \*mem) | 获取入参的内存长度。 | ## 类型定义说明 diff --git a/zh-cn/application-dev/reference/native-apis/_drawing.md b/zh-cn/application-dev/reference/native-apis/_drawing.md index fe4c793ed6eb61ea2ee6cb348dd615e50c22f06d..5169986ce6333219200384d3dfd859807e7e2519 100644 --- a/zh-cn/application-dev/reference/native-apis/_drawing.md +++ b/zh-cn/application-dev/reference/native-apis/_drawing.md @@ -21,142 +21,146 @@ Drawing模块提供包括2D图形渲染、文字绘制和图片显示等功能 ### 文件 -| 文件名称 | 描述 | -| -------- | -------- | -| [drawing_bitmap.h](drawing__bitmap_8h.md) | 文件中定义了与位图相关的功能函数。 | -| [drawing_brush.h](drawing__brush_8h.md) | 文件中定义了与画刷相关的功能函数。 | -| [drawing_canvas.h](drawing__canvas_8h.md) | 文件中定义了与画布相关的功能函数。 | -| [drawing_color.h](drawing__color_8h.md) | 文件中定义了与颜色相关的功能函数。 | -| [drawing_font_collection.h](drawing__font__collection_8h.md) | 定义绘制模块中与fontCollection相关的函数。 | -| [drawing_path.h](drawing__path_8h.md) | 文件中定义了与自定义路径相关的功能函数。 | -| [drawing_pen.h](drawing__pen_8h.md) | 文件中定义了与画笔相关的功能函数。 | -| [drawing_text_declaration.h](drawing__text__declaration_8h.md) | 提供2d drawing文本相关的数据结构声明。 | -| [drawing_text_typography.h](drawing__text__typography_8h.md) | 定义绘制模块中排版相关的函数。 | -| [drawing_types.h](drawing__types_8h.md) | 文件中定义了用于绘制2d图形的数据类型,包括画布、画笔、画刷、位图和路径。 | +| 文件名称 | 描述 | +| ------------------------------------------------------------ | ------------------------------------------------------------ | +| [drawing_bitmap.h](drawing__bitmap_8h.md) | 文件中定义了与位图相关的功能函数。
引用文件: | +| [drawing_brush.h](drawing__brush_8h.md) | 文件中定义了与画刷相关的功能函数。
引用文件: | +| [drawing_canvas.h](drawing__canvas_8h.md) | 文件中定义了与画布相关的功能函数。
引用文件: | +| [drawing_color.h](drawing__color_8h.md) | 文件中定义了与颜色相关的功能函数。
引用文件: | +| [drawing_font_collection.h](drawing__font__collection_8h.md) | 定义绘制模块中与fontCollection相关的函数。
引用文件: | +| [drawing_path.h](drawing__path_8h.md) | 文件中定义了与自定义路径相关的功能函数。
引用文件: | +| [drawing_pen.h](drawing__pen_8h.md) | 文件中定义了与画笔相关的功能函数。
引用文件: | +| [drawing_text_declaration.h](drawing__text__declaration_8h.md) | 提供2d drawing文本相关的数据结构声明。
引用文件: | +| [drawing_text_typography.h](drawing__text__typography_8h.md) | 定义绘制模块中排版相关的函数。
引用文件: | +| [drawing_types.h](drawing__types_8h.md) | 文件中定义了用于绘制2d图形的数据类型,包括画布、画笔、画刷、位图和路径。
引用文件: | ### 结构体 -| 结构体名称 | 描述 | -| -------- | -------- | +| 结构体名称 | 描述 | +| ------------------------------------------------------------ | -------------------------------------------------------- | | [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) | 结构体用于描述位图像素的格式,包括颜色类型和透明度类型。 | ### 类型定义 -| 类型定义名称 | 描述 | -| -------- | -------- | -| [OH_Drawing_FontCollection](#oh_drawing_fontcollection) | OH_Drawing_FontCollection用于加载字体。 | -| [OH_Drawing_Typography](#oh_drawing_typography) | OH_Drawing_Typography用于管理排版的布局和显示等。 | -| [OH_Drawing_TextStyle](#oh_drawing_textstyle) | OH_Drawing_TextStyle用于管理字体颜色、装饰等。 | -| [OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) | OH_Drawing_TypographyStyle用于管理排版风格,如文字方向等。 | -| [OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) | OH_Drawing_TypographyCreate用于创建OH_Drawing_Typography。 | -| [OH_Drawing_Canvas](#oh_drawing_canvas) | OH_Drawing_Canvas定义为一块矩形的画布,可以结合画笔和画刷在上面绘制各种形状、图片和文字。 | -| [OH_Drawing_Pen](#oh_drawing_pen) | OH_Drawing_Pen定义为画笔,画笔用于描述绘制图形轮廓的样式和颜色。 | -| [OH_Drawing_Brush](#oh_drawing_brush) | OH_Drawing_Brush定义为画刷,画刷用于描述填充图形的样式和颜色。 | -| [OH_Drawing_Path](#oh_drawing_path) | OH_Drawing_Path定义为路径,路径用于自定义各种形状。 | -| [OH_Drawing_Bitmap](#oh_drawing_bitmap) | OH_Drawing_Bitmap定义为位图,位图是一块内存,内存中包含了描述一张图片的像素数据。 | +| 类型定义名称 | 描述 | +| ----------------------------------------------------------- | ------------------------------------------------------------ | +| [OH_Drawing_FontCollection](#oh_drawing_fontcollection) | OH_Drawing_FontCollection用于加载字体。 | +| [OH_Drawing_Typography](#oh_drawing_typography) | OH_Drawing_Typography用于管理排版的布局和显示等。 | +| [OH_Drawing_TextStyle](#oh_drawing_textstyle) | OH_Drawing_TextStyle用于管理字体颜色、装饰等。 | +| [OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) | OH_Drawing_TypographyStyle用于管理排版风格,如文字方向等。 | +| [OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) | OH_Drawing_TypographyCreate用于创建OH_Drawing_Typography。 | +| [OH_Drawing_Canvas](#oh_drawing_canvas) | OH_Drawing_Canvas定义为一块矩形的画布,可以结合画笔和画刷在上面绘制各种形状、图片和文字。 | +| [OH_Drawing_Pen](#oh_drawing_pen) | OH_Drawing_Pen定义为画笔,画笔用于描述绘制图形轮廓的样式和颜色。 | +| [OH_Drawing_Brush](#oh_drawing_brush) | OH_Drawing_Brush定义为画刷,画刷用于描述填充图形的样式和颜色。 | +| [OH_Drawing_Path](#oh_drawing_path) | OH_Drawing_Path定义为路径,路径用于自定义设置各种形状。 | +| [OH_Drawing_Bitmap](#oh_drawing_bitmap) | OH_Drawing_Bitmap定义为位图,位图是一块内存,内存中包含了描述一张图片的像素数据。 | ### 枚举 -| 枚举名称 | 描述 | -| -------- | -------- | +| 枚举名称 | 描述 | +| ------------------------------------------------------------ | ------------------------------------------------------------ | | [OH_Drawing_PenLineCapStyle](#oh_drawing_penlinecapstyle) { LINE_FLAT_CAP, LINE_SQUARE_CAP, LINE_ROUND_CAP } | 枚举集合定义了画笔笔帽的样式,即画笔在绘制线段时,在线段头尾端点的样式。 | | [OH_Drawing_PenLineJoinStyle](#oh_drawing_penlinejoinstyle) { LINE_MITER_JOIN, LINE_ROUND_JOIN, LINE_BEVEL_JOIN } | 枚举集合定义了线条转角的样式,即画笔在绘制折线段时,在折线转角处的样式。 | -| [OH_Drawing_TextDirection](#oh_drawing_textdirection) { TEXT_DIRECTION_RTL, TEXT_DIRECTION_LTR } | 文字方向。 | -| [OH_Drawing_TextAlign](#oh_drawing_textalign) { TEXT_ALIGN_LEFT, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER, TEXT_ALIGN_JUSTIFY, TEXT_ALIGN_START, TEXT_ALIGN_END } | 文字对齐方式。 | -| [OH_Drawing_FontWeight](#oh_drawing_fontweight) { FONT_WEIGHT_100, FONT_WEIGHT_200, FONT_WEIGHT_300, FONT_WEIGHT_400, FONT_WEIGHT_500, FONT_WEIGHT_600, FONT_WEIGHT_700, FONT_WEIGHT_800, FONT_WEIGHT_900 } | 字重。 | -| [OH_Drawing_TextBaseline](#oh_drawing_textbaseline) { TEXT_BASELINE_ALPHABETIC, TEXT_BASELINE_IDEOGRAPHIC } | 基线位置。 | -| [OH_Drawing_TextDecoration](#oh_drawing_textdecoration) { TEXT_DECORATION_NONE = 0x0, TEXT_DECORATION_UNDERLINE = 0x1, TEXT_DECORATION_OVERLINE = 0x2, TEXT_DECORATION_LINE_THROUGH = 0x4 } | 文本装饰。 | -| [OH_Drawing_FontStyle](#oh_drawing_fontstyle) { FONT_STYLE_NORMAL, FONT_STYLE_ITALIC } | 区分字体是否为斜体。 | -| [OH_Drawing_ColorFormat](#oh_drawing_colorformat) { COLOR_FORMAT_UNKNOWN, COLOR_FORMAT_ALPHA_8, COLOR_FORMAT_RGB_565, COLOR_FORMAT_ARGB_4444, COLOR_FORMAT_RGBA_8888, COLOR_FORMAT_BGRA_8888 } | OH_Drawing_ColorFormat用于描述位图像素的存储格式。 | -| [OH_Drawing_AlphaFormat](#oh_drawing_alphaformat) { ALPHA_FORMAT_UNKNOWN, ALPHA_FORMAT_OPAQUE, ALPHA_FORMAT_PREMUL, ALPHA_FORMAT_UNPREMUL } | OH_Drawing_AlphaFormat用于描述位图像素的透明度分量。 | +| [OH_Drawing_TextDirection](#oh_drawing_textdirection) { TEXT_DIRECTION_RTL, TEXT_DIRECTION_LTR } | 文字方向。 | +| [OH_Drawing_TextAlign](#oh_drawing_textalign) { TEXT_ALIGN_LEFT, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER, TEXT_ALIGN_JUSTIFY, TEXT_ALIGN_START, TEXT_ALIGN_END } | 文字对齐方式。 | +| [OH_Drawing_FontWeight](#oh_drawing_fontweight) { FONT_WEIGHT_100, FONT_WEIGHT_200, FONT_WEIGHT_300, FONT_WEIGHT_400, FONT_WEIGHT_500, FONT_WEIGHT_600, FONT_WEIGHT_700, FONT_WEIGHT_800, FONT_WEIGHT_900 } | 字重。 | +| [OH_Drawing_TextBaseline](#oh_drawing_textbaseline) { TEXT_BASELINE_ALPHABETIC, TEXT_BASELINE_IDEOGRAPHIC } | 基线位置。 | +| [OH_Drawing_TextDecoration](#oh_drawing_textdecoration) { TEXT_DECORATION_NONE = 0x0, TEXT_DECORATION_UNDERLINE = 0x1, TEXT_DECORATION_OVERLINE = 0x2, TEXT_DECORATION_LINE_THROUGH = 0x4 } | 文本装饰。 | +| [OH_Drawing_FontStyle](#oh_drawing_fontstyle) { FONT_STYLE_NORMAL, FONT_STYLE_ITALIC } | 区分字体是否为斜体。 | +| [OH_Drawing_ColorFormat](#oh_drawing_colorformat) { COLOR_FORMAT_UNKNOWN, COLOR_FORMAT_ALPHA_8, COLOR_FORMAT_RGB_565, COLOR_FORMAT_ARGB_4444, COLOR_FORMAT_RGBA_8888, COLOR_FORMAT_BGRA_8888 } | OH_Drawing_ColorFormat用于描述位图像素的存储格式。 | +| [OH_Drawing_AlphaFormat](#oh_drawing_alphaformat) { ALPHA_FORMAT_UNKNOWN, ALPHA_FORMAT_OPAQUE, ALPHA_FORMAT_PREMUL, ALPHA_FORMAT_UNPREMUL } | OH_Drawing_AlphaFormat用于描述位图像素的透明度分量。 | ### 函数 -| 函数名称 | 描述 | -| -------- | -------- | -| [OH_Drawing_BitmapCreate](#oh_drawing_bitmapcreate) (void) | 函数用于创建一个位图对象。 | -| [OH_Drawing_BitmapDestroy](#oh_drawing_bitmapdestroy) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 函数用于销毁位图对象并回收该对象占有内存。 | -| [OH_Drawing_BitmapBuild](#oh_drawing_bitmapbuild) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*, const uint32_t width, const uint32_t height, const [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) \*) | 函数用于初始化位图对象的宽度和高度,并且为该位图设置像素格式。 | -| [OH_Drawing_BitmapGetWidth](#oh_drawing_bitmapgetwidth) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 该函数用于获取指定位图的宽度。 | -| [OH_Drawing_BitmapGetHeight](#oh_drawing_bitmapgetheight) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 函数用于获取指定位图的高度。 | -| [OH_Drawing_BitmapGetPixels](#oh_drawing_bitmapgetpixels) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 函数用于获取指定位图的像素地址,可以通过像素地址获取到位图的像素数据。 | -| [OH_Drawing_BrushCreate](#oh_drawing_brushcreate) (void) | 函数用于创建一个画刷对象。 | -| [OH_Drawing_BrushDestroy](#oh_drawing_brushdestroy) ([OH_Drawing_Brush](#oh_drawing_brush) \*) | 函数用于销毁画刷对象并回收该对象占有的内存。 | -| [OH_Drawing_BrushIsAntiAlias](#oh_drawing_brushisantialias) (const [OH_Drawing_Brush](#oh_drawing_brush) \*) | 函数用于获取画刷是否设置抗锯齿属性,如果为真则说明画刷会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | -| [OH_Drawing_BrushSetAntiAlias](#oh_drawing_brushsetantialias) ([OH_Drawing_Brush](#oh_drawing_brush) \*, bool) | 函数用于设置画刷的抗锯齿属性,设置为真则画刷在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | -| [OH_Drawing_BrushGetColor](#oh_drawing_brushgetcolor) (const [OH_Drawing_Brush](#oh_drawing_brush) \*) | 函数用于获取画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示。 | -| [OH_Drawing_BrushSetColor](#oh_drawing_brushsetcolor) ([OH_Drawing_Brush](#oh_drawing_brush) \*, uint32_t color) | 函数用于设置画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示。 | -| [OH_Drawing_CanvasCreate](#oh_drawing_canvascreate) (void) | 函数用于创建一个画布对象。 | -| [OH_Drawing_CanvasDestroy](#oh_drawing_canvasdestroy) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 函数用于销毁画布对象并回收该对象占有的内存。 | -| [OH_Drawing_CanvasBind](#oh_drawing_canvasbind) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, [OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 函数用于将一个位图对象绑定到画布中,使得画布绘制的内容输出到位图中(即CPU渲染)。 | -| [OH_Drawing_CanvasAttachPen](#oh_drawing_canvasattachpen) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于设置画笔给画布,画布将会使用设置画笔的样式和颜色去绘制图形形状的轮廓。 | -| [OH_Drawing_CanvasDetachPen](#oh_drawing_canvasdetachpen) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 函数用于去除掉画布中的画笔,使用后画布将不去绘制图形形状的轮廓。 | -| [OH_Drawing_CanvasAttachBrush](#oh_drawing_canvasattachbrush) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, const [OH_Drawing_Brush](#oh_drawing_brush) \*) | 函数用于设置画刷给画布,画布将会使用设置的画刷样式和颜色去填充绘制的图形形状。 | -| [OH_Drawing_CanvasDetachBrush](#oh_drawing_canvasdetachbrush) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 函数用于去除掉画布中的画刷,使用后画布将不去填充图形形状。 | -| [OH_Drawing_CanvasSave](#oh_drawing_canvassave) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 函数用于保存当前画布的状态(画布矩阵)到一个栈顶。 | -| [OH_Drawing_CanvasRestore](#oh_drawing_canvasrestore) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 函数用于恢复保存在栈顶的画布状态(画布矩阵)。 | -| [OH_Drawing_CanvasDrawLine](#oh_drawing_canvasdrawline) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, float x1, float y1, float x2, float y2) | 函数用于画一条直线段。 | -| [OH_Drawing_CanvasDrawPath](#oh_drawing_canvasdrawpath) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, const [OH_Drawing_Path](#oh_drawing_path) \*) | 函数用于画一个自定义路径。 | -| [OH_Drawing_CanvasClear](#oh_drawing_canvasclear) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, uint32_t color) | 函数用于使用指定颜色去清空画布。 | -| [OH_Drawing_ColorSetArgb](#oh_drawing_colorsetargb) (uint32_t alpha, uint32_t red, uint32_t green, uint32_t blue) | 函数用于将4个变量(分别描述透明度、红色、绿色和蓝色)转化为一个描述颜色的32位(ARGB)变量。 | -| [OH_Drawing_CreateFontCollection](#oh_drawing_createfontcollection) (void) | 创建OH_Drawing_FontCollection。 | -| [OH_Drawing_DestroyFontCollection](#oh_drawing_destroyfontcollection) ([OH_Drawing_FontCollection](#oh_drawing_fontcollection) \*) | 释放被OH_Drawing_FontCollection对象占据的内存。 | -| [OH_Drawing_PathCreate](#oh_drawing_pathcreate) (void) | 函数用于创建一个路径对象。 | -| [OH_Drawing_PathDestroy](#oh_drawing_pathdestroy) ([OH_Drawing_Path](#oh_drawing_path) \*) | 函数用于销毁路径对象并回收该对象占有的内存。 | -| [OH_Drawing_PathMoveTo](#oh_drawing_pathmoveto) ([OH_Drawing_Path](#oh_drawing_path) \*, float x, float y) | 函数用于设置自定义路径的起始点位置。 | -| [OH_Drawing_PathLineTo](#oh_drawing_pathlineto) ([OH_Drawing_Path](#oh_drawing_path) \*, float x, float y) | 函数用于添加一条从路径的最后点位置到目标点位置的线段。 | -| [OH_Drawing_PathArcTo](#oh_drawing_patharcto) ([OH_Drawing_Path](#oh_drawing_path) \*, float x1, float y1, float x2, float y2, float startDeg, float sweepDeg) | 函数用于给路径添加一段弧线,绘制弧线的方式为角度弧,该方式首先会指定一个矩形边框,矩形边框会包裹椭圆, 然后会指定一个起始角度和扫描度数,从起始角度扫描截取的椭圆周长一部分即为绘制的弧线。另外会默认添加一条从路径的最后点位置到弧线起始点位置的线段。 | -| [OH_Drawing_PathQuadTo](#oh_drawing_pathquadto) ([OH_Drawing_Path](#oh_drawing_path) \*, float ctrlX, float ctrlY, float endX, float endY) | 函数用于添加一条从路径最后点位置到目标点位置的二阶贝塞尔圆滑曲线。 | -| [OH_Drawing_PathCubicTo](#oh_drawing_pathcubicto) ([OH_Drawing_Path](#oh_drawing_path) \*, float ctrlX1, float ctrlY1, float ctrlX2, float ctrlY2, float endX, float endY) | 函数用于添加一条从路径最后点位置到目标点位置的三阶贝塞尔圆滑曲线。 | -| [OH_Drawing_PathClose](#oh_drawing_pathclose) ([OH_Drawing_Path](#oh_drawing_path) \*) | 函数用于闭合路径,会添加一条从路径起点位置到最后点位置的线段。 | -| [OH_Drawing_PathReset](#oh_drawing_pathreset) ([OH_Drawing_Path](#oh_drawing_path) \*) | 函数用于重置自定义路径数据。 | -| [OH_Drawing_PenCreate](#oh_drawing_pencreate) (void) | 函数用于创建一个画笔对象。 | -| [OH_Drawing_PenDestroy](#oh_drawing_pendestroy) ([OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于销毁画笔对象并回收该对象占有的内存。 | -| [OH_Drawing_PenIsAntiAlias](#oh_drawing_penisantialias) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于获取画笔是否设置抗锯齿属性,如果为真则说明画笔会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | -| [OH_Drawing_PenSetAntiAlias](#oh_drawing_pensetantialias) ([OH_Drawing_Pen](#oh_drawing_pen) \*, bool) | 函数用于设置画笔的抗锯齿属性,设置为真则画笔在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | -| [OH_Drawing_PenGetColor](#oh_drawing_pengetcolor) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于获取画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示。 | -| [OH_Drawing_PenSetColor](#oh_drawing_pensetcolor) ([OH_Drawing_Pen](#oh_drawing_pen) \*, uint32_t color) | 函数用于设置画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示。 | -| [OH_Drawing_PenGetWidth](#oh_drawing_pengetwidth) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于获取画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度。 | -| [OH_Drawing_PenSetWidth](#oh_drawing_pensetwidth) ([OH_Drawing_Pen](#oh_drawing_pen) \*, float width) | 函数用于设置画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度。 | -| [OH_Drawing_PenGetMiterLimit](#oh_drawing_pengetmiterlimit) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于获取折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角。 | -| [OH_Drawing_PenSetMiterLimit](#oh_drawing_pensetmiterlimit) ([OH_Drawing_Pen](#oh_drawing_pen) \*, float miter) | 函数用于设置折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角。 | -| [OH_Drawing_PenGetCap](#oh_drawing_pengetcap) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于获取画笔笔帽的样式。 | -| [OH_Drawing_PenSetCap](#oh_drawing_pensetcap) ([OH_Drawing_Pen](#oh_drawing_pen) \*, [OH_Drawing_PenLineCapStyle](#oh_drawing_penlinecapstyle)) | 函数用于设置画笔笔帽样式。 | -| [OH_Drawing_PenGetJoin](#oh_drawing_pengetjoin) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 函数用于获取画笔绘制折线转角的样式。 | -| [OH_Drawing_PenSetJoin](#oh_drawing_pensetjoin) ([OH_Drawing_Pen](#oh_drawing_pen) \*, [OH_Drawing_PenLineJoinStyle](#oh_drawing_penlinejoinstyle)) | 函数用于设置画笔绘制转角的样式。 | -| [OH_Drawing_CreateTypographyStyle](#oh_drawing_createtypographystyle) (void) | 创建OH_Drawing_TypographyStyle。 | -| [OH_Drawing_DestroyTypographyStyle](#oh_drawing_destroytypographystyle) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*) | 释放被OH_Drawing_TypographyStyle对象占据的内存。 | -| [OH_Drawing_SetTypographyTextDirection](#oh_drawing_settypographytextdirection) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, int) | 设置文本方向。 | -| [OH_Drawing_SetTypographyTextAlign](#oh_drawing_settypographytextalign) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, int) | 设置文本对齐方式。 | -| [OH_Drawing_SetTypographyTextMaxLines](#oh_drawing_settypographytextmaxlines) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, int) | 设置文本最大行数。 | -| [OH_Drawing_CreateTextStyle](#oh_drawing_createtextstyle) (void) | 创建OH_Drawing_TextStyle。 | -| [OH_Drawing_DestroyTextStyle](#oh_drawing_destroytextstyle) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*) | 释放被OH_Drawing_TextStyle对象占据的内存。 | -| [OH_Drawing_SetTextStyleColor](#oh_drawing_settextstylecolor) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, uint32_t) | 设置文本颜色。 | -| [OH_Drawing_SetTextStyleFontSize](#oh_drawing_settextstylefontsize) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, double) | 设置字号。 | -| [OH_Drawing_SetTextStyleFontWeight](#oh_drawing_settextstylefontweight) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置字重。 | -| [OH_Drawing_SetTextStyleBaseLine](#oh_drawing_settextstylebaseline) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置字体基线位置。 | -| [OH_Drawing_SetTextStyleDecoration](#oh_drawing_settextstyledecoration) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置装饰。 | -| [OH_Drawing_SetTextStyleDecorationColor](#oh_drawing_settextstyledecorationcolor) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, uint32_t) | 设置装饰颜色。 | -| [OH_Drawing_SetTextStyleFontHeight](#oh_drawing_settextstylefontheight) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, double) | 设置字体高度。 | -| [OH_Drawing_SetTextStyleFontFamilies](#oh_drawing_settextstylefontfamilies) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int, const char \*fontFamilies[]) | 设置字体类型。 | -| [OH_Drawing_SetTextStyleFontStyle](#oh_drawing_settextstylefontstyle) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置字体风格。 | -| [OH_Drawing_SetTextStyleLocale](#oh_drawing_settextstylelocale) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, const char \*) | 设置语言区域。 | -| [OH_Drawing_CreateTypographyHandler](#oh_drawing_createtypographyhandler) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, [OH_Drawing_FontCollection](#oh_drawing_fontcollection) \*) | 创建指向OH_Drawing_TypographyCreate对象的指针。 | -| [OH_Drawing_DestroyTypographyHandler](#oh_drawing_destroytypographyhandler) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*) | 释放被OH_Drawing_TypographyCreate对象占据的内存。 | -| [OH_Drawing_TypographyHandlerPushTextStyle](#oh_drawing_typographyhandlerpushtextstyle) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*, [OH_Drawing_TextStyle](#oh_drawing_textstyle) \*) | 设置排版风格。 | -| [OH_Drawing_TypographyHandlerAddText](#oh_drawing_typographyhandleraddtext) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*, const char \*) | 设置文本内容。 | -| [OH_Drawing_TypographyHandlerPopTextStyle](#oh_drawing_typographyhandlerpoptextstyle) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*) | 排版弹出。 | -| [OH_Drawing_CreateTypography](#oh_drawing_createtypography) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*) | 创建OH_Drawing_Typography。 | -| [OH_Drawing_DestroyTypography](#oh_drawing_destroytypography) ([OH_Drawing_Typography](#oh_drawing_typography) \*) | 释放OH_Drawing_Typography对象占据的内存。 | -| [OH_Drawing_TypographyLayout](#oh_drawing_typographylayout) ([OH_Drawing_Typography](#oh_drawing_typography) \*, double) | 排版布局。 | -| [OH_Drawing_TypographyPaint](#oh_drawing_typographypaint) ([OH_Drawing_Typography](#oh_drawing_typography) \*, [OH_Drawing_Canvas](#oh_drawing_canvas) \*, double, double) | 显示文本。 | - - -## 详细描述 +| 函数名称 | 描述 | +| ------------------------------------------------------------ | ------------------------------------------------------------ | +| [OH_Drawing_BitmapCreate](#oh_drawing_bitmapcreate) (void) | 创建一个位图对象。 | +| [OH_Drawing_BitmapDestroy](#oh_drawing_bitmapdestroy) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 销毁位图对象并回收该对象占有内存。 | +| [OH_Drawing_BitmapBuild](#oh_drawing_bitmapbuild) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*, const uint32_t width, const uint32_t height, const [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) \*) | 初始化位图对象的宽度和高度,并且为该位图设置像素格式。 | +| [OH_Drawing_BitmapGetWidth](#oh_drawing_bitmapgetwidth) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 获取指定位图的宽度。 | +| [OH_Drawing_BitmapGetHeight](#oh_drawing_bitmapgetheight) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 获取指定位图的高度。 | +| [OH_Drawing_BitmapGetPixels](#oh_drawing_bitmapgetpixels) ([OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 获取指定位图的像素地址,可以通过像素地址获取到位图的像素数据。 | +| [OH_Drawing_BrushCreate](#oh_drawing_brushcreate) (void) | 创建一个画刷对象。 | +| [OH_Drawing_BrushDestroy](#oh_drawing_brushdestroy) ([OH_Drawing_Brush](#oh_drawing_brush) \*) | 销毁画刷对象并回收该对象占有的内存。 | +| [OH_Drawing_BrushIsAntiAlias](#oh_drawing_brushisantialias) (const [OH_Drawing_Brush](#oh_drawing_brush) \*) | 获取画刷是否设置抗锯齿属性,如果为真则说明画刷会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | +| [OH_Drawing_BrushSetAntiAlias](#oh_drawing_brushsetantialias) ([OH_Drawing_Brush](#oh_drawing_brush) \*, bool) | 设置画刷的抗锯齿属性,设置为真则画刷在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | +| [OH_Drawing_BrushGetColor](#oh_drawing_brushgetcolor) (const [OH_Drawing_Brush](#oh_drawing_brush) \*) | 获取画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示。 | +| [OH_Drawing_BrushSetColor](#oh_drawing_brushsetcolor) ([OH_Drawing_Brush](#oh_drawing_brush) \*, uint32_t color) | 设置画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示。 | +| [OH_Drawing_CanvasCreate](#oh_drawing_canvascreate) (void) | 创建一个画布对象。 | +| [OH_Drawing_CanvasDestroy](#oh_drawing_canvasdestroy) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 销毁画布对象并回收该对象占有的内存。 | +| [OH_Drawing_CanvasBind](#oh_drawing_canvasbind) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, [OH_Drawing_Bitmap](#oh_drawing_bitmap) \*) | 将一个位图对象绑定到画布中,使得画布绘制的内容输出到位图中(即CPU渲染)。 | +| [OH_Drawing_CanvasAttachPen](#oh_drawing_canvasattachpen) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 设置画笔给画布,画布将会使用设置画笔的样式和颜色去绘制图形形状的轮廓。 | +| [OH_Drawing_CanvasDetachPen](#oh_drawing_canvasdetachpen) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 去除掉画布中的画笔,使用后画布将不去绘制图形形状的轮廓。 | +| [OH_Drawing_CanvasAttachBrush](#oh_drawing_canvasattachbrush) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, const [OH_Drawing_Brush](#oh_drawing_brush) \*) | 设置画刷给画布,画布将会使用设置的画刷样式和颜色去填充绘制的图形形状。 | +| [OH_Drawing_CanvasDetachBrush](#oh_drawing_canvasdetachbrush) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 去除掉画布中的画刷,使用后画布将不去填充图形形状。 | +| [OH_Drawing_CanvasSave](#oh_drawing_canvassave) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 保存当前画布的状态(画布矩阵)到一个栈顶。 | +| [OH_Drawing_CanvasRestore](#oh_drawing_canvasrestore) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*) | 恢复保存在栈顶的画布状态(画布矩阵)。 | +| [OH_Drawing_CanvasDrawLine](#oh_drawing_canvasdrawline) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, float x1, float y1, float x2, float y2) | 画一条直线段。 | +| [OH_Drawing_CanvasDrawPath](#oh_drawing_canvasdrawpath) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, const [OH_Drawing_Path](#oh_drawing_path) \*) | 画一个自定义路径。 | +| [OH_Drawing_CanvasClear](#oh_drawing_canvasclear) ([OH_Drawing_Canvas](#oh_drawing_canvas) \*, uint32_t color) | 使用指定颜色去清空画布。 | +| [OH_Drawing_ColorSetArgb](#oh_drawing_colorsetargb) (uint32_t alpha, uint32_t red, uint32_t green, uint32_t blue) | 将4个变量(分别描述透明度、红色、绿色和蓝色)转化为一个描述颜色的32位(ARGB)变量。 | +| [OH_Drawing_CreateFontCollection](#oh_drawing_createfontcollection) (void) | 创建OH_Drawing_FontCollection。 | +| [OH_Drawing_DestroyFontCollection](#oh_drawing_destroyfontcollection) ([OH_Drawing_FontCollection](#oh_drawing_fontcollection) \*) | 释放被OH_Drawing_FontCollection对象占据的内存。 | +| [OH_Drawing_PathCreate](#oh_drawing_pathcreate) (void) | 创建一个路径对象。 | +| [OH_Drawing_PathDestroy](#oh_drawing_pathdestroy) ([OH_Drawing_Path](#oh_drawing_path) \*) | 销毁路径对象并回收该对象占有的内存。 | +| [OH_Drawing_PathMoveTo](#oh_drawing_pathmoveto) ([OH_Drawing_Path](#oh_drawing_path) \*, float x, float y) | 设置自定义路径的起始点位置。 | +| [OH_Drawing_PathLineTo](#oh_drawing_pathlineto) ([OH_Drawing_Path](#oh_drawing_path) \*, float x, float y) | 添加一条从路径的最后点位置到目标点位置的线段。 | +| [OH_Drawing_PathArcTo](#oh_drawing_patharcto) ([OH_Drawing_Path](#oh_drawing_path) \*, float x1, float y1, float x2, float y2, float startDeg, float sweepDeg) | 给路径添加一段弧线,绘制弧线的方式为角度弧,该方式首先会指定一个矩形边框,矩形边框会包裹椭圆, 然后会指定一个起始角度和扫描度数,从起始角度扫描截取的椭圆周长一部分即为绘制的弧线。另外会默认添加一条从路径的最后点位置到弧线起始点位置的线段。 | +| [OH_Drawing_PathQuadTo](#oh_drawing_pathquadto) ([OH_Drawing_Path](#oh_drawing_path) \*, float ctrlX, float ctrlY, float endX, float endY) | 添加一条从路径最后点位置到目标点位置的二阶贝塞尔圆滑曲线。 | +| [OH_Drawing_PathCubicTo](#oh_drawing_pathcubicto) ([OH_Drawing_Path](#oh_drawing_path) \*, float ctrlX1, float ctrlY1, float ctrlX2, float ctrlY2, float endX, float endY) | 添加一条从路径最后点位置到目标点位置的三阶贝塞尔圆滑曲线。 | +| [OH_Drawing_PathClose](#oh_drawing_pathclose) ([OH_Drawing_Path](#oh_drawing_path) \*) | 闭合路径,会添加一条从路径起点位置到最后点位置的线段。 | +| [OH_Drawing_PathReset](#oh_drawing_pathreset) ([OH_Drawing_Path](#oh_drawing_path) \*) | 重置自定义路径数据。 | +| [OH_Drawing_PenCreate](#oh_drawing_pencreate) (void) | 创建一个画笔对象。 | +| [OH_Drawing_PenDestroy](#oh_drawing_pendestroy) ([OH_Drawing_Pen](#oh_drawing_pen) \*) | 销毁画笔对象并回收该对象占有的内存。 | +| [OH_Drawing_PenIsAntiAlias](#oh_drawing_penisantialias) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 获取画笔是否设置抗锯齿属性,如果为真则说明画笔会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | +| [OH_Drawing_PenSetAntiAlias](#oh_drawing_pensetantialias) ([OH_Drawing_Pen](#oh_drawing_pen) \*, bool) | 设置画笔的抗锯齿属性,设置为真则画笔在绘制图形时会对图形的边缘像素进行半透明的模糊处理。 | +| [OH_Drawing_PenGetColor](#oh_drawing_pengetcolor) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 获取画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示。 | +| [OH_Drawing_PenSetColor](#oh_drawing_pensetcolor) ([OH_Drawing_Pen](#oh_drawing_pen) \*, uint32_t color) | 设置画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示。 | +| [OH_Drawing_PenGetWidth](#oh_drawing_pengetwidth) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 获取画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度。 | +| [OH_Drawing_PenSetWidth](#oh_drawing_pensetwidth) ([OH_Drawing_Pen](#oh_drawing_pen) \*, float width) | 设置画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度。 | +| [OH_Drawing_PenGetMiterLimit](#oh_drawing_pengetmiterlimit) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 获取折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角。 | +| [OH_Drawing_PenSetMiterLimit](#oh_drawing_pensetmiterlimit) ([OH_Drawing_Pen](#oh_drawing_pen) \*, float miter) | 设置折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角。 | +| [OH_Drawing_PenGetCap](#oh_drawing_pengetcap) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 获取画笔笔帽的样式。 | +| [OH_Drawing_PenSetCap](#oh_drawing_pensetcap) ([OH_Drawing_Pen](#oh_drawing_pen) \*, [OH_Drawing_PenLineCapStyle](#oh_drawing_penlinecapstyle)) | 设置画笔笔帽样式。 | +| [OH_Drawing_PenGetJoin](#oh_drawing_pengetjoin) (const [OH_Drawing_Pen](#oh_drawing_pen) \*) | 获取画笔绘制折线转角的样式。 | +| [OH_Drawing_PenSetJoin](#oh_drawing_pensetjoin) ([OH_Drawing_Pen](#oh_drawing_pen) \*, [OH_Drawing_PenLineJoinStyle](#oh_drawing_penlinejoinstyle)) | 设置画笔绘制转角的样式。 | +| [OH_Drawing_CreateTypographyStyle](#oh_drawing_createtypographystyle) (void) | 创建OH_Drawing_TypographyStyle。 | +| [OH_Drawing_DestroyTypographyStyle](#oh_drawing_destroytypographystyle) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*) | 释放被OH_Drawing_TypographyStyle对象占据的内存。 | +| [OH_Drawing_SetTypographyTextDirection](#oh_drawing_settypographytextdirection) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, int) | 设置文本方向。 | +| [OH_Drawing_SetTypographyTextAlign](#oh_drawing_settypographytextalign) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, int) | 设置文本对齐方式。 | +| [OH_Drawing_SetTypographyTextMaxLines](#oh_drawing_settypographytextmaxlines) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, int) | 设置文本最大行数。 | +| [OH_Drawing_CreateTextStyle](#oh_drawing_createtextstyle) (void) | 创建OH_Drawing_TextStyle。 | +| [OH_Drawing_DestroyTextStyle](#oh_drawing_destroytextstyle) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*) | 释放被OH_Drawing_TextStyle对象占据的内存。 | +| [OH_Drawing_SetTextStyleColor](#oh_drawing_settextstylecolor) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, uint32_t) | 设置文本颜色。 | +| [OH_Drawing_SetTextStyleFontSize](#oh_drawing_settextstylefontsize) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, double) | 设置字号。 | +| [OH_Drawing_SetTextStyleFontWeight](#oh_drawing_settextstylefontweight) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置字重。 | +| [OH_Drawing_SetTextStyleBaseLine](#oh_drawing_settextstylebaseline) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置字体基线位置。 | +| [OH_Drawing_SetTextStyleDecoration](#oh_drawing_settextstyledecoration) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置装饰。 | +| [OH_Drawing_SetTextStyleDecorationColor](#oh_drawing_settextstyledecorationcolor) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, uint32_t) | 设置装饰颜色。 | +| [OH_Drawing_SetTextStyleFontHeight](#oh_drawing_settextstylefontheight) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, double) | 设置字体高度。 | +| [OH_Drawing_SetTextStyleFontFamilies](#oh_drawing_settextstylefontfamilies) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int, const char \*fontFamilies[]) | 设置字体类型。 | +| [OH_Drawing_SetTextStyleFontStyle](#oh_drawing_settextstylefontstyle) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, int) | 设置字体风格。 | +| [OH_Drawing_SetTextStyleLocale](#oh_drawing_settextstylelocale) ([OH_Drawing_TextStyle](#oh_drawing_textstyle) \*, const char \*) | 设置语言区域。 | +| [OH_Drawing_CreateTypographyHandler](#oh_drawing_createtypographyhandler) ([OH_Drawing_TypographyStyle](#oh_drawing_typographystyle) \*, [OH_Drawing_FontCollection](#oh_drawing_fontcollection) \*) | 创建指向OH_Drawing_TypographyCreate对象的指针。 | +| [OH_Drawing_DestroyTypographyHandler](#oh_drawing_destroytypographyhandler) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*) | 释放被OH_Drawing_TypographyCreate对象占据的内存。 | +| [OH_Drawing_TypographyHandlerPushTextStyle](#oh_drawing_typographyhandlerpushtextstyle) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*, [OH_Drawing_TextStyle](#oh_drawing_textstyle) \*) | 设置排版风格。 | +| [OH_Drawing_TypographyHandlerAddText](#oh_drawing_typographyhandleraddtext) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*, const char \*) | 设置文本内容。 | +| [OH_Drawing_TypographyHandlerPopTextStyle](#oh_drawing_typographyhandlerpoptextstyle) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*) | 排版弹出。 | +| [OH_Drawing_CreateTypography](#oh_drawing_createtypography) ([OH_Drawing_TypographyCreate](#oh_drawing_typographycreate) \*) | 创建OH_Drawing_Typography。 | +| [OH_Drawing_DestroyTypography](#oh_drawing_destroytypography) ([OH_Drawing_Typography](#oh_drawing_typography) \*) | 释放OH_Drawing_Typography对象占据的内存。 | +| [OH_Drawing_TypographyLayout](#oh_drawing_typographylayout) ([OH_Drawing_Typography](#oh_drawing_typography) \*, double) | 排版布局。 | +| [OH_Drawing_TypographyPaint](#oh_drawing_typographypaint) ([OH_Drawing_Typography](#oh_drawing_typography) \*, [OH_Drawing_Canvas](#oh_drawing_canvas) \*, double, double) | 显示文本。 | +| [OH_Drawing_TypographyGetMaxWidth](#oh_drawing_typographygetmaxwidth) ([OH_Drawing_Typography](#oh_drawing_typography) *) | 获取最大宽度。 | +| [OH_Drawing_TypographyGetHeight](#oh_drawing_typographygetheight) ([OH_Drawing_Typography](#oh_drawing_typography) *) | 获取高度。 | +| [OH_Drawing_TypographyGetLongestLine](#oh_drawing_typographygetlongestline) ([OH_Drawing_Typography](#oh_drawing_typography) *) | 获取最长行。 | +| [OH_Drawing_TypographyGetMinIntrinsicWidth](#oh_drawing_typographygetminintrinsicwidth) ([OH_Drawing_Typography](#oh_drawing_typography) *) | 获取最小固有宽度。 | +| [OH_Drawing_TypographyGetMaxIntrinsicWidth](#oh_drawing_typographygetmaxintrinsicwidth) ([OH_Drawing_Typography](#oh_drawing_typography) *) | 获取最大固有宽度。 | +| [OH_Drawing_TypographyGetAlphabeticBaseline](#oh_drawing_typographygetalphabeticbaseline)([OH_Drawing_Typography](#oh_drawing_typography) *) | 获取字母文字基线。 | +| [OH_Drawing_TypographyGetIdeographicBaseline](#oh_drawing_typographygetideographicbaseline) ([OH_Drawing_Typography](#oh_drawing_typography) *) | 获取表意文字基线。 | ## 类型定义说明 @@ -235,7 +239,7 @@ typedef struct OH_Drawing_Path OH_Drawing_Path **描述:** -OH_Drawing_Path定义为路径,路径用于自定义各种形状 +OH_Drawing_Path定义为路径,路径用于自定义设置各种形状 **起始版本:** @@ -336,11 +340,11 @@ enum OH_Drawing_AlphaFormat OH_Drawing_AlphaFormat用于描述位图像素的透明度分量 -| 枚举值 | 描述 | -| -------- | -------- | -| ALPHA_FORMAT_UNKNOWN | 未知格式 | -| ALPHA_FORMAT_OPAQUE | 位图无透明度 | -| ALPHA_FORMAT_PREMUL | 每个像素的颜色组件由透明度分量预先乘以 | +| 枚举值 | 描述 | +| --------------------- | ---------------------------------------- | +| ALPHA_FORMAT_UNKNOWN | 未知格式 | +| ALPHA_FORMAT_OPAQUE | 位图无透明度 | +| ALPHA_FORMAT_PREMUL | 每个像素的颜色组件由透明度分量预先乘以 | | ALPHA_FORMAT_UNPREMUL | 每个像素的颜色组件未由透明度分量预先乘以 | **起始版本:** @@ -359,11 +363,11 @@ enum OH_Drawing_ColorFormat OH_Drawing_ColorFormat用于描述位图像素的存储格式 -| 枚举值 | 描述 | -| -------- | -------- | -| COLOR_FORMAT_UNKNOWN | 未知格式. | -| COLOR_FORMAT_ALPHA_8 | 每个像素用一个8位的量表示,8个位比特位表示透明度 | -| COLOR_FORMAT_RGB_565 | 每个像素用一个16位的量表示,高位到低位依次是5个比特位表示红,6个比特位表示绿,5个比特位表示蓝 | +| 枚举值 | 描述 | +| ---------------------- | ------------------------------------------------------------ | +| COLOR_FORMAT_UNKNOWN | 未知格式. | +| COLOR_FORMAT_ALPHA_8 | 每个像素用一个8位的量表示,8个位比特位表示透明度 | +| COLOR_FORMAT_RGB_565 | 每个像素用一个16位的量表示,高位到低位依次是5个比特位表示红,6个比特位表示绿,5个比特位表示蓝 | | COLOR_FORMAT_ARGB_4444 | 每个像素用一个16位的量表示,高位到低位依次是4个比特位表示透明度,4个比特位表示红,4个比特位表示绿,4个比特位表示蓝 | | COLOR_FORMAT_RGBA_8888 | 每个像素用一个32位的量表示,高位到低位依次是8个比特位表示透明度,8个比特位表示红,8个比特位表示绿,8个比特位表示蓝 | | COLOR_FORMAT_BGRA_8888 | 每个像素用一个32位的量表示,高位到低位依次是8个比特位表示蓝,8个比特位表示绿,8个比特位表示红,8个比特位表示透明度 | @@ -384,10 +388,10 @@ enum OH_Drawing_FontStyle 区分字体是否为斜体 -| 枚举值 | 描述 | -| -------- | -------- | +| 枚举值 | 描述 | +| ----------------- | ------ | | FONT_STYLE_NORMAL | 非斜体 | -| FONT_STYLE_ITALIC | 斜体 | +| FONT_STYLE_ITALIC | 斜体 | **起始版本:** @@ -405,17 +409,17 @@ enum OH_Drawing_FontWeight 字重 -| 枚举值 | 描述 | -| -------- | -------- | -| FONT_WEIGHT_100 | 字重为thin | -| FONT_WEIGHT_200 | 字重为extra-light | -| FONT_WEIGHT_300 | 字重为light | +| 枚举值 | 描述 | +| --------------- | -------------------- | +| FONT_WEIGHT_100 | 字重为thin | +| FONT_WEIGHT_200 | 字重为extra-light | +| FONT_WEIGHT_300 | 字重为light | | FONT_WEIGHT_400 | 字重为normal/regular | -| FONT_WEIGHT_500 | 字重为medium | -| FONT_WEIGHT_600 | 字重为semi-bold | -| FONT_WEIGHT_700 | 字重为bold | -| FONT_WEIGHT_800 | 字重为extra-bold | -| FONT_WEIGHT_900 | 字重为black | +| FONT_WEIGHT_500 | 字重为medium | +| FONT_WEIGHT_600 | 字重为semi-bold | +| FONT_WEIGHT_700 | 字重为bold | +| FONT_WEIGHT_800 | 字重为extra-bold | +| FONT_WEIGHT_900 | 字重为black | **起始版本:** @@ -433,11 +437,11 @@ enum OH_Drawing_PenLineCapStyle 枚举集合定义了画笔笔帽的样式,即画笔在绘制线段时,在线段头尾端点的样式 -| 枚举值 | 描述 | -| -------- | -------- | -| LINE_FLAT_CAP | 没有笔帽样式,线条头尾端点处横切 | +| 枚举值 | 描述 | +| --------------- | ------------------------------------------------------------ | +| LINE_FLAT_CAP | 没有笔帽样式,线条头尾端点处横切 | | LINE_SQUARE_CAP | 笔帽的样式为方框,线条的头尾端点处多出一个方框,方框宽度和线段一样宽,高度时线段厚度的一半 | -| LINE_ROUND_CAP | 笔帽的样式为圆弧,线条的头尾端点处多出一个半圆弧,半圆的直径与线段厚度一致 | +| LINE_ROUND_CAP | 笔帽的样式为圆弧,线条的头尾端点处多出一个半圆弧,半圆的直径与线段厚度一致 | **起始版本:** @@ -455,11 +459,11 @@ enum OH_Drawing_PenLineJoinStyle 枚举集合定义了线条转角的样式,即画笔在绘制折线段时,在折线转角处的样式 -| 枚举值 | 描述 | -| -------- | -------- | +| 枚举值 | 描述 | +| --------------- | ------------------------------------------------------------ | | LINE_MITER_JOIN | 转角类型为尖角,如果折线角度比较小,则尖角会很长,需要使用限制值(miter limit)进行限制 | -| LINE_ROUND_JOIN | 转角类型为圆头 | -| LINE_BEVEL_JOIN | 转角类型为平头 | +| LINE_ROUND_JOIN | 转角类型为圆头 | +| LINE_BEVEL_JOIN | 转角类型为平头 | **起始版本:** @@ -477,14 +481,14 @@ enum OH_Drawing_TextAlign 文字对齐方式 -| 枚举值 | 描述 | -| -------- | -------- | -| TEXT_ALIGN_LEFT | 左对齐 | -| TEXT_ALIGN_RIGHT | 右对齐 | -| TEXT_ALIGN_CENTER | 居中对齐 | +| 枚举值 | 描述 | +| ------------------ | ------------------------------------------------------------ | +| TEXT_ALIGN_LEFT | 左对齐 | +| TEXT_ALIGN_RIGHT | 右对齐 | +| TEXT_ALIGN_CENTER | 居中对齐 | | TEXT_ALIGN_JUSTIFY | 两端对齐,即紧靠左和右边缘,中间单词空隙由空格填充 最后一行除外 | -| TEXT_ALIGN_START | 当OH_Drawing_TextDirection是TEXT_DIRECTION_LTR时, TEXT_ALIGN_START和TEXT_ALIGN_LEFT相同; 类似地,当OH_Drawing_TextDirection是TEXT_DIRECTION_RTL时, TEXT_ALIGN_START和TEXT_ALIGN_RIGHT相同。 | -| TEXT_ALIGN_END | 当OH_Drawing_TextDirection是TEXT_DIRECTION_LTR时, TEXT_ALIGN_END和TEXT_ALIGN_RIGHT相同; 类似地,当OH_Drawing_TextDirection是TEXT_DIRECTION_RTL时, TEXT_ALIGN_END和TEXT_ALIGN_LEFT相同。 | +| TEXT_ALIGN_START | 当OH_Drawing_TextDirection是TEXT_DIRECTION_LTR时, TEXT_ALIGN_START和TEXT_ALIGN_LEFT相同; 类似地,当OH_Drawing_TextDirection是TEXT_DIRECTION_RTL时, TEXT_ALIGN_START和TEXT_ALIGN_RIGHT相同。 | +| TEXT_ALIGN_END | 当OH_Drawing_TextDirection是TEXT_DIRECTION_LTR时, TEXT_ALIGN_END和TEXT_ALIGN_RIGHT相同; 类似地,当OH_Drawing_TextDirection是TEXT_DIRECTION_RTL时, TEXT_ALIGN_END和TEXT_ALIGN_LEFT相同。 | **起始版本:** @@ -502,10 +506,10 @@ enum OH_Drawing_TextBaseline 基线位置 -| 枚举值 | 描述 | -| -------- | -------- | -| TEXT_BASELINE_ALPHABETIC | 用于表音文字,基线在中间偏下的位置 | -| TEXT_BASELINE_IDEOGRAPHIC | 用于表意文字,基线位于底部 | +| 枚举值 | 描述 | +| ------------------------- | ---------------------------------- | +| TEXT_BASELINE_ALPHABETIC | 用于表音文字,基线在中间偏下的位置 | +| TEXT_BASELINE_IDEOGRAPHIC | 用于表意文字,基线位于底部 | **起始版本:** @@ -523,11 +527,11 @@ enum OH_Drawing_TextDecoration 文本装饰 -| 枚举值 | 描述 | -| -------- | -------- | -| TEXT_DECORATION_NONE | 无装饰 | -| TEXT_DECORATION_UNDERLINE | 下划线 | -| TEXT_DECORATION_OVERLINE | 上划线 | +| 枚举值 | 描述 | +| ---------------------------- | ------ | +| TEXT_DECORATION_NONE | 无装饰 | +| TEXT_DECORATION_UNDERLINE | 下划线 | +| TEXT_DECORATION_OVERLINE | 上划线 | | TEXT_DECORATION_LINE_THROUGH | 删除线 | **起始版本:** @@ -546,8 +550,8 @@ enum OH_Drawing_TextDirection 文字方向 -| 枚举值 | 描述 | -| -------- | -------- | +| 枚举值 | 描述 | +| ------------------ | -------------- | | TEXT_DIRECTION_RTL | 方向:从右到左 | | TEXT_DIRECTION_LTR | 方向:从左到右 | @@ -568,17 +572,17 @@ void OH_Drawing_BitmapBuild (OH_Drawing_Bitmap * , const uint32_t width, const u **描述:** -函数用于初始化位图对象的宽度和高度,并且为该位图设置像素格式 +设置初始化位图对象的宽度和高度,并且为该位图设置像素格式 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Bitmap | 参数是一个指向位图对象的指针 | -| width | 参数是位图要初始化设置的宽度 | -| height | 参数是位图要初始化设置的高度 | +| Name | 描述 | +| ------------------------------------------------------------ | ------------------------------------------------------------ | +| OH_Drawing_Bitmap | 参数是一个指向位图对象的指针 | +| width | 参数是位图要初始化设置的宽度 | +| height | 参数是位图要初始化设置的高度 | | [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) | 参数是位图要初始化设置的像素格式,包括像素的颜色类型和透明度类型 | **起始版本:** @@ -595,7 +599,7 @@ OH_Drawing_Bitmap* OH_Drawing_BitmapCreate (void ) **描述:** -函数用于创建一个位图对象。 +创建一个位图对象。 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @@ -617,14 +621,14 @@ void OH_Drawing_BitmapDestroy (OH_Drawing_Bitmap * ) **描述:** -函数用于销毁位图对象并回收该对象占有内存。 +销毁位图对象并回收该对象占有内存。 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Bitmap | 参数是一个指向位图对象的指针 | **起始版本:** @@ -641,14 +645,14 @@ uint32_t OH_Drawing_BitmapGetHeight (OH_Drawing_Bitmap * ) **描述:** -函数用于获取指定位图的高度 +获取指定位图的高度 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Bitmap | 参数是一个指向位图对象的指针 | **返回:** @@ -669,14 +673,14 @@ void* OH_Drawing_BitmapGetPixels (OH_Drawing_Bitmap * ) **描述:** -函数用于获取指定位图的像素地址,可以通过像素地址获取到位图的像素数据 +获取指定位图的像素地址,可以通过像素地址获取到位图的像素数据 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Bitmap | 参数是一个指向位图对象的指针 | **返回:** @@ -697,14 +701,14 @@ uint32_t OH_Drawing_BitmapGetWidth (OH_Drawing_Bitmap * ) **描述:** -该函数用于获取指定位图的宽度 +获取指定位图的宽度 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Bitmap | 参数是一个指向位图对象的指针 | **返回:** @@ -725,7 +729,7 @@ OH_Drawing_Brush* OH_Drawing_BrushCreate (void ) **描述:** -函数用于创建一个画刷对象 +创建一个画刷对象 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @@ -747,14 +751,14 @@ void OH_Drawing_BrushDestroy (OH_Drawing_Brush * ) **描述:** -函数用于销毁画刷对象并回收该对象占有的内存。 +销毁画刷对象并回收该对象占有的内存。 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ---------------- | ---------------------------- | | OH_Drawing_Brush | 参数是一个指向画刷对象的指针 | **起始版本:** @@ -771,14 +775,14 @@ uint32_t OH_Drawing_BrushGetColor (const OH_Drawing_Brush * ) **描述:** -函数用于获取画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示 +获取画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ---------------- | ---------------------------- | | OH_Drawing_Brush | 参数是一个指向画刷对象的指针 | **返回:** @@ -799,14 +803,14 @@ bool OH_Drawing_BrushIsAntiAlias (const OH_Drawing_Brush * ) **描述:** -函数用于获取画刷是否设置抗锯齿属性,如果为真则说明画刷会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理 +获取画刷是否设置抗锯齿属性,如果为真则说明画刷会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ---------------- | ---------------------------- | | OH_Drawing_Brush | 参数是一个指向画刷对象的指针 | **返回:** @@ -827,16 +831,16 @@ void OH_Drawing_BrushSetAntiAlias (OH_Drawing_Brush * , bool ) **描述:** -函数用于设置画刷的抗锯齿属性,设置为真则画刷在绘制图形时会对图形的边缘像素进行半透明的模糊处理 +设置画刷的抗锯齿属性,设置为真则画刷在绘制图形时会对图形的边缘像素进行半透明的模糊处理 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Brush | 参数是一个指向画刷对象的指针 | -| bool | 参数真为抗锯齿,参数假则不做抗锯齿处理 | +| Name | 描述 | +| ---------------- | -------------------------------------- | +| OH_Drawing_Brush | 参数是一个指向画刷对象的指针 | +| bool | 参数真为抗锯齿,参数假则不做抗锯齿处理 | **起始版本:** @@ -852,16 +856,16 @@ void OH_Drawing_BrushSetColor (OH_Drawing_Brush * , uint32_t color ) **描述:** -函数用于设置画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示 +设置画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Brush | 参数是一个指向画刷对象的指针 | -| color | 参数是一个描述颜色的32位(ARGB)变量 | +| Name | 描述 | +| ---------------- | ------------------------------------ | +| OH_Drawing_Brush | 参数是一个指向画刷对象的指针 | +| color | 参数是一个描述颜色的32位(ARGB)变量 | **起始版本:** @@ -877,16 +881,16 @@ void OH_Drawing_CanvasAttachBrush (OH_Drawing_Canvas * , const OH_Drawing_Brush **描述:** -函数用于设置画刷给画布,画布将会使用设置的画刷样式和颜色去填充绘制的图形形状 +设置画刷给画布,画布将会使用设置的画刷样式和颜色去填充绘制的图形形状 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | -| OH_Drawing_Brush | 参数为一个指向画刷对象的指针 | +| OH_Drawing_Brush | 参数为一个指向画刷对象的指针 | **起始版本:** @@ -902,16 +906,16 @@ void OH_Drawing_CanvasAttachPen (OH_Drawing_Canvas * , const OH_Drawing_Pen * ) **描述:** -函数用于设置画笔给画布,画布将会使用设置画笔的样式和颜色去绘制图形形状的轮廓 +设置画笔给画布,画布将会使用设置画笔的样式和颜色去绘制图形形状的轮廓 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | -| OH_Drawing_Pen | 参数为一个指向画笔对象的指针 | +| OH_Drawing_Pen | 参数为一个指向画笔对象的指针 | **起始版本:** @@ -927,14 +931,14 @@ void OH_Drawing_CanvasBind (OH_Drawing_Canvas * , OH_Drawing_Bitmap * ) **描述:** -函数用于将一个位图对象绑定到画布中,使得画布绘制的内容输出到位图中(即CPU渲染) +将一个位图对象绑定到画布中,使得画布绘制的内容输出到位图中(即CPU渲染) @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | | OH_Drawing_Bitmap | 参数为一个指向位图对象的指针 | @@ -952,16 +956,16 @@ void OH_Drawing_CanvasClear (OH_Drawing_Canvas * , uint32_t color ) **描述:** -函数用于使用指定颜色去清空画布 +使用指定颜色去清空画布 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | -| color | 参数为一个描述颜色的32位(ARGB)变量 | +| Name | 描述 | +| ----------------- | ------------------------------------ | +| OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | +| color | 参数为一个描述颜色的32位(ARGB)变量 | **起始版本:** @@ -977,7 +981,7 @@ OH_Drawing_Canvas* OH_Drawing_CanvasCreate (void ) **描述:** -函数用于创建一个画布对象 +创建一个画布对象 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @@ -999,14 +1003,14 @@ void OH_Drawing_CanvasDestroy (OH_Drawing_Canvas * ) **描述:** -函数用于销毁画布对象并回收该对象占有的内存 +销毁画布对象并回收该对象占有的内存 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数是一个指向画布对象的指针 | **起始版本:** @@ -1023,14 +1027,14 @@ void OH_Drawing_CanvasDetachBrush (OH_Drawing_Canvas * ) **描述:** -函数用于去除掉画布中的画刷,使用后画布将不去填充图形形状 +去除掉画布中的画刷,使用后画布将不去填充图形形状 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | **起始版本:** @@ -1047,14 +1051,14 @@ void OH_Drawing_CanvasDetachPen (OH_Drawing_Canvas * ) **描述:** -函数用于去除掉画布中的画笔,使用后画布将不去绘制图形形状的轮廓 +去除掉画布中的画笔,使用后画布将不去绘制图形形状的轮廓 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | **起始版本:** @@ -1071,19 +1075,19 @@ void OH_Drawing_CanvasDrawLine (OH_Drawing_Canvas * , float x1, float y1, float **描述:** -函数用于画一条直线段 +画一条直线段 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | -| x1 | 参数为线段起始点的横坐标 | -| y1 | 参数为线段起始点的纵坐标 | -| x2 | 参数为线段结束点的横坐标 | -| y2 | 参数为线段结束点的纵坐标 | +| x1 | 参数为线段起始点的横坐标 | +| y1 | 参数为线段起始点的纵坐标 | +| x2 | 参数为线段结束点的横坐标 | +| y2 | 参数为线段结束点的纵坐标 | **起始版本:** @@ -1099,16 +1103,16 @@ void OH_Drawing_CanvasDrawPath (OH_Drawing_Canvas * , const OH_Drawing_Path * ) **描述:** -函数用于画一个自定义路径 +画一个自定义路径 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | -| OH_Drawing_Path | 参数为一个指向路径对象的指针 | +| OH_Drawing_Path | 参数为一个指向路径对象的指针 | **起始版本:** @@ -1124,14 +1128,14 @@ void OH_Drawing_CanvasRestore (OH_Drawing_Canvas * ) **描述:** -函数用于恢复保存在栈顶的画布状态(画布矩阵) +恢复保存在栈顶的画布状态(画布矩阵) @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | **起始版本:** @@ -1148,14 +1152,14 @@ void OH_Drawing_CanvasSave (OH_Drawing_Canvas * ) **描述:** -函数用于保存当前画布的状态(画布矩阵)到一个栈顶 +保存当前画布的状态(画布矩阵)到一个栈顶 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----------------- | ---------------------------- | | OH_Drawing_Canvas | 参数为一个指向画布对象的指针 | **起始版本:** @@ -1172,18 +1176,18 @@ uint32_t OH_Drawing_ColorSetArgb (uint32_t alpha, uint32_t red, uint32_t green, **描述:** -函数用于将4个变量(分别描述透明度、红色、绿色和蓝色)转化为一个描述颜色的32位(ARGB)变量 +将4个变量(分别描述透明度、红色、绿色和蓝色)转化为一个描述颜色的32位(ARGB)变量 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ----- | ----------------------------------------------- | | alpha | 参数为一个描述透明度的变量, 变量范围是0x00~0xFF | -| red | 参数为一个描述红色的变量, 变量范围是0x00~0xFF | -| green | 参数为一个描述绿色的变量, 变量范围是0x00~0xFF | -| blue | 参数为一个描述蓝色的变量, 变量范围是0x00~0xFF | +| red | 参数为一个描述红色的变量, 变量范围是0x00~0xFF | +| green | 参数为一个描述绿色的变量, 变量范围是0x00~0xFF | +| blue | 参数为一个描述蓝色的变量, 变量范围是0x00~0xFF | **返回:** @@ -1253,8 +1257,8 @@ OH_Drawing_Typography* OH_Drawing_CreateTypography (OH_Drawing_TypographyCreate **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------------- | ----------------------------------------- | | OH_Drawing_TypographyCreate | 指向OH_Drawing_TypographyCreate对象的指针 | **返回:** @@ -1281,10 +1285,10 @@ OH_Drawing_TypographyCreate* OH_Drawing_CreateTypographyHandler (OH_Drawing_Typo **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------------- | ------------------------------------ | | OH_Drawing_TypographyStyle | 指向OH_Drawing_TypographyStyle的指针 | -| OH_Drawing_FontCollection | 指向OH_Drawing_FontCollection的指针 | +| OH_Drawing_FontCollection | 指向OH_Drawing_FontCollection的指针 | **返回:** @@ -1332,8 +1336,8 @@ void OH_Drawing_DestroyFontCollection (OH_Drawing_FontCollection * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| ------------------------- | --------------------------------------- | | OH_Drawing_FontCollection | 指向OH_Drawing_FontCollection对象的指针 | **起始版本:** @@ -1356,8 +1360,8 @@ void OH_Drawing_DestroyTextStyle (OH_Drawing_TextStyle * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | **起始版本:** @@ -1380,8 +1384,8 @@ void OH_Drawing_DestroyTypography (OH_Drawing_Typography * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------- | ----------------------------------- | | OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | **起始版本:** @@ -1404,8 +1408,8 @@ void OH_Drawing_DestroyTypographyHandler (OH_Drawing_TypographyCreate * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------------- | ----------------------------------------- | | OH_Drawing_TypographyCreate | 指向OH_Drawing_TypographyCreate对象的指针 | **起始版本:** @@ -1428,8 +1432,8 @@ void OH_Drawing_DestroyTypographyStyle (OH_Drawing_TypographyStyle * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------------- | ---------------------------------------- | | OH_Drawing_TypographyStyle | 指向OH_Drawing_TypographyStyle对象的指针 | **起始版本:** @@ -1446,21 +1450,21 @@ void OH_Drawing_PathArcTo (OH_Drawing_Path * , float x1, float y1, float x2, flo **描述:** -函数用于给路径添加一段弧线,绘制弧线的方式为角度弧,该方式首先会指定一个矩形边框,矩形边框会包裹椭圆, 然后会指定一个起始角度和扫描度数,从起始角度扫描截取的椭圆周长一部分即为绘制的弧线。另外会默认添加一条从路径的最后点位置到弧线起始点位置的线段 +给路径添加一段弧线,绘制弧线的方式为角度弧,该方式首先会指定一个矩形边框,矩形边框会包裹椭圆, 然后会指定一个起始角度和扫描度数,从起始角度扫描截取的椭圆周长一部分即为绘制的弧线。另外会默认添加一条从路径的最后点位置到弧线起始点位置的线段 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Path | 参数为一个指向路径对象的指针 | -| x1 | 参数为包围椭圆的矩形左上角点位置的横坐标 | -| y1 | 参数为包围椭圆的矩形左上角点位置的纵坐标 | -| x2 | 参数为包围椭圆的矩形右下角点位置的横坐标 | -| y2 | 参数为包围椭圆的矩形右下角点位置的纵坐标 | -|startDeg | 参数为起始的角度 | -|sweepDeg | 参数为扫描的度数 | +| Name | 描述 | +| --------------- | ---------------------------------------- | +| OH_Drawing_Path | 参数为一个指向路径对象的指针 | +| x1 | 参数为包围椭圆的矩形左上角点位置的横坐标 | +| y1 | 参数为包围椭圆的矩形左上角点位置的纵坐标 | +| x2 | 参数为包围椭圆的矩形右下角点位置的横坐标 | +| y2 | 参数为包围椭圆的矩形右下角点位置的纵坐标 | +| startDeg | 参数为起始的角度 | +| sweepDeg | 参数为扫描的度数 | **起始版本:** @@ -1482,8 +1486,8 @@ void OH_Drawing_PathClose (OH_Drawing_Path * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------- | ---------------------------- | | OH_Drawing_Path | 参数为一个指向路径对象的指针 | **起始版本:** @@ -1500,7 +1504,7 @@ OH_Drawing_Path* OH_Drawing_PathCreate (void ) **描述:** -函数用于创建一个路径对象 +创建一个路径对象 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @@ -1522,21 +1526,21 @@ void OH_Drawing_PathCubicTo (OH_Drawing_Path * , float ctrlX1, float ctrlY1, flo **描述:** -函数用于添加一条从路径最后点位置到目标点位置的三阶贝塞尔圆滑曲线 +添加一条从路径最后点位置到目标点位置的三阶贝塞尔圆滑曲线 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Path | 参数为一个指向路径对象的指针 | -| ctrlX1 | 参数为第一个控制点位置的横坐标 | -| ctrlY1 | 参数为第一个控制点位置的纵坐标 | -| ctrlX2 | 参数为第二个控制点位置的横坐标 | -| ctrlY2 | 参数为第二个控制点位置的纵坐标 | -| endX | 参数为目标点位置的横坐标 | -| endY | 参数为目标点位置的纵坐标 | +| Name | 描述 | +| --------------- | ------------------------------ | +| OH_Drawing_Path | 参数为一个指向路径对象的指针 | +| ctrlX1 | 参数为第一个控制点位置的横坐标 | +| ctrlY1 | 参数为第一个控制点位置的纵坐标 | +| ctrlX2 | 参数为第二个控制点位置的横坐标 | +| ctrlY2 | 参数为第二个控制点位置的纵坐标 | +| endX | 参数为目标点位置的横坐标 | +| endY | 参数为目标点位置的纵坐标 | **起始版本:** @@ -1552,14 +1556,14 @@ void OH_Drawing_PathDestroy (OH_Drawing_Path * ) **描述:** -函数用于销毁路径对象并回收该对象占有的内存 +销毁路径对象并回收该对象占有的内存 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------- | ---------------------------- | | OH_Drawing_Path | 参数为一个指向路径对象的指针 | **起始版本:** @@ -1576,17 +1580,17 @@ void OH_Drawing_PathLineTo (OH_Drawing_Path * , float x, float y ) **描述:** -函数用于添加一条从路径的最后点位置到目标点位置的线段 +添加一条从路径的最后点位置到目标点位置的线段 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------- | ---------------------------- | | OH_Drawing_Path | 参数为一个指向路径对象的指针 | -| x | 参数为目标点的横坐标 | -| y | 参数为目标点的纵坐标 | +| x | 参数为目标点的横坐标 | +| y | 参数为目标点的纵坐标 | **起始版本:** @@ -1602,17 +1606,17 @@ void OH_Drawing_PathMoveTo (OH_Drawing_Path * , float x, float y ) **描述:** -函数用于设置自定义路径的起始点位置 +设置自定义路径的起始点位置 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------- | ---------------------------- | | OH_Drawing_Path | 参数为一个指向路径对象的指针 | -| x | 参数为起始点的横坐标 | -| y | 参数为起始点的纵坐标 | +| x | 参数为起始点的横坐标 | +| y | 参数为起始点的纵坐标 | **起始版本:** @@ -1628,19 +1632,19 @@ void OH_Drawing_PathQuadTo (OH_Drawing_Path * , float ctrlX, float ctrlY, float **描述:** -函数用于添加一条从路径最后点位置到目标点位置的二阶贝塞尔圆滑曲线 +添加一条从路径最后点位置到目标点位置的二阶贝塞尔圆滑曲线 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------- | ---------------------------- | | OH_Drawing_Path | 参数为一个指向路径对象的指针 | -| ctrlX | 参数为控制点位置的横坐标 | -| ctrlY | 参数为控制点位置的纵坐标 | -| endX | 参数为目标点位置的横坐标 | -| endY | 参数为目标点位置的纵坐标 | +| ctrlX | 参数为控制点位置的横坐标 | +| ctrlY | 参数为控制点位置的纵坐标 | +| endX | 参数为目标点位置的横坐标 | +| endY | 参数为目标点位置的纵坐标 | **起始版本:** @@ -1656,14 +1660,14 @@ void OH_Drawing_PathReset (OH_Drawing_Path * ) **描述:** -函数用于重置自定义路径数据 +重置自定义路径数据 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------- | ---------------------------- | | OH_Drawing_Path | 参数为一个指向路径对象的指针 | **起始版本:** @@ -1680,7 +1684,7 @@ OH_Drawing_Pen* OH_Drawing_PenCreate (void ) **描述:** -函数用于创建一个画笔对象 +创建一个画笔对象 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @@ -1702,14 +1706,14 @@ void OH_Drawing_PenDestroy (OH_Drawing_Pen * ) **描述:** -函数用于销毁画笔对象并回收该对象占有的内存 +销毁画笔对象并回收该对象占有的内存 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | **起始版本:** @@ -1726,14 +1730,14 @@ OH_Drawing_PenLineCapStyle OH_Drawing_PenGetCap (const OH_Drawing_Pen * ) **描述:** -函数用于获取画笔笔帽的样式 +获取画笔笔帽的样式 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | **返回:** @@ -1754,14 +1758,14 @@ uint32_t OH_Drawing_PenGetColor (const OH_Drawing_Pen * ) **描述:** -函数用于获取画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示 +获取画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | **返回:** @@ -1782,14 +1786,14 @@ OH_Drawing_PenLineJoinStyle OH_Drawing_PenGetJoin (const OH_Drawing_Pen * ) **描述:** -函数用于获取画笔绘制折线转角的样式 +获取画笔绘制折线转角的样式 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | **返回:** @@ -1810,14 +1814,14 @@ float OH_Drawing_PenGetMiterLimit (const OH_Drawing_Pen * ) **描述:** -函数用于获取折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角 +获取折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | **返回:** @@ -1838,14 +1842,14 @@ float OH_Drawing_PenGetWidth (const OH_Drawing_Pen * ) **描述:** -函数用于获取画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度 +获取画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | **返回:** @@ -1866,14 +1870,14 @@ bool OH_Drawing_PenIsAntiAlias (const OH_Drawing_Pen * ) **描述:** -函数用于获取画笔是否设置抗锯齿属性,如果为真则说明画笔会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理 +获取画笔是否设置抗锯齿属性,如果为真则说明画笔会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | **返回:** @@ -1894,16 +1898,16 @@ void OH_Drawing_PenSetAntiAlias (OH_Drawing_Pen * , bool ) **描述:** -函数用于设置画笔的抗锯齿属性,设置为真则画笔在绘制图形时会对图形的边缘像素进行半透明的模糊处理 +设置画笔的抗锯齿属性,设置为真则画笔在绘制图形时会对图形的边缘像素进行半透明的模糊处理 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | -| bool | 参数真为抗锯齿,参数假则不做抗锯齿处理 | +| Name | 描述 | +| -------------- | -------------------------------------- | +| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | +| bool | 参数真为抗锯齿,参数假则不做抗锯齿处理 | **起始版本:** @@ -1919,15 +1923,15 @@ void OH_Drawing_PenSetCap (OH_Drawing_Pen * , OH_Drawing_PenLineCapStyle ) **描述:** -函数用于设置画笔笔帽样式 +设置画笔笔帽样式 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | +| Name | 描述 | +| -------------------------- | -------------------------------- | +| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | | OH_Drawing_PenLineCapStyle | 参数是一个描述画笔笔帽样式的变量 | **起始版本:** @@ -1944,16 +1948,16 @@ void OH_Drawing_PenSetColor (OH_Drawing_Pen * , uint32_t color ) **描述:** -函数用于设置画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示 +设置画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | -| color | 参数是一个描述颜色的32位(ARGB)变量 | +| Name | 描述 | +| -------------- | ------------------------------------ | +| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | +| color | 参数是一个描述颜色的32位(ARGB)变量 | **起始版本:** @@ -1969,15 +1973,15 @@ void OH_Drawing_PenSetJoin (OH_Drawing_Pen * , OH_Drawing_PenLineJoinStyle ) **描述:** -函数用于设置画笔绘制转角的样式 +设置画笔绘制转角的样式 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | +| Name | 描述 | +| --------------------------- | -------------------------------- | +| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | | OH_Drawing_PenLineJoinStyle | 参数值一个描述折线转角样式的变量 | **起始版本:** @@ -1994,16 +1998,16 @@ void OH_Drawing_PenSetMiterLimit (OH_Drawing_Pen * , float miter ) **描述:** -函数用于设置折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角 +设置折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | -| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | -| miter | 参数是一个描述尖角限制值的变量 | +| Name | 描述 | +| -------------- | ------------------------------ | +| OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | +| miter | 参数是一个描述尖角限制值的变量 | **起始版本:** @@ -2019,16 +2023,16 @@ void OH_Drawing_PenSetWidth (OH_Drawing_Pen * , float width ) **描述:** -函数用于设置画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度 +设置画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度 @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------- | ---------------------------- | | OH_Drawing_Pen | 参数是一个指向画笔对象的指针 | -| width | 参数是一个描述画笔厚度的变量 | +| width | 参数是一个描述画笔厚度的变量 | **起始版本:** @@ -2050,10 +2054,10 @@ void OH_Drawing_SetTextStyleBaseLine (OH_Drawing_TextStyle * , int ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| int | OH_Drawing_TextBaseline枚举类型 | +| int | OH_Drawing_TextBaseline枚举类型 | **起始版本:** @@ -2075,10 +2079,10 @@ void OH_Drawing_SetTextStyleColor (OH_Drawing_TextStyle * , uint32_t ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| uint32_t | 颜色 | +| uint32_t | 颜色 | **起始版本:** @@ -2100,10 +2104,10 @@ void OH_Drawing_SetTextStyleDecoration (OH_Drawing_TextStyle * , int ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| int | OH_Drawing_TextDecoration枚举类型 | +| int | OH_Drawing_TextDecoration枚举类型 | **起始版本:** @@ -2125,10 +2129,10 @@ void OH_Drawing_SetTextStyleDecorationColor (OH_Drawing_TextStyle * , uint32_t **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| uint32_t | 颜色 | +| uint32_t | 颜色 | **起始版本:** @@ -2150,11 +2154,11 @@ void OH_Drawing_SetTextStyleFontFamilies (OH_Drawing_TextStyle * , int , const c **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| int | 字体名称数量 | -| fontFamilies | 指向字体类型的指针数组 | +| int | 字体名称数量 | +| fontFamilies | 指向字体类型的指针数组 | **起始版本:** @@ -2176,10 +2180,10 @@ void OH_Drawing_SetTextStyleFontHeight (OH_Drawing_TextStyle * , double ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| double | 字体高度 | +| double | 字体高度 | **起始版本:** @@ -2201,10 +2205,10 @@ void OH_Drawing_SetTextStyleFontSize (OH_Drawing_TextStyle * , double ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| double | 字号 | +| double | 字号 | **起始版本:** @@ -2226,10 +2230,10 @@ void OH_Drawing_SetTextStyleFontStyle (OH_Drawing_TextStyle * , int ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| int | OH_Drawing_FontStyle枚举类型 | +| int | OH_Drawing_FontStyle枚举类型 | **起始版本:** @@ -2251,10 +2255,10 @@ void OH_Drawing_SetTextStyleFontWeight (OH_Drawing_TextStyle * , int ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| int | OH_Drawing_FontWeight枚举类型 | +| int | OH_Drawing_FontWeight枚举类型 | **起始版本:** @@ -2276,10 +2280,10 @@ void OH_Drawing_SetTextStyleLocale (OH_Drawing_TextStyle * , const char * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------- | ---------------------------------- | | OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | -| char | 语言区域,数据类型为指向char的指针 | +| char | 语言区域,数据类型为指向char的指针 | **起始版本:** @@ -2301,10 +2305,10 @@ void OH_Drawing_SetTypographyTextAlign (OH_Drawing_TypographyStyle * , int ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------------- | ---------------------------------------- | | OH_Drawing_TypographyStyle | 指向OH_Drawing_TypographyStyle对象的指针 | -| int | OH_Drawing_TextAlign枚举类型 | +| int | OH_Drawing_TextAlign枚举类型 | **起始版本:** @@ -2326,10 +2330,10 @@ void OH_Drawing_SetTypographyTextDirection (OH_Drawing_TypographyStyle * , int **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------------- | ---------------------------------------- | | OH_Drawing_TypographyStyle | 指向OH_Drawing_TypographyStyle对象的指针 | -| int | OH_Drawing_TextDirection枚举类型 | +| int | OH_Drawing_TextDirection枚举类型 | **起始版本:** @@ -2351,15 +2355,192 @@ void OH_Drawing_SetTypographyTextMaxLines (OH_Drawing_TypographyStyle * , int ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| -------------------------- | ---------------------------------------- | | OH_Drawing_TypographyStyle | 指向OH_Drawing_TypographyStyle对象的指针 | -| int | 最大行数 | +| int | 最大行数 | **起始版本:** 8 +### OH_Drawing_TypographyGetAlphabeticBaseline() + +``` +double OH_Drawing_TypographyGetAlphabeticBaseline (OH_Drawing_Typography * ) +``` + +**描述:** + +获取字母文字基线 + +@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + +**参数:** + +| 名称 | 描述 | +| --------------------- | ----------------------------------- | +| OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | + +**返回:** + +返回字母文字基线 + +**起始版本:** + +9 + +### OH_Drawing_TypographyGetHeight() + +``` +double OH_Drawing_TypographyGetHeight (OH_Drawing_Typography * ) +``` + +**描述:** + +获取高度 + +@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + +**参数:** + +| 名称 | 描述 | +| --------------------- | ----------------------------------- | +| OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | + +**返回:** + +返回高度 + +**起始版本:** + +9 + +### OH_Drawing_TypographyGetIdeographicBaseline() + +``` +double OH_Drawing_TypographyGetIdeographicBaseline (OH_Drawing_Typography * ) +``` + +**描述:** + +获取表意文字基线 + +@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + +**参数:** + +| 名称 | 描述 | +| --------------------- | ----------------------------------- | +| OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | + +**返回:** + +返回表意文字基线 + +**起始版本:** + +9 + +### OH_Drawing_TypographyGetLongestLine() + +**描述:** + +获取最长行 + +@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + +**参数:** + +| 名称 | 描述 | +| --------------------- | ----------------------------------- | +| OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | + +**返回:** + +返回最长行 + +**起始版本:** + +9 + +### OH_Drawing_TypographyGetMaxIntrinsicWidth() + +``` +double OH_Drawing_TypographyGetMaxIntrinsicWidth (OH_Drawing_Typography * ) +``` + +**描述:** + +获取最大固有宽度 + +@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + +**参数:** + +| 名称 | 描述 | +| --------------------- | ----------------------------------- | +| OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | + +**返回:** + +返回最大固有宽度 + +**起始版本:** + +9 + +### OH_Drawing_TypographyGetMaxWidth() + +``` +double OH_Drawing_TypographyGetMaxWidth (OH_Drawing_Typography * ) +``` + +**描述:** + +获取最大宽度 + +@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + +**参数:** + +| 名称 | 描述 | +| --------------------- | ----------------------------------- | +| OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | + +**返回:** + +返回最大宽度 + +**起始版本:** + +9 + +### OH_Drawing_TypographyGetMinIntrinsicWidth() + +``` +double OH_Drawing_TypographyGetMinIntrinsicWidth (OH_Drawing_Typography * ) +``` + +**描述:** + +获取最小固有宽度 + +@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + +**参数:** + +| 名称 | 描述 | +| --------------------- | ----------------------------------- | +| OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | + +**返回:** + +返回最小固有宽度 + +**起始版本:** + +9 ### OH_Drawing_TypographyHandlerAddText() @@ -2376,10 +2557,10 @@ void OH_Drawing_TypographyHandlerAddText (OH_Drawing_TypographyCreate * , const **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------------- | ----------------------------------------- | | OH_Drawing_TypographyCreate | 指向OH_Drawing_TypographyCreate对象的指针 | -| char | 指向文本内容的指针 | +| char | 指向文本内容的指针 | **起始版本:** @@ -2401,8 +2582,8 @@ void OH_Drawing_TypographyHandlerPopTextStyle (OH_Drawing_TypographyCreate * ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------------- | ----------------------------------------- | | OH_Drawing_TypographyCreate | 指向OH_Drawing_TypographyCreate对象的指针 | **起始版本:** @@ -2425,10 +2606,10 @@ void OH_Drawing_TypographyHandlerPushTextStyle (OH_Drawing_TypographyCreate * , **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------------- | ----------------------------------------- | | OH_Drawing_TypographyCreate | 指向OH_Drawing_TypographyCreate对象的指针 | -| OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | +| OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 | **起始版本:** @@ -2450,10 +2631,10 @@ void OH_Drawing_TypographyLayout (OH_Drawing_Typography * , double ) **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------- | ----------------------------------- | | OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | -| double | 文本最大宽度 | +| double | 文本最大宽度 | **起始版本:** @@ -2475,13 +2656,13 @@ void OH_Drawing_TypographyPaint (OH_Drawing_Typography * , OH_Drawing_Canvas * , **参数:** -| Name | 描述 | -| -------- | -------- | +| Name | 描述 | +| --------------------- | ----------------------------------- | | OH_Drawing_Typography | 指向OH_Drawing_Typography对象的指针 | -| OH_Drawing_Canvas | 指向OH_Drawing_Canvas对象的指针 | -| double | x坐标 | -| double | y坐标 | +| OH_Drawing_Canvas | 指向OH_Drawing_Canvas对象的指针 | +| double | x坐标 | +| double | y坐标 | **起始版本:** -8 +8 \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-apis/_hi_log.md b/zh-cn/application-dev/reference/native-apis/_hi_log.md index 0861e94472e7285c98d5f84f37407ca210f872b4..b0a6af69d0579191046aadc10f86d5a09e616345 100644 --- a/zh-cn/application-dev/reference/native-apis/_hi_log.md +++ b/zh-cn/application-dev/reference/native-apis/_hi_log.md @@ -23,7 +23,7 @@ HiLog模块实现日志打印功能。 | 文件名称 | 描述 | | -------- | -------- | -| [log.h](log_8h.md) | HiLog模块日志接口定义,通过这些接口实现日志打印相关功能。 | +| [log.h](log_8h.md) | HiLog模块日志接口定义,通过这些接口实现日志打印相关功能。
引用文件: | ### 宏定义 diff --git a/zh-cn/application-dev/reference/native-apis/_huks_key_api.md b/zh-cn/application-dev/reference/native-apis/_huks_key_api.md index 4c758119c42c366c0bcd63146ef69a05f5fc1198..76c4ddb9f7d6333b79808f8f96d18b09aa7e67df 100644 --- a/zh-cn/application-dev/reference/native-apis/_huks_key_api.md +++ b/zh-cn/application-dev/reference/native-apis/_huks_key_api.md @@ -17,26 +17,26 @@ | 名称 | 描述 | | -------- | -------- | -| [native_huks_api.h](native__huks__api_8h.md) | 声明用于访问HUKS的API。 | +| [native_huks_api.h](native__huks__api_8h.md) | 声明用于访问HUKS的API。
引用文件: | ### 函数 | 名称 | 描述 | | -------- | -------- | -| [OH_Huks_GetSdkVersion](#oh_huks_getsdkversion) (struct [OH_Huks_Blob](_o_h___huks___blob.md) \*sdkVersion) | struct [OH_Huks_Result](_o_h___huks___result.md)
获取当前Huks sdk版本号。 | -| [OH_Huks_GenerateKeyItem](#oh_huks_generatekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | struct [OH_Huks_Result](_o_h___huks___result.md)
生成密钥。 | -| [OH_Huks_ImportKeyItem](#oh_huks_importkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | struct [OH_Huks_Result](_o_h___huks___result.md)
导入明文密钥。 | -| [OH_Huks_ImportWrappedKeyItem](#oh_huks_importwrappedkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappingKeyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappedKeyData) | struct [OH_Huks_Result](_o_h___huks___result.md)
导入密文密钥。 | -| [OH_Huks_ExportPublicKeyItem](#oh_huks_exportpublickeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | struct [OH_Huks_Result](_o_h___huks___result.md)
导出公钥。 | -| [OH_Huks_DeleteKeyItem](#oh_huks_deletekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | struct [OH_Huks_Result](_o_h___huks___result.md)
删除密钥。 | -| [OH_Huks_GetKeyItemParamSet](#oh_huks_getkeyitemparamset) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | struct [OH_Huks_Result](_o_h___huks___result.md)
获取密钥的属性集。 | -| [OH_Huks_IsKeyItemExist](#oh_huks_iskeyitemexist) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | struct [OH_Huks_Result](_o_h___huks___result.md)
判断密钥是否存在。 | -| [OH_Huks_AttestKeyItem](#oh_huks_attestkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_CertChain](_o_h___huks___cert_chain.md) \*certChain) | struct [OH_Huks_Result](_o_h___huks___result.md)
获取密钥证书链。 | -| [OH_Huks_InitSession](#oh_huks_initsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*challenge) | struct [OH_Huks_Result](_o_h___huks___result.md)
初始化密钥会话接口,并获取一个句柄(必选)和挑战值(可选)。 | -| [OH_Huks_UpdateSession](#oh_huks_updatesession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | struct [OH_Huks_Result](_o_h___huks___result.md)
分段添加密钥操作的数据并进行相应的密钥操作,输出处理数据。 | -| [OH_Huks_FinishSession](#oh_huks_finishsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | struct [OH_Huks_Result](_o_h___huks___result.md)
结束密钥会话并进行相应的密钥操作,输出处理数据。 | -| [OH_Huks_AbortSession](#oh_huks_abortsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | struct [OH_Huks_Result](_o_h___huks___result.md)
取消密钥会话。 | +| [OH_Huks_GetSdkVersion](#oh_huks_getsdkversion) (struct [OH_Huks_Blob](_o_h___huks___blob.md) \*sdkVersion) | 获取当前Huks sdk版本号。 | +| [OH_Huks_GenerateKeyItem](#oh_huks_generatekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | 生成密钥。 | +| [OH_Huks_ImportKeyItem](#oh_huks_importkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | 导入明文密钥。 | +| [OH_Huks_ImportWrappedKeyItem](#oh_huks_importwrappedkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappingKeyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappedKeyData) | 导入密文密钥。 | +| [OH_Huks_ExportPublicKeyItem](#oh_huks_exportpublickeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | 导出公钥。 | +| [OH_Huks_DeleteKeyItem](#oh_huks_deletekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 删除密钥。 | +| [OH_Huks_GetKeyItemParamSet](#oh_huks_getkeyitemparamset) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | 获取密钥的属性集。 | +| [OH_Huks_IsKeyItemExist](#oh_huks_iskeyitemexist) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 判断密钥是否存在。 | +| [OH_Huks_AttestKeyItem](#oh_huks_attestkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_CertChain](_o_h___huks___cert_chain.md) \*certChain) | 获取密钥证书链。 | +| [OH_Huks_InitSession](#oh_huks_initsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*token) | 初始化密钥会话接口,并获取一个句柄(必选)和挑战值(可选)。 | +| [OH_Huks_UpdateSession](#oh_huks_updatesession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | 分段添加密钥操作的数据并进行相应的密钥操作,输出处理数据。 | +| [OH_Huks_FinishSession](#oh_huks_finishsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | 结束密钥会话并进行相应的密钥操作,输出处理数据。 | +| [OH_Huks_AbortSession](#oh_huks_abortsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 取消密钥会话。 | ## 函数说明 @@ -280,7 +280,7 @@ struct OH_Huks_Result OH_Huks_ImportWrappedKeyItem (const struct OH_Huks_Blob * ``` -struct OH_Huks_Result OH_Huks_InitSession (const struct OH_Huks_Blob * keyAlias, const struct OH_Huks_ParamSet * paramSet, struct OH_Huks_Blob * handle, struct OH_Huks_Blob * challenge ) +struct OH_Huks_Result OH_Huks_InitSession (const struct OH_Huks_Blob * keyAlias, const struct OH_Huks_ParamSet * paramSet, struct OH_Huks_Blob * handle, struct OH_Huks_Blob * token ) ``` **描述:** 初始化密钥会话接口,并获取一个句柄(必选)和挑战值(可选)。 @@ -292,7 +292,7 @@ struct OH_Huks_Result OH_Huks_InitSession (const struct OH_Huks_Blob * keyAlias, | keyAlias | 操作的密钥的别名。 | | paramSet | 初始化操作的密钥参数集合。 | | handle | 密钥会话的句柄,后续其他操作时传入该句柄,包括[OH_Huks_UpdateSession](#oh_huks_updatesession), [OH_Huks_FinishSession](#oh_huks_finishsession), [OH_Huks_AbortSession](#oh_huks_abortsession)。 | -| challenge | 存放安全访问控制时传回的challenge | +| token | 存放安全访问控制时传回的token | **返回:** diff --git a/zh-cn/application-dev/reference/native-apis/_huks_param_set_api.md b/zh-cn/application-dev/reference/native-apis/_huks_param_set_api.md index 30fca53d4737ada5d95fda574ea2a74ed9b50250..eb91cc56a5a6469e440ec5ffa153d04cdef59148 100644 --- a/zh-cn/application-dev/reference/native-apis/_huks_param_set_api.md +++ b/zh-cn/application-dev/reference/native-apis/_huks_param_set_api.md @@ -18,23 +18,23 @@ | 名称 | 描述 | | -------- | -------- | -| [native_huks_param.h](native__huks__param_8h.md) | 提供参数集构造、使用和销毁的API。 | +| [native_huks_param.h](native__huks__param_8h.md) | 提供参数集构造、使用和销毁的API。
引用文件: | ### 函数 | 名称 | 描述 | | -------- | -------- | -| [OH_Huks_InitParamSet](#oh_huks_initparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | int32_t
初始化参数集。 | -| [OH_Huks_AddParams](#oh_huks_addparams) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Param](_o_h___huks___param.md) \*params, uint32_t paramCnt) | int32_t
添加参数到参数集里面。 | -| [OH_Huks_BuildParamSet](#oh_huks_buildparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | int32_t
构造正式的参数集。 | -| [OH_Huks_FreeParamSet](#oh_huks_freeparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | void
销毁参数集。 | -| [OH_Huks_CopyParamSet](#oh_huks_copyparamset) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*fromParamSet, uint32_t fromParamSetSize, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | int32_t
复制参数集(深拷贝)。 | -| [OH_Huks_GetParam](#oh_huks_getparam) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t tag, struct [OH_Huks_Param](_o_h___huks___param.md) \*\*param) | int32_t
从参数集中获取参数。 | -| [OH_Huks_FreshParamSet](#oh_huks_freshparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, bool isCopy) | int32_t
刷新(复制)参数集内Blob类型的数据到参数集内。 | -| [OH_Huks_isParamSetTagValid](#oh_huks_isparamsettagvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | int32_t
检查参数集中的参数是否有效、是否有重复。 | -| [OH_Huks_isParamSetValid](#oh_huks_isparamsetvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t size) | int32_t
检查参数集大小是否有效。 | -| [OH_Huks_CheckParamMatch](#oh_huks_checkparammatch) (const struct [OH_Huks_Param](_o_h___huks___param.md) \*baseParam, const struct [OH_Huks_Param](_o_h___huks___param.md) \*param) | int32_t
比较两个参数是否相同 | +| [OH_Huks_InitParamSet](#oh_huks_initparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 初始化参数集。 | +| [OH_Huks_AddParams](#oh_huks_addparams) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Param](_o_h___huks___param.md) \*params, uint32_t paramCnt) | 添加参数到参数集里面。 | +| [OH_Huks_BuildParamSet](#oh_huks_buildparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 构造正式的参数集。 | +| [OH_Huks_FreeParamSet](#oh_huks_freeparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 销毁参数集。 | +| [OH_Huks_CopyParamSet](#oh_huks_copyparamset) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*fromParamSet, uint32_t fromParamSetSize, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 复制参数集(深拷贝)。 | +| [OH_Huks_GetParam](#oh_huks_getparam) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t tag, struct [OH_Huks_Param](_o_h___huks___param.md) \*\*param) | 从参数集中获取参数。 | +| [OH_Huks_FreshParamSet](#oh_huks_freshparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, bool isCopy) | 刷新(复制)参数集内Blob类型的数据到参数集内。 | +| [OH_Huks_isParamSetTagValid](#oh_huks_isparamsettagvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 检查参数集中的参数是否有效、是否有重复。 | +| [OH_Huks_isParamSetValid](#oh_huks_isparamsetvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t size) | 检查参数集大小是否有效。 | +| [OH_Huks_CheckParamMatch](#oh_huks_checkparammatch) (const struct [OH_Huks_Param](_o_h___huks___param.md) \*baseParam, const struct [OH_Huks_Param](_o_h___huks___param.md) \*param) | 比较两个参数是否相同 | ## 函数说明 diff --git a/zh-cn/application-dev/reference/native-apis/_huks_type_api.md b/zh-cn/application-dev/reference/native-apis/_huks_type_api.md index 221c5ab0ca3dcbf33fec1802d2626d20506cced9..1227e099dc809a097d6d2044f8e83a8e5bbc4500 100644 --- a/zh-cn/application-dev/reference/native-apis/_huks_type_api.md +++ b/zh-cn/application-dev/reference/native-apis/_huks_type_api.md @@ -18,47 +18,47 @@ | 名称 | 描述 | | -------- | -------- | -| [native_huks_type.h](native__huks__type_8h.md) | 提供huks中的枚举变量、结构体定义与宏定义。 | +| [native_huks_type.h](native__huks__type_8h.md) | 提供huks中的枚举变量、结构体定义与宏定义。
引用文件: | ### 结构体 | 名称 | 描述 | | -------- | -------- | -| [OH_Huks_Result](_o_h___huks___result.md) | struct
表示状态返回数据,包括返回码和消息。 | -| [OH_Huks_Blob](_o_h___huks___blob.md) | struct
定义存放数据的结构体类型。 | -| [OH_Huks_Param](_o_h___huks___param.md) | struct
定义参数集中的参数结构体类型。 | -| [OH_Huks_ParamSet](_o_h___huks___param_set.md) | struct
定义参数集的结构体类型。 | -| [OH_Huks_CertChain](_o_h___huks___cert_chain.md) | struct
定义证书链的结构体类型。 | -| [OH_Huks_KeyInfo](_o_h___huks___key_info.md) | struct
定义密钥信息的结构体类型。 | -| [OH_Huks_PubKeyInfo](_o_h___huks___pub_key_info.md) | struct
定义公钥信息的结构体类型。 | -| [OH_Huks_KeyMaterialRsa](_o_h___huks___key_material_rsa.md) | struct
定义Rsa密钥的结构体类型。 | -| [OH_Huks_KeyMaterialEcc](_o_h___huks___key_material_ecc.md) | struct
定义Ecc密钥的结构体类型。 | -| [OH_Huks_KeyMaterialDsa](_o_h___huks___key_material_dsa.md) | struct
定义Dsa密钥的结构体类型。 | -| [OH_Huks_KeyMaterialDh](_o_h___huks___key_material_dh.md) | struct
定义Dh密钥的结构体类型。 | -| [OH_Huks_KeyMaterial25519](_o_h___huks___key_material25519.md) | struct
定义25519类型密钥的结构体类型。 | +| [OH_Huks_Result](_o_h___huks___result.md) | 表示状态返回数据,包括返回码和消息。 | +| [OH_Huks_Blob](_o_h___huks___blob.md) | 定义存放数据的结构体类型。 | +| [OH_Huks_Param](_o_h___huks___param.md) | 定义参数集中的参数结构体类型。 | +| [OH_Huks_ParamSet](_o_h___huks___param_set.md) | 定义参数集的结构体类型。 | +| [OH_Huks_CertChain](_o_h___huks___cert_chain.md) | 定义证书链的结构体类型。 | +| [OH_Huks_KeyInfo](_o_h___huks___key_info.md) | 定义密钥信息的结构体类型。 | +| [OH_Huks_PubKeyInfo](_o_h___huks___pub_key_info.md) | 定义公钥信息的结构体类型。 | +| [OH_Huks_KeyMaterialRsa](_o_h___huks___key_material_rsa.md) | 定义Rsa密钥的结构体类型。 | +| [OH_Huks_KeyMaterialEcc](_o_h___huks___key_material_ecc.md) | 定义Ecc密钥的结构体类型。 | +| [OH_Huks_KeyMaterialDsa](_o_h___huks___key_material_dsa.md) | 定义Dsa密钥的结构体类型。 | +| [OH_Huks_KeyMaterialDh](_o_h___huks___key_material_dh.md) | 定义Dh密钥的结构体类型。 | +| [OH_Huks_KeyMaterial25519](_o_h___huks___key_material25519.md) | 定义25519类型密钥的结构体类型。 | ### 宏定义 -| 名称 | 描述 | +| 名称 | 值 | | -------- | -------- | -| **OH_HUKS_AE_TAG_LEN** 16 | | -| **OH_HUKS_BITS_PER_BYTE** 8 | | -| **OH_HUKS_MAX_KEY_SIZE** 2048 | | -| **OH_HUKS_AE_NONCE_LEN** 12 | | -| **OH_HUKS_MAX_KEY_ALIAS_LEN** 64 | | -| **OH_HUKS_MAX_PROCESS_NAME_LEN** 50 | | -| **OH_HUKS_MAX_RANDOM_LEN** 1024 | | -| **OH_HUKS_SIGNATURE_MIN_SIZE** 64 | | -| **OH_HUKS_MAX_OUT_BLOB_SIZE** (5 \* 1024 \* 1024) | | -| **OH_HUKS_WRAPPED_FORMAT_MAX_SIZE** (1024 \* 1024) | | -| **OH_HUKS_IMPORT_WRAPPED_KEY_TOTAL_BLOBS** 10 | | -| **TOKEN_CHALLENGE_LEN** 32 | | -| **SHA256_SIGN_LEN** 32 | | -| **TOKEN_SIZE** 32 | | -| **MAX_AUTH_TIMEOUT_SECOND** 60 | | -| **SECURE_SIGN_VERSION** 0x01000001 | | +| **OH_HUKS_AE_TAG_LEN** | 16 | +| **OH_HUKS_BITS_PER_BYTE** | 8| +| **OH_HUKS_MAX_KEY_SIZE** | 2048 | +| **OH_HUKS_AE_NONCE_LEN** | 12 | +| **OH_HUKS_MAX_KEY_ALIAS_LEN** | 64 | +| **OH_HUKS_MAX_PROCESS_NAME_LEN** | 50 | +| **OH_HUKS_MAX_RANDOM_LEN** | 1024 | +| **OH_HUKS_SIGNATURE_MIN_SIZE** | 64 | +| **OH_HUKS_MAX_OUT_BLOB_SIZE** | (5 \* 1024 \* 1024) | +| **OH_HUKS_WRAPPED_FORMAT_MAX_SIZE** | (1024 \* 1024) | +| **OH_HUKS_IMPORT_WRAPPED_KEY_TOTAL_BLOBS** | 10 | +| **TOKEN_CHALLENGE_LEN** |32 | +| **SHA256_SIGN_LEN** | 32 | +| **TOKEN_SIZE** |32 | +| **MAX_AUTH_TIMEOUT_SECOND** | 60 | +| **SECURE_SIGN_VERSION** | 0x01000001 | ### 枚举 @@ -83,7 +83,7 @@ | [OH_Huks_ChallengeType](#oh_huks_challengetype) {
OH_HUKS_CHALLENGE_TYPE_NORMAL = 0,
OH_HUKS_CHALLENGE_TYPE_CUSTOM = 1,
OH_HUKS_CHALLENGE_TYPE_NONE = 2
} | 密钥使用时生成challenge的类型 | | [OH_Huks_ChallengePosition](#oh_huks_challengeposition) {
OH_HUKS_CHALLENGE_POS_0 = 0,
OH_HUKS_CHALLENGE_POS_1,
OH_HUKS_CHALLENGE_POS_2,
OH_HUKS_CHALLENGE_POS_3
} | challenge类型为用户自定义类型时,生成的challenge有效长度仅为8字节连续的数据,且仅支持4种位置。 | | [OH_Huks_SecureSignType](#oh_huks_securesigntype) { OH_HUKS_SECURE_SIGN_WITH_AUTHINFO = 1 } | 生成或导入密钥时,指定该密钥的安全签名类型。 | -| [OH_Huks_Tag](#oh_huks_tag) {
OH_HUKS_TAG_INVALID = OH_HUKS_TAG_TYPE_INVALID \| 0, OH_HUKS_TAG_ALGORITHM = OH_HUKS_TAG_TYPE_UINT \| 1, OH_HUKS_TAG_PURPOSE = OH_HUKS_TAG_TYPE_UINT \| 2, OH_HUKS_TAG_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 3,
OH_HUKS_TAG_DIGEST = OH_HUKS_TAG_TYPE_UINT \| 4, OH_HUKS_TAG_PADDING = OH_HUKS_TAG_TYPE_UINT \| 5, OH_HUKS_TAG_BLOCK_MODE = OH_HUKS_TAG_TYPE_UINT \| 6, OH_HUKS_TAG_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 7,
OH_HUKS_TAG_ASSOCIATED_DATA = OH_HUKS_TAG_TYPE_BYTES \| 8, OH_HUKS_TAG_NONCE = OH_HUKS_TAG_TYPE_BYTES \| 9, OH_HUKS_TAG_IV = OH_HUKS_TAG_TYPE_BYTES \| 10, OH_HUKS_TAG_INFO = OH_HUKS_TAG_TYPE_BYTES \| 11,
OH_HUKS_TAG_SALT = OH_HUKS_TAG_TYPE_BYTES \| 12, OH_HUKS_TAG_PWD = OH_HUKS_TAG_TYPE_BYTES \| 13, OH_HUKS_TAG_ITERATION = OH_HUKS_TAG_TYPE_UINT \| 14, OH_HUKS_TAG_KEY_GENERATE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 15,
OH_HUKS_TAG_DERIVE_MAIN_KEY = OH_HUKS_TAG_TYPE_BYTES \| 16, OH_HUKS_TAG_DERIVE_FACTOR = OH_HUKS_TAG_TYPE_BYTES \| 17, OH_HUKS_TAG_DERIVE_ALG = OH_HUKS_TAG_TYPE_UINT \| 18, OH_HUKS_TAG_AGREE_ALG = OH_HUKS_TAG_TYPE_UINT \| 19,
OH_HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 20, OH_HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 21, OH_HUKS_TAG_AGREE_PUBLIC_KEY = OH_HUKS_TAG_TYPE_BYTES \| 22, OH_HUKS_TAG_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 23,
OH_HUKS_TAG_DERIVE_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 24, OH_HUKS_TAG_IMPORT_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 25, OH_HUKS_TAG_UNWRAP_ALGORITHM_SUITE = OH_HUKS_TAG_TYPE_UINT \| 26, OH_HUKS_TAG_ALL_USERS = OH_HUKS_TAG_TYPE_BOOL \| 301,
OH_HUKS_TAG_USER_ID = OH_HUKS_TAG_TYPE_UINT \| 302, OH_HUKS_TAG_NO_AUTH_REQUIRED = OH_HUKS_TAG_TYPE_BOOL \| 303, OH_HUKS_TAG_USER_AUTH_TYPE = OH_HUKS_TAG_TYPE_UINT \| 304, OH_HUKS_TAG_AUTH_TIMEOUT = OH_HUKS_TAG_TYPE_UINT \| 305,
OH_HUKS_TAG_AUTH_TOKEN = OH_HUKS_TAG_TYPE_BYTES \| 306, OH_HUKS_TAG_KEY_AUTH_ACCESS_TYPE = OH_HUKS_TAG_TYPE_UINT \| 307, OH_HUKS_TAG_KEY_SECURE_SIGN_TYPE = OH_HUKS_TAG_TYPE_UINT \| 308, OH_HUKS_TAG_CHALLENGE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 309,
OH_HUKS_TAG_CHALLENGE_POS = OH_HUKS_TAG_TYPE_UINT \| 310, OH_HUKS_TAG_ATTESTATION_CHALLENGE = OH_HUKS_TAG_TYPE_BYTES \| 501, OH_HUKS_TAG_ATTESTATION_APPLICATION_ID = OH_HUKS_TAG_TYPE_BYTES \| 502, OH_HUKS_TAG_ATTESTATION_ID_BRAND = OH_HUKS_TAG_TYPE_BYTES \| 503,
OH_HUKS_TAG_ATTESTATION_ID_DEVICE = OH_HUKS_TAG_TYPE_BYTES \| 504, OH_HUKS_TAG_ATTESTATION_ID_PRODUCT = OH_HUKS_TAG_TYPE_BYTES \| 505, OH_HUKS_TAG_ATTESTATION_ID_SERIAL = OH_HUKS_TAG_TYPE_BYTES \| 506, OH_HUKS_TAG_ATTESTATION_ID_IMEI = OH_HUKS_TAG_TYPE_BYTES \| 507,
OH_HUKS_TAG_ATTESTATION_ID_MEID = OH_HUKS_TAG_TYPE_BYTES \| 508, OH_HUKS_TAG_ATTESTATION_ID_MANUFACTURER = OH_HUKS_TAG_TYPE_BYTES \| 509, OH_HUKS_TAG_ATTESTATION_ID_MODEL = OH_HUKS_TAG_TYPE_BYTES \| 510, OH_HUKS_TAG_ATTESTATION_ID_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 511,
OH_HUKS_TAG_ATTESTATION_ID_SOCID = OH_HUKS_TAG_TYPE_BYTES \| 512, OH_HUKS_TAG_ATTESTATION_ID_UDID = OH_HUKS_TAG_TYPE_BYTES \| 513, OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = OH_HUKS_TAG_TYPE_BYTES \| 514, OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO = OH_HUKS_TAG_TYPE_BYTES \| 515,
OH_HUKS_TAG_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 1001, OH_HUKS_TAG_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1002, OH_HUKS_TAG_IS_ALLOWED_WRAP = OH_HUKS_TAG_TYPE_BOOL \| 1003, OH_HUKS_TAG_KEY_WRAP_TYPE = OH_HUKS_TAG_TYPE_UINT \| 1004,
OH_HUKS_TAG_KEY_AUTH_ID = OH_HUKS_TAG_TYPE_BYTES \| 1005, OH_HUKS_TAG_KEY_ROLE = OH_HUKS_TAG_TYPE_UINT \| 1006, OH_HUKS_TAG_KEY_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1007, OH_HUKS_TAG_IS_ASYNCHRONIZED = OH_HUKS_TAG_TYPE_UINT \| 1008,
OH_HUKS_TAG_SECURE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 1009, OH_HUKS_TAG_SECURE_KEY_UUID = OH_HUKS_TAG_TYPE_BYTES \| 1010, OH_HUKS_TAG_KEY_DOMAIN = OH_HUKS_TAG_TYPE_UINT \| 1011, OH_HUKS_TAG_SYMMETRIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20001,
OH_HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20002, OH_HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20003
} | 参数集所用的TAG值枚举 | +| [OH_Huks_Tag](#oh_huks_tag) {
OH_HUKS_TAG_ALGORITHM = OH_HUKS_TAG_TYPE_UINT \| 1, OH_HUKS_TAG_PURPOSE = OH_HUKS_TAG_TYPE_UINT \| 2, OH_HUKS_TAG_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 3,
OH_HUKS_TAG_DIGEST = OH_HUKS_TAG_TYPE_UINT \| 4, OH_HUKS_TAG_PADDING = OH_HUKS_TAG_TYPE_UINT \| 5, OH_HUKS_TAG_BLOCK_MODE = OH_HUKS_TAG_TYPE_UINT \| 6, OH_HUKS_TAG_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 7,
OH_HUKS_TAG_ASSOCIATED_DATA = OH_HUKS_TAG_TYPE_BYTES \| 8, OH_HUKS_TAG_NONCE = OH_HUKS_TAG_TYPE_BYTES \| 9, OH_HUKS_TAG_IV = OH_HUKS_TAG_TYPE_BYTES \| 10, OH_HUKS_TAG_INFO = OH_HUKS_TAG_TYPE_BYTES \| 11,
OH_HUKS_TAG_SALT = OH_HUKS_TAG_TYPE_BYTES \| 12, OH_HUKS_TAG_ITERATION = OH_HUKS_TAG_TYPE_UINT \| 14, OH_HUKS_TAG_KEY_GENERATE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 15, OH_HUKS_TAG_AGREE_ALG = OH_HUKS_TAG_TYPE_UINT \| 19,
OH_HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 20, OH_HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 21, OH_HUKS_TAG_AGREE_PUBLIC_KEY = OH_HUKS_TAG_TYPE_BYTES \| 22, OH_HUKS_TAG_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 23,
OH_HUKS_TAG_DERIVE_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 24, OH_HUKS_TAG_IMPORT_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 25, OH_HUKS_TAG_UNWRAP_ALGORITHM_SUITE = OH_HUKS_TAG_TYPE_UINT \| 26, OH_HUKS_TAG_ALL_USERS = OH_HUKS_TAG_TYPE_BOOL \| 301,
OH_HUKS_TAG_USER_ID = OH_HUKS_TAG_TYPE_UINT \| 302, OH_HUKS_TAG_NO_AUTH_REQUIRED = OH_HUKS_TAG_TYPE_BOOL \| 303, OH_HUKS_TAG_USER_AUTH_TYPE = OH_HUKS_TAG_TYPE_UINT \| 304, OH_HUKS_TAG_AUTH_TIMEOUT = OH_HUKS_TAG_TYPE_UINT \| 305,
OH_HUKS_TAG_AUTH_TOKEN = OH_HUKS_TAG_TYPE_BYTES \| 306, OH_HUKS_TAG_KEY_AUTH_ACCESS_TYPE = OH_HUKS_TAG_TYPE_UINT \| 307, OH_HUKS_TAG_KEY_SECURE_SIGN_TYPE = OH_HUKS_TAG_TYPE_UINT \| 308, OH_HUKS_TAG_CHALLENGE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 309,
OH_HUKS_TAG_CHALLENGE_POS = OH_HUKS_TAG_TYPE_UINT \| 310, OH_HUKS_TAG_ATTESTATION_CHALLENGE = OH_HUKS_TAG_TYPE_BYTES \| 501, OH_HUKS_TAG_ATTESTATION_APPLICATION_ID = OH_HUKS_TAG_TYPE_BYTES \| 502, OH_HUKS_TAG_ATTESTATION_ID_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 511,
OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = OH_HUKS_TAG_TYPE_BYTES \| 514, OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO = OH_HUKS_TAG_TYPE_BYTES \| 515,
OH_HUKS_TAG_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 1001, OH_HUKS_TAG_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1002, OH_HUKS_TAG_IS_ALLOWED_WRAP = OH_HUKS_TAG_TYPE_BOOL \| 1003, OH_HUKS_TAG_KEY_WRAP_TYPE = OH_HUKS_TAG_TYPE_UINT \| 1004,
OH_HUKS_TAG_KEY_AUTH_ID = OH_HUKS_TAG_TYPE_BYTES \| 1005, OH_HUKS_TAG_KEY_ROLE = OH_HUKS_TAG_TYPE_UINT \| 1006, OH_HUKS_TAG_KEY_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1007, OH_HUKS_TAG_IS_ASYNCHRONIZED = OH_HUKS_TAG_TYPE_UINT \| 1008,
OH_HUKS_TAG_KEY_DOMAIN = OH_HUKS_TAG_TYPE_UINT \| 1011, OH_HUKS_TAG_SYMMETRIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20001,
OH_HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20002, OH_HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20003
} | 参数集所用的TAG值枚举 | ## 枚举类型说明 @@ -416,7 +416,6 @@ enum OH_Huks_Tag | 枚举值 | 描述 | | -------- | -------- | -| OH_HUKS_TAG_INVALID | 非法的Tag。 | | OH_HUKS_TAG_ALGORITHM | 密钥参数标签值:从1到200。 算法类型。 | | OH_HUKS_TAG_PURPOSE | 密钥用途。 | | OH_HUKS_TAG_KEY_SIZE | 密钥长度 。 | @@ -429,12 +428,8 @@ enum OH_Huks_Tag | OH_HUKS_TAG_IV | 初始化的向量。 | | OH_HUKS_TAG_INFO | 密钥派生时的信息。 | | OH_HUKS_TAG_SALT | 派生盐值。 | -| OH_HUKS_TAG_PWD | 派生密码。 | | OH_HUKS_TAG_ITERATION | 派生迭代次数。 | | OH_HUKS_TAG_KEY_GENERATE_TYPE | 生成密钥的类型,类型可在枚举[OH_Huks_KeyGenerateType](#oh_huks_keygeneratetype)中选择。 | -| OH_HUKS_TAG_DERIVE_MAIN_KEY | 密钥派生时的主密钥。 | -| OH_HUKS_TAG_DERIVE_FACTOR | 派生时的派生因子。 | -| OH_HUKS_TAG_DERIVE_ALG | 派生时的算法类型。 | | OH_HUKS_TAG_AGREE_ALG | 密钥协商时的算法类型。 | | OH_HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS | 密钥协商时的公钥别名。 | | OH_HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS | 密钥协商时的私钥别名。 | @@ -455,17 +450,7 @@ enum OH_Huks_Tag | OH_HUKS_TAG_CHALLENGE_POS | 表示challenge类型为用户自定义类型时,huks产生的challenge有效长度仅为8字节连续的数据的位置。从OH_Huks_ChallengePosition中选择。 | | OH_HUKS_TAG_ATTESTATION_CHALLENGE | 密钥认证相关的标签值: 501 - 600 密钥认证时的挑战值。 | | OH_HUKS_TAG_ATTESTATION_APPLICATION_ID | 密钥认证时拥有该密钥的application的Id。 | -| OH_HUKS_TAG_ATTESTATION_ID_BRAND | 设备的品牌。 | -| OH_HUKS_TAG_ATTESTATION_ID_DEVICE | 设备的设备ID。 | -| OH_HUKS_TAG_ATTESTATION_ID_PRODUCT | 设备的产品名。 | -| OH_HUKS_TAG_ATTESTATION_ID_SERIAL | 设备的SN号。 | -| OH_HUKS_TAG_ATTESTATION_ID_IMEI | 设备的IMEI号。 | -| OH_HUKS_TAG_ATTESTATION_ID_MEID | 设备的MEID号。 | -| OH_HUKS_TAG_ATTESTATION_ID_MANUFACTURER | 设备的制造商。 | -| OH_HUKS_TAG_ATTESTATION_ID_MODEL | 设备的型号。 | | OH_HUKS_TAG_ATTESTATION_ID_ALIAS | 密钥别名。 | -| OH_HUKS_TAG_ATTESTATION_ID_SOCID | 设备的SOCID。 | -| OH_HUKS_TAG_ATTESTATION_ID_UDID | 设备的UDID。 | | OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO | 密钥认证时的安全凭据。 | | OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO | 密钥认证时的版本号。 | | OH_HUKS_TAG_IS_KEY_ALIAS | 其他类型的标签值预留: 601 - 1000
扩展标签值: 1001 - 9999 是否是密钥别名。 | @@ -476,8 +461,6 @@ enum OH_Huks_Tag | OH_HUKS_TAG_KEY_ROLE | 密钥角色。 | | OH_HUKS_TAG_KEY_FLAG | 密钥标记, 类型可在枚举[OH_Huks_KeyFlag](#oh_huks_keyflag)选择。 | | OH_HUKS_TAG_IS_ASYNCHRONIZED | 是否异步 | -| OH_HUKS_TAG_SECURE_KEY_ALIAS | 安全密钥别名。 | -| OH_HUKS_TAG_SECURE_KEY_UUID | 安全密钥UUID。 | | OH_HUKS_TAG_KEY_DOMAIN | 密钥域。 | | OH_HUKS_TAG_SYMMETRIC_KEY_DATA | 预留值: 11000 - 12000
其他标签预留值: 20001 - N 对称密钥数据 | | OH_HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA | 非对称密钥公钥数据 | diff --git a/zh-cn/application-dev/reference/native-apis/_mind_spore.md b/zh-cn/application-dev/reference/native-apis/_mind_spore.md index 0551f211c23646820e904f241ca520cfc675faa5..57d24f5758b2a53cee3d86da8e59f3bf07181668 100644 --- a/zh-cn/application-dev/reference/native-apis/_mind_spore.md +++ b/zh-cn/application-dev/reference/native-apis/_mind_spore.md @@ -9,7 +9,6 @@ **起始版本:** - 9 @@ -51,29 +50,29 @@ | -------- | -------- | | [OH_AI_ContextHandle](#oh_ai_contexthandle) | Mindspore的上下文信息的指针,该指针会指向Context。 | | [OH_AI_DeviceInfoHandle](#oh_ai_deviceinfohandle) | Mindspore的运行设备信息的指针。 | -| [OH_AI_DataType](#oh_ai_datatype) | MSTensor保存的数据支持的类型。 | -| [OH_AI_Format](#oh_ai_format) | MSTensor保存的数据支持的排列格式。 | +| [OH_AI_DataType](#oh_ai_datatype-1) | MSTensor保存的数据支持的类型。 | +| [OH_AI_Format](#oh_ai_format-1) | MSTensor保存的数据支持的排列格式。 | | [OH_AI_ModelHandle](#oh_ai_modelhandle) | 指向模型对象的指针。 | | [OH_AI_TensorHandleArray](#oh_ai_tensorhandlearray) | 张量数组结构体,用于存储张量数组指针和张量数组长度。 | | [OH_AI_ShapeInfo](_o_h___a_i___shape_info.md) | 维度信息,最大的维度为**MS_MAX_SHAPE_NUM**。 | | [OH_AI_CallBackParam](#oh_ai_callbackparam) | 回调函数中传入的算子信息。 | | [OH_AI_KernelCallBack](#oh_ai_kernelcallback)) (const OH_AI_TensorHandleArray inputs, const OH_AI_TensorHandleArray outputs, const OH_AI_CallBackParam kernel_Info) | 回调函数指针。 | -| [OH_AI_Status](#oh_ai_status) | Minspore的状态码。 | +| [OH_AI_Status](#oh_ai_status-1) | Minspore的状态码。 | | [OH_AI_TensorHandle](#oh_ai_tensorhandle) | 指向张量对象句柄。 | -| [OH_AI_ModelType](#oh_ai_modeltype) | 模型文件的类型。 | -| [OH_AI_DeviceType](#oh_ai_devicetype) | 设备类型,该信息。 | +| [OH_AI_ModelType](#oh_ai_modeltype-1) | 模型文件的类型。 | +| [OH_AI_DeviceType](#oh_ai_devicetype-1) | 设备类型,该信息。 | ### 枚举 | 枚举名称 | 描述 | | -------- | -------- | -| [OH_AI_DataType](#oh_ai_datatype) {
OH_AI_DATATYPE_UNKNOWN = 0,
OH_AI_DATATYPE_OBJECTTYPE_STRING = 12,
OH_AI_DATATYPE_OBJECTTYPE_LIST = 13,
OH_AI_DATATYPE_OBJECTTYPE_TUPLE = 14,
OH_AI_DATATYPE_OBJECTTYPE_TENSOR = 17,
OH_AI_DATATYPE_NUMBERTYPE_BEGIN = 29,
OH_AI_DATATYPE_NUMBERTYPE_BOOL = 30,
OH_AI_DATATYPE_NUMBERTYPE_INT8 = 32,
OH_AI_DATATYPE_NUMBERTYPE_INT16 = 33,
OH_AI_DATATYPE_NUMBERTYPE_INT32 = 34,
OH_AI_DATATYPE_NUMBERTYPE_INT64 = 35,
OH_AI_DATATYPE_NUMBERTYPE_UINT8 = 37,
OH_AI_DATATYPE_NUMBERTYPE_UINT16 = 38,
OH_AI_DATATYPE_NUMBERTYPE_UINT32 = 39,
OH_AI_DATATYPE_NUMBERTYPE_UINT64 = 40,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT16 = 42,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT32 = 43,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT64 = 44,
OH_AI_DATATYPE_NUMBERTYPE_END = 46,
OH_AI_DataTypeInvalid = INT32_MAX } | MSTensor保存的数据支持的类型。 | -| [OH_AI_Format](#oh_ai_format) {
OH_AI_FORMAT_NCHW = 0,
OH_AI_FORMAT_NHWC = 1,
OH_AI_FORMAT_NHWC4 = 2,
OH_AI_FORMAT_HWKC = 3,
OH_AI_FORMAT_HWCK = 4,
OH_AI_FORMAT_KCHW = 5,
OH_AI_FORMAT_CKHW = 6,
OH_AI_FORMAT_KHWC = 7,
OH_AI_FORMAT_CHWK = 8,
OH_AI_FORMAT_HW = 9,
OH_AI_FORMAT_HW4 = 10,
OH_AI_FORMAT_NC = 11,
OH_AI_FORMAT_NC4 = 12,
OH_AI_FORMAT_NC4HW4 = 13,
OH_AI_FORMAT_NCDHW = 15,
OH_AI_FORMAT_NWC = 16,
OH_AI_FORMAT_NCW = 17 } | MSTensor保存的数据支持的排列格式。 | +| [OH_AI_DataType](#oh_ai_datatype-1) {
OH_AI_DATATYPE_UNKNOWN = 0,
OH_AI_DATATYPE_OBJECTTYPE_STRING = 12,
OH_AI_DATATYPE_OBJECTTYPE_LIST = 13,
OH_AI_DATATYPE_OBJECTTYPE_TUPLE = 14,
OH_AI_DATATYPE_OBJECTTYPE_TENSOR = 17,
OH_AI_DATATYPE_NUMBERTYPE_BEGIN = 29,
OH_AI_DATATYPE_NUMBERTYPE_BOOL = 30,
OH_AI_DATATYPE_NUMBERTYPE_INT8 = 32,
OH_AI_DATATYPE_NUMBERTYPE_INT16 = 33,
OH_AI_DATATYPE_NUMBERTYPE_INT32 = 34,
OH_AI_DATATYPE_NUMBERTYPE_INT64 = 35,
OH_AI_DATATYPE_NUMBERTYPE_UINT8 = 37,
OH_AI_DATATYPE_NUMBERTYPE_UINT16 = 38,
OH_AI_DATATYPE_NUMBERTYPE_UINT32 = 39,
OH_AI_DATATYPE_NUMBERTYPE_UINT64 = 40,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT16 = 42,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT32 = 43,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT64 = 44,
OH_AI_DATATYPE_NUMBERTYPE_END = 46,
OH_AI_DataTypeInvalid = INT32_MAX } | MSTensor保存的数据支持的类型。 | +| [OH_AI_Format](#oh_ai_format-1) {
OH_AI_FORMAT_NCHW = 0,
OH_AI_FORMAT_NHWC = 1,
OH_AI_FORMAT_NHWC4 = 2,
OH_AI_FORMAT_HWKC = 3,
OH_AI_FORMAT_HWCK = 4,
OH_AI_FORMAT_KCHW = 5,
OH_AI_FORMAT_CKHW = 6,
OH_AI_FORMAT_KHWC = 7,
OH_AI_FORMAT_CHWK = 8,
OH_AI_FORMAT_HW = 9,
OH_AI_FORMAT_HW4 = 10,
OH_AI_FORMAT_NC = 11,
OH_AI_FORMAT_NC4 = 12,
OH_AI_FORMAT_NC4HW4 = 13,
OH_AI_FORMAT_NCDHW = 15,
OH_AI_FORMAT_NWC = 16,
OH_AI_FORMAT_NCW = 17 } | MSTensor保存的数据支持的排列格式。 | | [OH_AI_CompCode](#oh_ai_compcode) {
OH_AI_COMPCODE_CORE = 0x00000000u,
OH_AI_COMPCODE_LITE = 0xF0000000u } | Minspore不同组件的代码、 | -| [OH_AI_Status](#oh_ai_status) {
OH_AI_STATUS_SUCCESS = 0,
OH_AI_STATUS_CORE_FAILED = OH_AI_COMPCODE_CORE \| 0x1,
OH_AI_STATUS_LITE_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -1),
OH_AI_STATUS_LITE_NULLPTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -2),
OH_AI_STATUS_LITE_PARAM_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -3),
OH_AI_STATUS_LITE_NO_CHANGE = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -4),
OH_AI_STATUS_LITE_SUCCESS_EXIT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -5),
OH_AI_STATUS_LITE_MEMORY_FAILED = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -6),
OH_AI_STATUS_LITE_NOT_SUPPORT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -7),
OH_AI_STATUS_LITE_THREADPOOL_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -8),
OH_AI_STATUS_LITE_UNINITIALIZED_OBJ = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -9),
OH_AI_STATUS_LITE_OUT_OF_TENSOR_RANGE,
OH_AI_STATUS_LITE_INPUT_TENSOR_ERROR,
OH_AI_STATUS_LITE_REENTRANT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -102),
OH_AI_STATUS_LITE_GRAPH_FILE_ERROR,
OH_AI_STATUS_LITE_NOT_FIND_OP = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -300), OH_AI_STATUS_LITE_INVALID_OP_NAME = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -301),
OH_AI_STATUS_LITE_INVALID_OP_ATTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -302),
OH_AI_STATUS_LITE_OP_EXECUTE_FAILURE,
OH_AI_STATUS_LITE_FORMAT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -400),
OH_AI_STATUS_LITE_INFER_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -500),
OH_AI_STATUS_LITE_INFER_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -501),
OH_AI_STATUS_LITE_INPUT_PARAM_INVALID } | Minspore的状态码。 | -| [OH_AI_ModelType](#oh_ai_modeltype) {
OH_AI_MODELTYPE_MINDIR = 0,
OH_AI_MODELTYPE_INVALID = 0xFFFFFFFF } | 模型文件的类型。 | -| [OH_AI_DeviceType](#oh_ai_devicetype) {
OH_AI_DEVICETYPE_CPU = 0,
OH_AI_DEVICETYPE_KIRIN_NPU,
OH_AI_DEVICETYPE_INVALID = 100 } | 设备类型,该信息。 | +| [OH_AI_Status](#oh_ai_status-1) {
OH_AI_STATUS_SUCCESS = 0,
OH_AI_STATUS_CORE_FAILED = OH_AI_COMPCODE_CORE \| 0x1,
OH_AI_STATUS_LITE_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -1),
OH_AI_STATUS_LITE_NULLPTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -2),
OH_AI_STATUS_LITE_PARAM_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -3),
OH_AI_STATUS_LITE_NO_CHANGE = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -4),
OH_AI_STATUS_LITE_SUCCESS_EXIT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -5),
OH_AI_STATUS_LITE_MEMORY_FAILED = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -6),
OH_AI_STATUS_LITE_NOT_SUPPORT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -7),
OH_AI_STATUS_LITE_THREADPOOL_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -8),
OH_AI_STATUS_LITE_UNINITIALIZED_OBJ = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -9),
OH_AI_STATUS_LITE_OUT_OF_TENSOR_RANGE,
OH_AI_STATUS_LITE_INPUT_TENSOR_ERROR,
OH_AI_STATUS_LITE_REENTRANT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -102),
OH_AI_STATUS_LITE_GRAPH_FILE_ERROR,
OH_AI_STATUS_LITE_NOT_FIND_OP = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -300), OH_AI_STATUS_LITE_INVALID_OP_NAME = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -301),
OH_AI_STATUS_LITE_INVALID_OP_ATTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -302),
OH_AI_STATUS_LITE_OP_EXECUTE_FAILURE,
OH_AI_STATUS_LITE_FORMAT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -400),
OH_AI_STATUS_LITE_INFER_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -500),
OH_AI_STATUS_LITE_INFER_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -501),
OH_AI_STATUS_LITE_INPUT_PARAM_INVALID } | Minspore的状态码。 | +| [OH_AI_ModelType](#oh_ai_modeltype-1) {
OH_AI_MODELTYPE_MINDIR = 0,
OH_AI_MODELTYPE_INVALID = 0xFFFFFFFF } | 模型文件的类型。 | +| [OH_AI_DeviceType](#oh_ai_devicetype-1) {
OH_AI_DEVICETYPE_CPU = 0,
OH_AI_DEVICETYPE_KIRIN_GPU,
OH_AI_DEVICETYPE_KIRIN_NPU,
OH_AI_DEVICETYPE_NNRT = 60,
OH_AI_DEVICETYPE_INVALID = 100 } | 设备类型信息,包含了目前支持的设备类型。 | ### 函数 @@ -363,7 +362,9 @@ enum OH_AI_DeviceType | 枚举值 | 描述 | | -------- | -------- | | OH_AI_DEVICETYPE_CPU | 设备类型是CPU。 | -| OH_AI_DEVICETYPE_KIRIN_NPU | 设备类型是麒麟NPU。 | +| OH_AI_DEVICETYPE_GPU | 设备类型是GPU。预留选项,暂不支持。 | +| OH_AI_DEVICETYPE_KIRIN_NPU | 设备类型是麒麟NPU。预留选项,暂不支持。 | +| OH_AI_DEVICETYPE_NNRT | 设备类型是NNRt。OHOS设备范围是[60,80)。 | | OH_AI_DEVICETYPE_INVALID | 设备类型无效。 | @@ -693,7 +694,7 @@ OH_AI_API OH_AI_DeviceInfoHandle OH_AI_DeviceInfoCreate (OH_AI_DeviceType device | 名称 | 描述 | | -------- | -------- | -| device_type | 设备类型, 具体见[OH_AI_DeviceType](#oh_ai_devicetype)。 | +| device_type | 设备类型, 具体见[OH_AI_DeviceType](#oh_ai_devicetype-1)。 | **返回:** @@ -913,7 +914,8 @@ OH_AI_API OH_AI_Status OH_AI_ModelBuild (OH_AI_ModelHandle model, const void * m **描述:** -从内存缓冲区加载并编译MindSpore模型。 +从内存缓冲区加载并编译MindSpore模型。 +注意,同一个[OH_AI_ContextHandle](#oh_ai_contexthandle)对象仅能传递给[OH_AI_ModelBuildFromFile](#oh_ai_modelbuildfromfile)或者[OH_AI_ModelBuild](#oh_ai_modelbuild)一次,如果多次调用该函数需要创建多个不同的[OH_AI_ContextHandle](#oh_ai_contexthandle)。 **参数:** @@ -922,12 +924,12 @@ OH_AI_API OH_AI_Status OH_AI_ModelBuild (OH_AI_ModelHandle model, const void * m | model | 模型对象指针。 | | model_data | 内存中已经加载的模型数据地址。 | | data_size | 模型数据的长度。 | -| model_type | 模型文件类型,具体见[OH_AI_ModelType](#oh_ai_modeltype)。 | +| model_type | 模型文件类型,具体见[OH_AI_ModelType](#oh_ai_modeltype-1)。 | | model_context | 模型运行时的上下文环境,具体见 [OH_AI_ContextHandle](#oh_ai_contexthandle)。 | **返回:** -枚举类型的状态码[OH_AI_Status](#oh_ai_status),若返回MSStatus::kMSStatusSuccess则证明创建成功。 +枚举类型的状态码[OH_AI_Status](#oh_ai_status-1),若返回MSStatus::kMSStatusSuccess则证明创建成功。 ### OH_AI_ModelBuildFromFile() @@ -940,6 +942,7 @@ OH_AI_API OH_AI_Status OH_AI_ModelBuildFromFile (OH_AI_ModelHandle model, const **描述:** 通过模型文件加载并编译MindSpore模型。 +注意,同一个[OH_AI_ContextHandle](#oh_ai_contexthandle)对象仅能传递给[OH_AI_ModelBuildFromFile](#oh_ai_modelbuildfromfile)或者[OH_AI_ModelBuild](#oh_ai_modelbuild)一次,如果多次调用该函数需要创建多个不同的[OH_AI_ContextHandle](#oh_ai_contexthandle)。 **参数:** @@ -947,12 +950,12 @@ OH_AI_API OH_AI_Status OH_AI_ModelBuildFromFile (OH_AI_ModelHandle model, const | -------- | -------- | | model | 模型对象指针。 | | model_path | 模型文件路径。 | -| model_type | 模型文件类型,具体见[OH_AI_ModelType](#oh_ai_modeltype)。 | +| model_type | 模型文件类型,具体见[OH_AI_ModelType](#oh_ai_modeltype-1)。 | | model_context | 模型运行时的上下文环境,具体见 [OH_AI_ContextHandle](#oh_ai_contexthandle)。 | **返回:** -枚举类型的状态码[OH_AI_Status](#oh_ai_status),若返回MSStatus::kMSStatusSuccess则证明创建成功。 +枚举类型的状态码[OH_AI_Status](#oh_ai_status-1),若返回MSStatus::kMSStatusSuccess则证明创建成功。 ### OH_AI_ModelCreate() @@ -1102,7 +1105,7 @@ OH_AI_API OH_AI_Status OH_AI_ModelPredict (OH_AI_ModelHandle model, const OH_AI_ **返回:** -枚举类型的状态码[OH_AI_Status](#oh_ai_status),若返回MSStatus::kMSStatusSuccess则证明创建成功。 +枚举类型的状态码[OH_AI_Status](#oh_ai_status-1),若返回MSStatus::kMSStatusSuccess则证明创建成功。 ### OH_AI_ModelResize() @@ -1127,7 +1130,7 @@ OH_AI_API OH_AI_Status OH_AI_ModelResize (OH_AI_ModelHandle model, const OH_AI_T **返回:** -枚举类型的状态码[OH_AI_Status](#oh_ai_status),若返回MSStatus::kMSStatusSuccess则证明创建成功。 +枚举类型的状态码[OH_AI_Status](#oh_ai_status-1),若返回MSStatus::kMSStatusSuccess则证明创建成功。 ### OH_AI_TensorClone() @@ -1409,7 +1412,7 @@ OH_AI_API void OH_AI_TensorSetDataType (OH_AI_TensorHandle tensor, OH_AI_DataTyp | 名称 | 描述 | | -------- | -------- | | tensor | 张量对象句柄。 | -| type | 数据类型,具体见[OH_AI_DataType](#oh_ai_datatype)。 | +| type | 数据类型,具体见[OH_AI_DataType](#oh_ai_datatype-1)。 | ### OH_AI_TensorSetFormat() diff --git a/zh-cn/application-dev/reference/native-apis/_native_vsync.md b/zh-cn/application-dev/reference/native-apis/_native_vsync.md index e62730449f71addc56f910a2028dbc2f2426d0a6..d6ac9d7952b94df30da0c0337afa03240f9f40db 100644 --- a/zh-cn/application-dev/reference/native-apis/_native_vsync.md +++ b/zh-cn/application-dev/reference/native-apis/_native_vsync.md @@ -20,7 +20,7 @@ | 文件名称 | 描述 | | -------- | -------- | -| [native_vsync.h](native__vsync_8h.md) | 定义获取和使用NativeVsync的相关函数 | +| [native_vsync.h](native__vsync_8h.md) | 定义获取和使用NativeVsync的相关函数
引用文件: | ### 函数 diff --git a/zh-cn/application-dev/reference/native-apis/_native_window.md b/zh-cn/application-dev/reference/native-apis/_native_window.md index de4b1ed61ab202945f114dada25062b2ff265e57..53603fbd849c446e244e7c227da123fdf3177cb7 100644 --- a/zh-cn/application-dev/reference/native-apis/_native_window.md +++ b/zh-cn/application-dev/reference/native-apis/_native_window.md @@ -20,7 +20,7 @@ | 文件名称 | 描述 | | -------- | -------- | -| [external_window.h](external__window_8h.md) | 定义获取和使用NativeWindow的相关函数 | +| [external_window.h](external__window_8h.md) | 定义获取和使用NativeWindow的相关函数
引用文件: | ### 结构体 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_async_callback.md b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_async_callback.md index e3a23ae49aeee2e7af9ae1cd57b3be47be64ae72..3ab552510fd099d33190a8936af06dc7013b6910 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_async_callback.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_async_callback.md @@ -3,7 +3,7 @@ ## 概述 -AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 +AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告的信息,以确保AVCodec正常运转。 @syscap SystemCapability.Multimedia.Media.CodecBase 参数 @@ -22,7 +22,7 @@ AVCodec所有的异步回调函数指针集合。注册一个该结构体实例 | 名称 | 描述 | | -------- | -------- | -| **onError** | [OH_AVCodecOnError](_codec_base.md#oh_avcodeconerror) | -| **onStreamChanged** | [OH_AVCodecOnStreamChanged](_codec_base.md#oh_avcodeconstreamchanged) | -| **onNeedInputData** | [OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) | -| **onNeedOutputData** | [OH_AVCodecOnNewOutputData](_codec_base.md#oh_avcodeconnewoutputdata) | +| **onError** | 监听AVCodec运行错误,参考[OH_AVCodecOnError](_codec_base.md#oh_avcodeconerror) | +| **onStreamChanged** | 监听编解码流信息,参考[OH_AVCodecOnStreamChanged](_codec_base.md#oh_avcodeconstreamchanged) | +| **onNeedInputData** | 监听编解码需要输入数据,参考[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) | +| **onNeedOutputData** | 监听编解码产生输出数据,参考[OH_AVCodecOnNewOutputData](_codec_base.md#oh_avcodeconnewoutputdata) | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_buffer_attr.md b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_buffer_attr.md index afb9dcbda4d2cb0d827ecd14229e00b82d1e2658..ad98600b4d12a7e46ed312ad97c001398fe6b2e7 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_buffer_attr.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_buffer_attr.md @@ -22,7 +22,7 @@ | 名称 | 描述 | | -------- | -------- | -| [pts](_codec_base.md#pts) | int64_t | -| [size](_codec_base.md#size) | int32_t | -| [offset](_codec_base.md#offset) | int32_t | -| [flags](_codec_base.md#flags) | uint32_t | +| [pts](_codec_base.md#pts) | 以微秒为单位表示的该Buffer的Presentation时间戳 | +| [size](_codec_base.md#size) | 以字节为单位表示的该Buffer内所包含数据的大小 | +| [offset](_codec_base.md#offset) | 有效数据在该Buffer内的起始偏移量 | +| [flags](_codec_base.md#flags) | 该Buffer具有的标记,也是多个[OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags)的组合 | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___blob.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___blob.md index c791969cfece6d04cc4fc1fdbcefe9aef353dd14..0884d339a9345e2bcb80e038104d3be0b31e40c2 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___blob.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___blob.md @@ -20,8 +20,8 @@ | 名称 | 描述 | | -------- | -------- | -| [size](#size) | uint32_t
数据大小 | -| [data](#data) | uint8_t \*
指向数据内存的指针 | +| [size](#size) | 数据大小 | +| [data](#data) | 指向数据内存的指针 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___cert_chain.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___cert_chain.md index e001d5d943b1c4a3c23f2337f0d3201f0e6bcc9d..66da7f66b16a190c7d88e206672b6f52378909e0 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___cert_chain.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___cert_chain.md @@ -20,8 +20,8 @@ | 名称 | 描述 | | -------- | -------- | -| [certs](#certs) | struct [OH_Huks_Blob](_o_h___huks___blob.md) \*
指向证书数据的指针。 | -| [certsCount](#certscount) | uint32_t
证书本数。 | +| [certs](#certs) | >指向证书数据的指针。 | +| [certsCount](#certscount) | 证书本数。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_info.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_info.md index d71e3a8c2afe1fbf5f7ba6584b2c1961fd309318..b296aa32fc84a90e92ca0f170c1a96a69e708f81 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_info.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_info.md @@ -20,8 +20,8 @@ | 名称 | 描述 | | -------- | -------- | -| [alias](#alias) | struct [OH_Huks_Blob](_o_h___huks___blob.md)
密钥的别名。 | -| [paramSet](#paramset) | struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*
指向密钥参数集的指针。 | +| [alias](#alias) | 密钥的别名。 | +| [paramSet](#paramset) | 指向密钥参数集的指针。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material25519.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material25519.md index 1fb23ea1bf638eac42d570d0f98cfcf79124c32a..b36b0617f668ea9ffe3679d324b60acb7120b54c 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material25519.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material25519.md @@ -20,11 +20,11 @@ | 名称 | 描述 | | -------- | -------- | -| [keyAlg](#keyalg) | enum [OH_Huks_KeyAlg](_huks_type_api.md#oh_huks_keyalg)
密钥的算法类型。 | -| [keySize](#keysize) | uint32_t
25519类型密钥的长度。 | -| [pubKeySize](#pubkeysize) | uint32_t
公钥的长度。 | -| [priKeySize](#prikeysize) | uint32_t
私钥的长度。 | -| [reserved](#reserved) | uint32_t
保留。 | +| [keyAlg](#keyalg) | 密钥的算法类型。 | +| [keySize](#keysize) | 25519类型密钥的长度。 | +| [pubKeySize](#pubkeysize) | 公钥的长度。 | +| [priKeySize](#prikeysize) | 私钥的长度。 | +| [reserved](#reserved) | 保留。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dh.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dh.md index 9b694fb3b0811448ea6791dcc3718ba7fef300e0..009931db4420b50c063245b90ac3e5fabf74b128 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dh.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dh.md @@ -20,11 +20,11 @@ | 名称 | 描述 | | -------- | -------- | -| [keyAlg](#keyalg) | enum [OH_Huks_KeyAlg](_huks_type_api.md#oh_huks_keyalg)
密钥的算法类型。 | -| [keySize](#keysize) | uint32_t
Dh密钥的长度。 | -| [pubKeySize](#pubkeysize) | uint32_t
公钥的长度。 | -| [priKeySize](#prikeysize) | uint32_t
私钥的长度。 | -| [reserved](#reserved) | uint32_t
保留。 | +| [keyAlg](#keyalg) | 密钥的算法类型。 | +| [keySize](#keysize) | Dh密钥的长度。 | +| [pubKeySize](#pubkeysize) | 公钥的长度。 | +| [priKeySize](#prikeysize) | 私钥的长度。 | +| [reserved](#reserved) | 保留。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dsa.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dsa.md index a385d57e862371a746500de9bc39d9fce6b5030a..32d2970690b9200e57d32beb8e67aaab6a5816ce 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dsa.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_dsa.md @@ -20,13 +20,13 @@ | 名称 | 描述 | | -------- | -------- | -| [keyAlg](#keyalg) | enum [OH_Huks_KeyAlg](_huks_type_api.md#oh_huks_keyalg)
密钥的算法类型。 | -| [keySize](#keysize) | uint32_t
密钥的长度。 | -| [xSize](#xsize) | uint32_t
x值的长度。 | -| [ySize](#ysize) | uint32_t
y值的长度。 | -| [pSize](#psize) | uint32_t
p值的长度。 | -| [qSize](#qsize) | uint32_t
q值的长度。 | -| [gSize](#gsize) | uint32_t
g值的长度。 | +| [keyAlg](#keyalg) | 密钥的算法类型。 | +| [keySize](#keysize) | 密钥的长度。 | +| [xSize](#xsize) | x值的长度。 | +| [ySize](#ysize) | y值的长度。 | +| [pSize](#psize) | p值的长度。 | +| [qSize](#qsize) | q值的长度。 | +| [gSize](#gsize) | g值的长度。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_ecc.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_ecc.md index faa3e9afa1e2b857b81426e7964ea19b619b6fa8..ae6507f5770a45f40f6c27eb9819b23ee2cac8b3 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_ecc.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_ecc.md @@ -20,11 +20,11 @@ | 名称 | 描述 | | -------- | -------- | -| [keyAlg](#keyalg) | enum [OH_Huks_KeyAlg](_huks_type_api.md#oh_huks_keyalg)
密钥的算法类型。 | -| [keySize](#keysize) | uint32_t
密钥的长度。 | -| [xSize](#xsize) | uint32_t
x值的长度。 | -| [ySize](#ysize) | uint32_t
y值的长度。 | -| [zSize](#zsize) | uint32_t
z值的长度。 | +| [keyAlg](#keyalg) | 密钥的算法类型。 | +| [keySize](#keysize) | 密钥的长度。 | +| [xSize](#xsize) | x值的长度。 | +| [ySize](#ysize) | y值的长度。 | +| [zSize](#zsize) | z值的长度。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_rsa.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_rsa.md index 6a2539c5fb9a4ab2643dd652ede983e5f1b1d074..af24f7410d589ad38fcc3e834b43ccd661893e92 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_rsa.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___key_material_rsa.md @@ -20,11 +20,11 @@ | 名称 | 描述 | | -------- | -------- | -| [keyAlg](#keyalg) | enum [OH_Huks_KeyAlg](_huks_type_api.md#oh_huks_keyalg)
密钥的算法类型。 | -| [keySize](#keysize) | uint32_t
密钥的长度。 | -| [nSize](#nsize) | uint32_t
n值的长度。 | -| [eSize](#esize) | uint32_t
e值的长度。 | -| [dSize](#dsize) | uint32_t
d值的长度。 | +| [keyAlg](#keyalg) | 密钥的算法类型。 | +| [keySize](#keysize) | 密钥的长度。 | +| [nSize](#nsize) | n值的长度。 | +| [eSize](#esize) | e值的长度。 | +| [dSize](#dsize) | d值的长度。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___param.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___param.md index 9337a31a37b461dc8b240922c5744e3ecafa8c15..8c8f2984d8a312b02f99bf433fcc7e140cd00662 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___param.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___param.md @@ -20,14 +20,8 @@ | 名称 | 描述 | | -------- | -------- | -| [tag](#tag) | uint32_t
标签值 | -| | union { | -| | bool [boolParam](#boolparam) | -| | int32_t [int32Param](#int32param) | -| | uint32_t [uint32Param](#uint32param) | -| | uint64_t [uint64Param](#uint64param) | -| | struct [OH_Huks_Blob](_o_h___huks___blob.md)[blob](#blob) | -| | }; | +| [tag](#tag) | 标签值 | +| union {
bool [boolParam](#boolparam);
int32_t [int32Param](#int32param);
uint32_t [uint32Param](#uint32param);
uint64_t [uint64Param](#uint64param);
struct [OH_Huks_Blob](_o_h___huks___blob.md)[blob](#blob);} | boolParam:bool型参数。
int32Param:int32_t型参数。
uint32Param:uint32_t型参数。
uint64Param:uint64_t型参数。
blob:struct OH_Huks_Blob型参数。| ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___param_set.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___param_set.md index 96bf7d00d5383908e6cce745c5914fece2ca073d..f5d04321866256906f8d8e73043c1eec685b7528 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___param_set.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___param_set.md @@ -20,9 +20,9 @@ | 名称 | 描述 | | -------- | -------- | -| [paramSetSize](#paramsetsize) | uint32_t
参数集的内存大小。 | -| [paramsCnt](#paramscnt) | uint32_t
参数的个数。 | -| [params](#params) [] | struct [OH_Huks_Param](_o_h___huks___param.md)
参数数组。 | +| [paramSetSize](#paramsetsize) | 参数集的内存大小。 | +| [paramsCnt](#paramscnt) | 参数的个数。 | +| [params](#params) [] | 参数数组。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___pub_key_info.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___pub_key_info.md index 91033fe5aa6a2374c1573d285e128d68b7e0839b..4fd596cfb1eb4738543dfacedf9ee93d3075bf7c 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___pub_key_info.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___pub_key_info.md @@ -20,11 +20,11 @@ | 名称 | 描述 | | -------- | -------- | -| [keyAlg](#keyalg) | enum [OH_Huks_KeyAlg](_huks_type_api.md#oh_huks_keyalg)
公钥的算法类型。 | -| [keySize](#keysize) | uint32_t
公钥的长度。 | -| [nOrXSize](#norxsize) | uint32_t
n或X值的长度。 | -| [eOrYSize](#eorysize) | uint32_t
e或Y值的长度。 | -| [placeHolder](#placeholder) | uint32_t
占位符大小。 | +| [keyAlg](#keyalg) | 公钥的算法类型。 | +| [keySize](#keysize) | 公钥的长度。 | +| [nOrXSize](#norxsize) | n或X值的长度。 | +| [eOrYSize](#eorysize) | e或Y值的长度。 | +| [placeHolder](#placeholder) | 占位符大小。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___huks___result.md b/zh-cn/application-dev/reference/native-apis/_o_h___huks___result.md index 72bf09ac4c9e2eebe11134753db00ebed07093c6..52ecaacee1f77be07268beef40ad3dbe01c4bee9 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___huks___result.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___huks___result.md @@ -20,9 +20,9 @@ | 名称 | 描述 | | -------- | -------- | -| [errorCode](#errorcode) | int32_t
状态返回码。 | -| [errorMsg](#errormsg) | const char \*
对状态返回码的说明信息。 | -| [data](#data) | uint8_t \*
其他返回数据。 | +| [errorCode](#errorcode) | 状态返回码。 | +| [errorMsg](#errormsg) | 对状态返回码的说明信息。 | +| [data](#data) | 其他返回数据。 | ## 结构体成员变量说明 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___native_buffer.md b/zh-cn/application-dev/reference/native-apis/_o_h___native_buffer.md index 9e7ea9a7493a1d067dfd3d0ea0ebc393fb7bba21..5c21208cc31682c61b4aadeb9fdc7f384261402b 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___native_buffer.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___native_buffer.md @@ -20,7 +20,7 @@ | 文件名称 | 描述 | | -------- | -------- | -| [native_buffer.h](native__buffer_8h.md) | 定义获取和使用NativeBuffer的相关函数 | +| [native_buffer.h](native__buffer_8h.md) | 定义获取和使用NativeBuffer的相关函数
引用文件: | ### 结构体 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___native_image.md b/zh-cn/application-dev/reference/native-apis/_o_h___native_image.md index 3a44d24db9aac58700039f5bbf045302f3a89960..4c9dfe176dc05c614a3cf700d0d54daff5ae2feb 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___native_image.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___native_image.md @@ -20,7 +20,7 @@ | 文件名称 | 描述 | | -------- | -------- | -| [native_image.h](native__image_8h.md) | 定义获取和使用NativeImage的相关函数。 | +| [native_image.h](native__image_8h.md) | 定义获取和使用NativeImage的相关函数。
引用文件: | ### 函数 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..ce4ede79ccf0fdb1f8679bc96859e71ffd19f048 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 @@ -16,7 +16,7 @@ | 文件名称 | 描述 | | ------------------------------------------------------------ | ------------------------------------ | -| [native_interface_xcomponent.h](native__interface__xcomponent_8h.md) | 声明用于访问Native XComponent的API。 | +| [native_interface_xcomponent.h](native__interface__xcomponent_8h.md) | 声明用于访问Native XComponent的API。
引用文件: | ### 结构体 @@ -45,6 +45,8 @@ | ------------------------------------------------------------ | ------------------------------------ | | {OH_NATIVEXCOMPONENT_RESULT_SUCCESS = 0,
OH_NATIVEXCOMPONENT_RESULT_FAILED = -1,
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2 } | [枚举](#anonymous-enum)API访问状态。 | | [OH_NativeXComponent_TouchEventType](#oh_nativexcomponent_toucheventtype) {
OH_NATIVEXCOMPONENT_DOWN = 0,
OH_NATIVEXCOMPONENT_UP,
OH_NATIVEXCOMPONENT_MOVE,
OH_NATIVEXCOMPONENT_CANCEL,
OH_NATIVEXCOMPONENT_UNKNOWN } | 触摸事件类型。 | +| [OH_NativeXComponent_TouchPointToolType](#oh_nativexcomponent_touchpointtooltype) {
OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN = 0,
OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGER,
OH_NATIVEXCOMPONENT_TOOL_TYPE_PEN,
OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBER,
OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSH,
OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCIL,
OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSH,
OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSE,
OH_NATIVEXCOMPONENT_TOOL_TYPE_LENS } | 触摸点工具类型。 | +| [OH_NativeXComponent_EventSourceType](#oh_nativexcomponent_eventsourcetype) {
OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN = 0,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE, OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK} | 触摸事件源类型。 | | [OH_NativeXComponent_MouseEventAction](#oh_nativexcomponent_mouseeventaction) {
OH_NATIVEXCOMPONENT_MOUSE_NONE = 0,
OH_NATIVEXCOMPONENT_MOUSE_PRESS,
OH_NATIVEXCOMPONENT_MOUSE_RELEASE,
OH_NATIVEXCOMPONENT_MOUSE_MOVE } | 鼠标事件动作。 | | [OH_NativeXComponent_MouseEventButton](#oh_nativexcomponent_mouseeventbutton) {
OH_NATIVEXCOMPONENT_NONE_BUTTON = 0,
OH_NATIVEXCOMPONENT_LEFT_BUTTON = 0x01,
OH_NATIVEXCOMPONENT_RIGHT_BUTTON = 0x02,
OH_NATIVEXCOMPONENT_MIDDLE_BUTTON = 0x04,
OH_NATIVEXCOMPONENT_BACK_BUTTON = 0x08,
OH_NATIVEXCOMPONENT_FORWARD_BUTTON = 0x10 } | 鼠标事件按键。 | @@ -57,6 +59,9 @@ | [OH_NativeXComponent_GetXComponentSize](#oh_nativexcomponent_getxcomponentsize) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, const void \*window, uint64_t \*width, uint64_t \*height) | 获取ArkUI XComponent持有的surface的大小。 | | [OH_NativeXComponent_GetXComponentOffset](#oh_nativexcomponent_getxcomponentoffset) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, const void \*window, double \*x, double \*y) | 获取ArkUI XComponent组件相对屏幕左上顶点的偏移量。 | | [OH_NativeXComponent_GetTouchEvent](#oh_nativexcomponent_gettouchevent) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, const void \*window, [OH_NativeXComponent_TouchEvent](_o_h___native_x_component___touch_event.md) \*touchEvent) | 获取ArkUI XComponent调度的触摸事件。 | +| [OH_NativeXComponent_GetTouchPointToolType](#oh_nativexcomponent_gettouchpointtooltype) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, uint32_t pointIndex, [OH_NativeXComponent_TouchPointToolType](#oh_nativexcomponent_touchpointtooltype) \*toolType) | 获取ArkUI XComponent触摸点工具类型。 | +| [OH_NativeXComponent_GetTouchPointTiltX](#oh_nativexcomponent_gettouchpointtiltx) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, uint32_t pointIndex, float \*tiltX) | 获取ArkUI XComponent触摸点倾斜与X轴角度。 | +| [OH_NativeXComponent_GetTouchPointTiltY](#oh_nativexcomponent_gettouchpointtilty) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, uint32_t pointIndex, float \*tiltY) | 获取ArkUI XComponent触摸点倾斜与Y轴角度。 | | [OH_NativeXComponent_GetMouseEvent](#oh_nativexcomponent_getmouseevent) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, const void \*window, [OH_NativeXComponent_MouseEvent](_o_h___native_x_component___mouse_event.md) \*mouseEvent) | 获取ArkUI XComponent调度的鼠标事件 | | [OH_NativeXComponent_RegisterCallback](#oh_nativexcomponent_registercallback) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, [OH_NativeXComponent_Callback](_o_h___native_x_component___callback.md) \*callback) | 为此OH_NativeXComponent实例注册回调。 | | [OH_NativeXComponent_RegisterMouseEventCallback](#oh_nativexcomponent_registermouseeventcallback) ([OH_NativeXComponent](#oh_nativexcomponent) \*component, [OH_NativeXComponent_MouseEvent_Callback](_o_h___native_x_component___mouse_event___callback.md) \*callback) | 为此OH_NativeXComponent实例注册鼠标事件回调。 | @@ -69,8 +74,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 | 触摸点相对于XComponent所在应用窗口左上角的x坐标。 | +| [OH_NativeXComponent_TouchPoint::screenY](#screeny-13) = 0.0 | 触摸点相对于XComponent所在应用窗口左上角的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 +84,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 | 触摸点相对于XComponent所在应用窗口左上角的x坐标。 | +| [OH_NativeXComponent_TouchEvent::screenY](#screeny-23) = 0.0 | 触摸点相对于XComponent所在应用窗口左上角的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 +97,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 | 点击触点相对于XComponent所在应用窗口左上角的x轴坐标。 | +| [OH_NativeXComponent_MouseEvent::screenY](#screeny-33) = 0.0 | 点击触点相对于XComponent所在应用窗口左上角的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) | 鼠标事件按键。 | @@ -183,6 +188,30 @@ anonymous enum 8 +### OH_NativeXComponent_EventSourceType + +OH_NativeXComponent_EventSourceType + + +``` +enum OH_NativeXComponent_EventSourceType +``` + +**描述:** + +触摸事件源类型。 + +| 枚举值 | 描述 | +| -------- | -------- | +| OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN | 未知的输入源类型。 | +| OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE | 表示输入源生成鼠标多点触摸事件。 | +| OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN | 表示输入源生成一个触摸屏多点触摸事件。 | +| OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD | 表示输入源生成一个触摸板多点触摸事件。 | +| OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK | 表示输入源生成一个操纵杆多点触摸事件。 | + +**起始版本:** + +9 ### OH_NativeXComponent_MouseEventAction @@ -255,6 +284,33 @@ enum OH_NativeXComponent_TouchEventType 8 +### OH_NativeXComponent_TouchPointToolType + + +``` +enum OH_NativeXComponent_TouchPointToolType +``` + +**描述:** + +触摸点工具类型 + +| 枚举值 | 描述 | +| -------- | -------- | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN | 无效的工具类型。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGER | 表示用手指。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_PEN | 表示用触笔。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBER | 表示用橡皮擦。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSH | 表示用画笔。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCIL | 表示用铅笔。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSH | 表示用气笔。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSE | 表示用鼠标。 | +| OH_NATIVEXCOMPONENT_TOOL_TYPE_LENS | 表示用晶状体。 | + +**起始版本:** + +9 + ## 函数说明 @@ -314,6 +370,89 @@ int32_t OH_NativeXComponent_GetTouchEvent (OH_NativeXComponent * component, cons 8 +### OH_NativeXComponent_GetTouchPointTiltX() + + +``` +int32_t OH_NativeXComponent_GetTouchPointTiltX (OH_NativeXComponent * component, uint32_t pointIndex, float * tiltX ) +``` + +**描述:** + +获取ArkUI XComponent触摸点倾斜与X轴角度。 + +**参数:** + +| Name | 描述 | +| -------- | -------- | +| component | 表示指向OH_NativeXComponent实例的指针。 | +| pointIndex | 表示触摸点的指针索引。 | +| tiltX | 表示指向X倾斜度的指针。 | + +**返回:** + +返回执行的状态代码。 + +**起始版本:** + +9 + + +### OH_NativeXComponent_GetTouchPointTiltY() + + +``` +int32_t OH_NativeXComponent_GetTouchPointTiltX (OH_NativeXComponent * component, uint32_t pointIndex, float * tiltY ) +``` + +**描述:** + +获取ArkUI XComponent触摸点倾斜与Y轴角度。 + +**参数:** + +| Name | 描述 | +| -------- | -------- | +| component | 表示指向OH_NativeXComponent实例的指针。 | +| pointIndex | 表示触摸点的指针索引。 | +| tiltX | 表示指向Y倾斜度的指针。 | + +**返回:** + +返回执行的状态代码。 + +**起始版本:** + +9 + + +### OH_NativeXComponent_GetTouchPointToolType() + + +``` +int32_t OH_NativeXComponent_GetTouchPointToolType (OH_NativeXComponent * component, uint32_t pointIndex, OH_NativeXComponent_TouchPointToolType * toolType ) +``` + +**描述:** + +获取ArkUI XComponent触摸点工具类型。 + +**参数:** + +| Name | 描述 | +| -------- | -------- | +| component | 表示指向OH_NativeXComponent实例的指针。 | +| pointIndex | 表示触摸点的指针索引。 | +| toolType | 表示指向工具类型的指针。 | + +**返回:** + +返回执行的状态代码。 + +**起始版本:** + +9 + ### OH_NativeXComponent_GetXComponentId() @@ -739,7 +878,7 @@ float OH_NativeXComponent_TouchPoint::screenX = 0.0 **描述:** -触摸点相对于屏幕左边缘的x坐标。 +触摸点相对于应用窗口左上角的x坐标。 **起始版本:** @@ -755,7 +894,7 @@ float OH_NativeXComponent_TouchEvent::screenX = 0.0 **描述:** -触摸点相对于屏幕左边缘的x坐标。 +触摸点相对于应用窗口左上角的x坐标。 **起始版本:** @@ -771,7 +910,7 @@ float OH_NativeXComponent_MouseEvent::screenX **描述:** -点击触点相对于屏幕左上角的x轴坐标。 +点击触点相对于应用窗口左上角的x轴坐标。 **起始版本:** @@ -787,7 +926,7 @@ float OH_NativeXComponent_TouchPoint::screenY = 0.0 **描述:** -触摸点相对于屏幕上边缘的y坐标。 +触摸点相对于应用窗口左上角的y坐标。 **起始版本:** @@ -803,7 +942,7 @@ float OH_NativeXComponent_TouchEvent::screenY = 0.0 **描述:** -触摸点相对于屏幕上边缘的y坐标。 +触摸点相对于应用窗口左上角的y坐标。 **起始版本:** @@ -819,7 +958,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..de7cd5df2b81ae37f6438a613d1be812ddbf3cd9 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) | 点击触点相对于XComponent所在应用窗口左上角的x轴坐标。 | +| [screenY = 0.0](_o_h___native_x_component.md#screeny-33) | 点击触点相对于XComponent所在应用窗口左上角的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..a0f5d9a674ddb249cc4423f50606642d178ce78c 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 | 触摸点相对于XComponent所在应用窗口左上角的x坐标。 | +| [screenY](_o_h___native_x_component.md#screeny-23) = 0.0 | 触摸点相对于XComponent所在应用窗口左上角的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..5b9ffc720481735ca7f468fb6f3c76a680bc0cb9 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 | 触摸点相对于XComponent所在应用窗口左上角的x坐标。 | +| [screenY](_o_h___native_x_component.md#screeny-13) = 0.0 | 触摸点相对于XComponent所在应用窗口左上角的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/native-apis/_video_decoder.md b/zh-cn/application-dev/reference/native-apis/_video_decoder.md index b66b206536b6476435b118d3c7a44ceee9d5df8c..e14a226d2513e514cf448d2e81772bb452598723 100644 --- a/zh-cn/application-dev/reference/native-apis/_video_decoder.md +++ b/zh-cn/application-dev/reference/native-apis/_video_decoder.md @@ -9,8 +9,7 @@ VideoDecoder模块提供用于视频解码功能的函数。 **起始版本:** 9 -**Version:** -1.0 + ## 汇总 @@ -19,29 +18,29 @@ VideoDecoder模块提供用于视频解码功能的函数。 | 名称 | 描述 | | -------- | -------- | -| [native_avcodec_videodecoder.h](native__avcodec__videodecoder_8h.md) | 声明用于视频解码的Native API。 | +| [native_avcodec_videodecoder.h](native__avcodec__videodecoder_8h.md) | 声明用于视频解码的Native API。
引用文件: | ### 函数 | 名称 | 描述 | | -------- | -------- | -| [OH_VideoDecoder_CreateByMime](#oh_videodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频解码器实例,大多数情况下推荐使用该接口。 | -| [OH_VideoDecoder_CreateByName](#oh_videodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频解码器名称创建一个视频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | -| [OH_VideoDecoder_Destroy](#oh_videodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例。 | -| [OH_VideoDecoder_SetCallback](#oh_videodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoDecoder_SetSurface](#oh_videodecoder_setsurface) (OH_AVCodec \*codec, OHNativeWindow \*window) | [OH_AVErrCode](_core.md#oh_averrcode)
指定输出Surface,以提供视频解码输出,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoDecoder_Configure](#oh_videodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频解码器,典型地,需要配置被解码视频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoDecoder_Prepare](#oh_videodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_VideoDecoder_Start](#oh_videodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_VideoDecoder_Stop](#oh_videodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | -| [OH_VideoDecoder_Flush](#oh_videodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_VideoDecoder_Reset](#oh_videodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | -| [OH_VideoDecoder_GetOutputDescription](#oh_videodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | -| [OH_VideoDecoder_SetParameter](#oh_videodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | -| [OH_VideoDecoder_PushInputData](#oh_videodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给视频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程,例如H264格式的PPS/SPS数据。 | -| [OH_VideoDecoder_RenderOutputData](#oh_videodecoder_renderoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器,并通知解码器完成将该Buffer内包含的解码后的数据在输出Surface上渲染。 如果先前未配置输出Surface,调用该接口仅仅将指定索引对应的输出Buffer交还给解码器。 | -| [OH_VideoDecoder_FreeOutputData](#oh_videodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | +| [OH_VideoDecoder_CreateByMime](#oh_videodecoder_createbymime) (const char \*mime) | 通过mime类型创建一个视频解码器实例,大多数情况下推荐使用该接口。 | +| [OH_VideoDecoder_CreateByName](#oh_videodecoder_createbyname) (const char \*name) | 通过视频解码器名称创建一个视频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | +| [OH_VideoDecoder_Destroy](#oh_videodecoder_destroy) (OH_AVCodec \*codec) | 清空解码器内部资源,并销毁解码器实例。 | +| [OH_VideoDecoder_SetCallback](#oh_videodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应视频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_SetSurface](#oh_videodecoder_setsurface) (OH_AVCodec \*codec, OHNativeWindow \*window) | 指定输出Surface,以提供视频解码输出,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_Configure](#oh_videodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置视频解码器,典型地,需要配置被解码视频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_Prepare](#oh_videodecoder_prepare) (OH_AVCodec \*codec) | 准备解码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_VideoDecoder_Start](#oh_videodecoder_start) (OH_AVCodec \*codec) | 启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_VideoDecoder_Stop](#oh_videodecoder_stop) (OH_AVCodec \*codec) | 停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | +| [OH_VideoDecoder_Flush](#oh_videodecoder_flush) (OH_AVCodec \*codec) | 清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_VideoDecoder_Reset](#oh_videodecoder_reset) (OH_AVCodec \*codec) | 重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | +| [OH_VideoDecoder_GetOutputDescription](#oh_videodecoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | +| [OH_VideoDecoder_SetParameter](#oh_videodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | +| [OH_VideoDecoder_PushInputData](#oh_videodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | 将填充好数据的输入Buffer提交给视频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程,例如H264格式的PPS/SPS数据。 | +| [OH_VideoDecoder_RenderOutputData](#oh_videodecoder_renderoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给解码器,并通知解码器完成将该Buffer内包含的解码后的数据在输出Surface上渲染。 如果先前未配置输出Surface,调用该接口仅仅将指定索引对应的输出Buffer交还给解码器。 | +| [OH_VideoDecoder_FreeOutputData](#oh_videodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给解码器。 | ## 函数说明 diff --git a/zh-cn/application-dev/reference/native-apis/_video_encoder.md b/zh-cn/application-dev/reference/native-apis/_video_encoder.md index fe5f834ca68ef1d9d04fdc647f346aa801bb5fa6..1add6078088f5133af03e1e7565e653957364e75 100644 --- a/zh-cn/application-dev/reference/native-apis/_video_encoder.md +++ b/zh-cn/application-dev/reference/native-apis/_video_encoder.md @@ -9,8 +9,6 @@ VideoEncoder模块提供用于视频编码功能的函数和枚举。 **起始版本:** 9 -**Version:** -1.0 ## 汇总 @@ -19,14 +17,14 @@ VideoEncoder模块提供用于视频编码功能的函数和枚举。 | 名称 | 描述 | | -------- | -------- | -| [native_avcodec_videoencoder.h](native__avcodec__videoencoder_8h.md) | 声明用于视频编码的Native API。 | +| [native_avcodec_videoencoder.h](native__avcodec__videoencoder_8h.md) | 声明用于视频编码的Native API。
引用文件: | ### 类型定义 | 名称 | 描述 | | -------- | -------- | -| [OH_VideoEncodeBitrateMode](#oh_videoencodebitratemode) | typedef enum [OH_VideoEncodeBitrateMode](#oh_videoencodebitratemode)
视频编码的比特率模式。 | +| [OH_VideoEncodeBitrateMode](#oh_videoencodebitratemode) | 视频编码的比特率模式。 | ### 枚举 @@ -40,21 +38,21 @@ VideoEncoder模块提供用于视频编码功能的函数和枚举。 | 名称 | 描述 | | -------- | -------- | -| [OH_VideoEncoder_CreateByMime](#oh_videoencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频编码器实例,大多数情况下推荐使用该接口。 | -| [OH_VideoEncoder_CreateByName](#oh_videoencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频编码器名称创建一个视频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | -| [OH_VideoEncoder_Destroy](#oh_videoencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | -| [OH_VideoEncoder_SetCallback](#oh_videoencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoEncoder_Configure](#oh_videoencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频编码器,典型地,需要配置被编码视频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoEncoder_Prepare](#oh_videoencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_VideoEncoder_Start](#oh_videoencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_VideoEncoder_Stop](#oh_videoencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | -| [OH_VideoEncoder_Flush](#oh_videoencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_VideoEncoder_Reset](#oh_videoencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | -| [OH_VideoEncoder_GetOutputDescription](#oh_videoencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | -| [OH_VideoEncoder_SetParameter](#oh_videoencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | -| [OH_VideoEncoder_GetSurface](#oh_videoencoder_getsurface) (OH_AVCodec \*codec, OHNativeWindow \*\*window) | [OH_AVErrCode](_core.md#oh_averrcode)
从视频编码器获取输入Surface, 该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoEncoder_FreeOutputData](#oh_videoencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | -| [OH_VideoEncoder_NotifyEndOfStream](#oh_videoencoder_notifyendofstream) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
通知视频编码器输入码流已结束。surface模式推荐使用该接口通知编码器码流结束。 | +| [OH_VideoEncoder_CreateByMime](#oh_videoencoder_createbymime) (const char \*mime) | 通过mime类型创建一个视频编码器实例,大多数情况下推荐使用该接口。 | +| [OH_VideoEncoder_CreateByName](#oh_videoencoder_createbyname) (const char \*name) | 通过视频编码器名称创建一个视频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | +| [OH_VideoEncoder_Destroy](#oh_videoencoder_destroy) (OH_AVCodec \*codec) | 清空编码器内部资源,并销毁编码器实例。 | +| [OH_VideoEncoder_SetCallback](#oh_videoencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应视频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_Configure](#oh_videoencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置视频编码器,典型地,需要配置被编码视频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_Prepare](#oh_videoencoder_prepare) (OH_AVCodec \*codec) | 准备编码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_VideoEncoder_Start](#oh_videoencoder_start) (OH_AVCodec \*codec) | 启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_VideoEncoder_Stop](#oh_videoencoder_stop) (OH_AVCodec \*codec) | 停止编码器。在停止后可通过Start重新进入Started状态。 | +| [OH_VideoEncoder_Flush](#oh_videoencoder_flush) (OH_AVCodec \*codec) | 清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_VideoEncoder_Reset](#oh_videoencoder_reset) (OH_AVCodec \*codec) | 重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | +| [OH_VideoEncoder_GetOutputDescription](#oh_videoencoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | +| [OH_VideoEncoder_SetParameter](#oh_videoencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | +| [OH_VideoEncoder_GetSurface](#oh_videoencoder_getsurface) (OH_AVCodec \*codec, OHNativeWindow \*\*window) | 从视频编码器获取输入Surface, 该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_FreeOutputData](#oh_videoencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给编码器。 | +| [OH_VideoEncoder_NotifyEndOfStream](#oh_videoencoder_notifyendofstream) (OH_AVCodec \*codec) | 通知视频编码器输入码流已结束。surface模式推荐使用该接口通知编码器码流结束。 | ## 类型定义说明 diff --git a/zh-cn/application-dev/reference/native-apis/data__type_8h.md b/zh-cn/application-dev/reference/native-apis/data__type_8h.md index 71ff1dacd1232b1aeac1c2fda397c98b128ceed2..e6f3ae88030c7a2caa5d28126cd8141a7d3fda8e 100644 --- a/zh-cn/application-dev/reference/native-apis/data__type_8h.md +++ b/zh-cn/application-dev/reference/native-apis/data__type_8h.md @@ -21,11 +21,11 @@ | 类型定义名称 | 描述 | | -------- | -------- | -| [OH_AI_DataType](_mind_spore.md#oh_ai_datatype) | MSTensor保存的数据支持的类型。 | +| [OH_AI_DataType](_mind_spore.md#oh_ai_datatype-1) | MSTensor保存的数据支持的类型。 | ### 枚举 | 枚举名称 | 描述 | | -------- | -------- | -| [OH_AI_DataType](_mind_spore.md#oh_ai_datatype) {
OH_AI_DATATYPE_UNKNOWN = 0,
OH_AI_DATATYPE_OBJECTTYPE_STRING = 12,
OH_AI_DATATYPE_OBJECTTYPE_LIST = 13,
OH_AI_DATATYPE_OBJECTTYPE_TUPLE = 14,
OH_AI_DATATYPE_OBJECTTYPE_TENSOR = 17,
OH_AI_DATATYPE_NUMBERTYPE_BEGIN = 29,
OH_AI_DATATYPE_NUMBERTYPE_BOOL = 30,
OH_AI_DATATYPE_NUMBERTYPE_INT8 = 32,
OH_AI_DATATYPE_NUMBERTYPE_INT16 = 33,
OH_AI_DATATYPE_NUMBERTYPE_INT32 = 34,
OH_AI_DATATYPE_NUMBERTYPE_INT64 = 35,
OH_AI_DATATYPE_NUMBERTYPE_UINT8 = 37,
OH_AI_DATATYPE_NUMBERTYPE_UINT16 = 38,
OH_AI_DATATYPE_NUMBERTYPE_UINT32 = 39,
OH_AI_DATATYPE_NUMBERTYPE_UINT64 = 40,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT16 = 42,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT32 = 43,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT64 = 44,
OH_AI_DATATYPE_NUMBERTYPE_END = 46,
OH_AI_DataTypeInvalid = INT32_MAX } | MSTensor保存的数据支持的类型。 | +| [OH_AI_DataType](_mind_spore.md#oh_ai_datatype-1) {
OH_AI_DATATYPE_UNKNOWN = 0,
OH_AI_DATATYPE_OBJECTTYPE_STRING = 12,
OH_AI_DATATYPE_OBJECTTYPE_LIST = 13,
OH_AI_DATATYPE_OBJECTTYPE_TUPLE = 14,
OH_AI_DATATYPE_OBJECTTYPE_TENSOR = 17,
OH_AI_DATATYPE_NUMBERTYPE_BEGIN = 29,
OH_AI_DATATYPE_NUMBERTYPE_BOOL = 30,
OH_AI_DATATYPE_NUMBERTYPE_INT8 = 32,
OH_AI_DATATYPE_NUMBERTYPE_INT16 = 33,
OH_AI_DATATYPE_NUMBERTYPE_INT32 = 34,
OH_AI_DATATYPE_NUMBERTYPE_INT64 = 35,
OH_AI_DATATYPE_NUMBERTYPE_UINT8 = 37,
OH_AI_DATATYPE_NUMBERTYPE_UINT16 = 38,
OH_AI_DATATYPE_NUMBERTYPE_UINT32 = 39,
OH_AI_DATATYPE_NUMBERTYPE_UINT64 = 40,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT16 = 42,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT32 = 43,
OH_AI_DATATYPE_NUMBERTYPE_FLOAT64 = 44,
OH_AI_DATATYPE_NUMBERTYPE_END = 46,
OH_AI_DataTypeInvalid = INT32_MAX } | MSTensor保存的数据支持的类型。 | diff --git a/zh-cn/application-dev/reference/native-apis/drawing__text__typography_8h.md b/zh-cn/application-dev/reference/native-apis/drawing__text__typography_8h.md index df9ffa315784eb0f24344ec82a300446547048ff..975c37413eec96942bfdffba7463ddc00dbf3a41 100644 --- a/zh-cn/application-dev/reference/native-apis/drawing__text__typography_8h.md +++ b/zh-cn/application-dev/reference/native-apis/drawing__text__typography_8h.md @@ -27,6 +27,14 @@ | [OH_Drawing_TextBaseline](_drawing.md#oh_drawing_textbaseline) { TEXT_BASELINE_ALPHABETIC, TEXT_BASELINE_IDEOGRAPHIC } | 基线位置 | | [OH_Drawing_TextDecoration](_drawing.md#oh_drawing_textdecoration) { TEXT_DECORATION_NONE = 0x0, TEXT_DECORATION_UNDERLINE = 0x1, TEXT_DECORATION_OVERLINE = 0x2, TEXT_DECORATION_LINE_THROUGH = 0x4 } | 文本装饰 | | [OH_Drawing_FontStyle](_drawing.md#oh_drawing_fontstyle) { FONT_STYLE_NORMAL, FONT_STYLE_ITALIC } | 区分字体是否为斜体 | +| [OH_Drawing_TypographyGetMaxWidth](_drawing.md#oh_drawing_typographygetmaxwidth) ([OH_Drawing_Typography](_drawing.md#oh_drawing_typography) *) | 获取最大宽度。 | +| [OH_Drawing_TypographyGetHeight](_drawing.md#oh_drawing_typographygetheight) ([OH_Drawing_Typography](_drawing.md#oh_drawing_typography) *) | 获取高度。 | +| [OH_Drawing_TypographyGetLongestLine](_drawing.md#oh_drawing_typographygetlongestline) ([OH_Drawing_Typography](_drawing.md#oh_drawing_typography) *) | 获取最长行。 | +| [OH_Drawing_TypographyGetMinIntrinsicWidth](_drawing.md#oh_drawing_typographygetminintrinsicwidth) ([OH_Drawing_Typography](_drawing.md#oh_drawing_typography) *) | 获取最小固有宽度。 | +| [OH_Drawing_TypographyGetMaxIntrinsicWidth](_drawing.md#oh_drawing_typographygetmaxintrinsicwidth) ([OH_Drawing_Typography](_drawing.md#oh_drawing_typography) *) | 获取最大固有宽度。 | +| [OH_Drawing_TypographyGetAlphabeticBaseline](_drawing.md#oh_drawing_typographygetalphabeticbaseline)([OH_Drawing_Typography](_drawing.md#oh_drawing_typography) *) | 获取字母文字基线。 | +| [OH_Drawing_TypographyGetIdeographicBaseline](_drawing.md#oh_drawing_typographygetideographicbaseline) ([OH_Drawing_Typography](_drawing.md#oh_drawing_typography) *) | 获取表意文字基线。 | + ### 函数 diff --git a/zh-cn/application-dev/reference/native-apis/format_8h.md b/zh-cn/application-dev/reference/native-apis/format_8h.md index 3f112e510a3b0cb9b9ba491cbb43c88ce3632442..f871f5306308c21031826c875e1905d8327e2f85 100644 --- a/zh-cn/application-dev/reference/native-apis/format_8h.md +++ b/zh-cn/application-dev/reference/native-apis/format_8h.md @@ -21,11 +21,11 @@ | 类型定义名称 | 描述 | | -------- | -------- | -| [OH_AI_Format](_mind_spore.md#oh_ai_format) | MSTensor保存的数据支持的排列格式。 | +| [OH_AI_Format](_mind_spore.md#oh_ai_format-1) | MSTensor保存的数据支持的排列格式。 | ### 枚举 | 枚举名称 | 描述 | | -------- | -------- | -| [OH_AI_Format](_mind_spore.md#oh_ai_format) {
OH_AI_FORMAT_NCHW = 0,
OH_AI_FORMAT_NHWC = 1,
OH_AI_FORMAT_NHWC4 = 2,
OH_AI_FORMAT_HWKC = 3,
OH_AI_FORMAT_HWCK = 4,
OH_AI_FORMAT_KCHW = 5,
OH_AI_FORMAT_CKHW = 6,
OH_AI_FORMAT_KHWC = 7,
OH_AI_FORMAT_CHWK = 8,
OH_AI_FORMAT_HW = 9,
OH_AI_FORMAT_HW4 = 10,
OH_AI_FORMAT_NC = 11,
OH_AI_FORMAT_NC4 = 12,
OH_AI_FORMAT_NC4HW4 = 13,
OH_AI_FORMAT_NCDHW = 15,
OH_AI_FORMAT_NWC = 16,
OH_AI_FORMAT_NCW = 17 } | MSTensor保存的数据支持的排列格式。 | +| [OH_AI_Format](_mind_spore.md#oh_ai_format-1) {
OH_AI_FORMAT_NCHW = 0,
OH_AI_FORMAT_NHWC = 1,
OH_AI_FORMAT_NHWC4 = 2,
OH_AI_FORMAT_HWKC = 3,
OH_AI_FORMAT_HWCK = 4,
OH_AI_FORMAT_KCHW = 5,
OH_AI_FORMAT_CKHW = 6,
OH_AI_FORMAT_KHWC = 7,
OH_AI_FORMAT_CHWK = 8,
OH_AI_FORMAT_HW = 9,
OH_AI_FORMAT_HW4 = 10,
OH_AI_FORMAT_NC = 11,
OH_AI_FORMAT_NC4 = 12,
OH_AI_FORMAT_NC4HW4 = 13,
OH_AI_FORMAT_NCDHW = 15,
OH_AI_FORMAT_NWC = 16,
OH_AI_FORMAT_NCW = 17 } | MSTensor保存的数据支持的排列格式。 | diff --git a/zh-cn/application-dev/reference/native-apis/image.md b/zh-cn/application-dev/reference/native-apis/image.md index d50f0bbfa2ad11d08451fec84057d2b6d03f1248..cf797efca64d6f5a7675551bc9aba9c66dbcbb5f 100644 --- a/zh-cn/application-dev/reference/native-apis/image.md +++ b/zh-cn/application-dev/reference/native-apis/image.md @@ -20,7 +20,7 @@ | 文件名称 | 描述 | | -------- | -------- | -| [image_pixel_map_napi.h](image__pixel__map__napi_8h.md) | 声明可以锁定并访问pixelmap数据的方法,声明解锁的方法。 | +| [image_pixel_map_napi.h](image__pixel__map__napi_8h.md) | 声明可以锁定并访问pixelmap数据的方法,声明解锁的方法。
引用文件:| ### 结构体 diff --git a/zh-cn/application-dev/reference/native-apis/model_8h.md b/zh-cn/application-dev/reference/native-apis/model_8h.md index cc40752409841b6a906fe7290b77a34f2947edb6..be99c58c1982ead1d6a860868eb9d3425b82c9b8 100644 --- a/zh-cn/application-dev/reference/native-apis/model_8h.md +++ b/zh-cn/application-dev/reference/native-apis/model_8h.md @@ -50,8 +50,8 @@ | -------- | -------- | | [OH_AI_ModelCreate](_mind_spore.md#oh_ai_modelcreate) () | 创建一个模型对象。 | | [OH_AI_ModelDestroy](_mind_spore.md#oh_ai_modeldestroy) (OH_AI_ModelHandle \*model) | 释放一个模型对象。 | -| [OH_AI_ModelBuild](_mind_spore.md#oh_ai_modelbuild) (OH_AI_ModelHandle model, const void \*model_data,
size_t data_size, OH_AI_ModelType model_type,
const OH_AI_ContextHandle model_context) | 从内存缓冲区加载并编译MindSpore模型。 | -| [OH_AI_ModelBuildFromFile](_mind_spore.md#oh_ai_modelbuildfromfile) (OH_AI_ModelHandle model,
const char \*model_path, OH_AI_ModelType model_type, const OH_AI_ContextHandle model_context) | 通过模型文件加载并编译MindSpore模型。 | +| [OH_AI_ModelBuild](_mind_spore.md#oh_ai_modelbuild) (OH_AI_ModelHandle model, const void \*model_data,
size_t data_size, OH_AI_ModelType model_type,
const OH_AI_ContextHandle model_context) | 从内存缓冲区加载并编译MindSpore模型。注意,同一个[OH_AI_ContextHandle](_mind_spore.md#oh_ai_contexthandle)对象仅能传递给[OH_AI_ModelBuildFromFile](_mind_spore.md#oh_ai_modelbuildfromfile)或者[OH_AI_ModelBuild](_mind_spore.md#oh_ai_modelbuild)一次,如果多次调用该函数需要创建多个不同的[OH_AI_ContextHandle](_mind_spore.md#oh_ai_contexthandle)。 | +| [OH_AI_ModelBuildFromFile](_mind_spore.md#oh_ai_modelbuildfromfile) (OH_AI_ModelHandle model,
const char \*model_path, OH_AI_ModelType model_type, const OH_AI_ContextHandle model_context) | 通过模型文件加载并编译MindSpore模型。注意,同一个[OH_AI_ContextHandle](_mind_spore.md#oh_ai_contexthandle)对象仅能传递给[OH_AI_ModelBuildFromFile](_mind_spore.md#oh_ai_modelbuildfromfile)或者[OH_AI_ModelBuild](_mind_spore.md#oh_ai_modelbuild)一次,如果多次调用该函数需要创建多个不同的[OH_AI_ContextHandle](_mind_spore.md#oh_ai_contexthandle)。 | | [OH_AI_ModelResize](_mind_spore.md#oh_ai_modelresize) (OH_AI_ModelHandle model, const OH_AI_TensorHandleArray inputs,
OH_AI_ShapeInfo \*shape_infos, size_t shape_info_num) | 调整已编译模型的输入形状。 | | [OH_AI_ModelPredict](_mind_spore.md#oh_ai_modelpredict) (OH_AI_ModelHandle model, const OH_AI_TensorHandleArray inputs, OH_AI_TensorHandleArray \*outputs, const OH_AI_KernelCallBack before, const OH_AI_KernelCallBack after) | 执行模型推理。 | | [OH_AI_ModelGetInputs](_mind_spore.md#oh_ai_modelgetinputs) (const OH_AI_ModelHandle model) | 获取模型的输入张量数组结构体。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__audiodecoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__audiodecoder_8h.md index 65f00492a5286a8245f218a97f23087ea4a40ffa..2d77a38e599c47d232719e6ad3fbacb3ff5f0f3e 100644 --- a/zh-cn/application-dev/reference/native-apis/native__avcodec__audiodecoder_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__audiodecoder_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [AudioDecoder](_audio_decoder.md) @@ -21,17 +20,17 @@ | 名称 | 描述 | | -------- | -------- | -| [OH_AudioDecoder_CreateByMime](_audio_decoder.md#oh_audiodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频解码器实例,大多数情况下推荐使用该接口。 | -| [OH_AudioDecoder_CreateByName](_audio_decoder.md#oh_audiodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频解码器名称创建一个音频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | -| [OH_AudioDecoder_Destroy](_audio_decoder.md#oh_audiodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例 | -| [OH_AudioDecoder_SetCallback](_audio_decoder.md#oh_audiodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioDecoder_Configure](_audio_decoder.md#oh_audiodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频解码器,典型地,需要配置被解码音频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioDecoder_Prepare](_audio_decoder.md#oh_audiodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_AudioDecoder_Start](_audio_decoder.md#oh_audiodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_AudioDecoder_Stop](_audio_decoder.md#oh_audiodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | -| [OH_AudioDecoder_Flush](_audio_decoder.md#oh_audiodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_AudioDecoder_Reset](_audio_decoder.md#oh_audiodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | -| [OH_AudioDecoder_GetOutputDescription](_audio_decoder.md#oh_audiodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | -| [OH_AudioDecoder_SetParameter](_audio_decoder.md#oh_audiodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | -| [OH_AudioDecoder_PushInputData](_audio_decoder.md#oh_audiodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程。 | -| [OH_AudioDecoder_FreeOutputData](_audio_decoder.md#oh_audiodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | +| [OH_AudioDecoder_CreateByMime](_audio_decoder.md#oh_audiodecoder_createbymime) (const char \*mime) | 通过mime类型创建一个音频解码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioDecoder_CreateByName](_audio_decoder.md#oh_audiodecoder_createbyname) (const char \*name) | 通过音频解码器名称创建一个音频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | +| [OH_AudioDecoder_Destroy](_audio_decoder.md#oh_audiodecoder_destroy) (OH_AVCodec \*codec) | 清空解码器内部资源,并销毁解码器实例 | +| [OH_AudioDecoder_SetCallback](_audio_decoder.md#oh_audiodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应音频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Configure](_audio_decoder.md#oh_audiodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置音频解码器,典型地,需要配置被解码音频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Prepare](_audio_decoder.md#oh_audiodecoder_prepare) (OH_AVCodec \*codec) | 准备解码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioDecoder_Start](_audio_decoder.md#oh_audiodecoder_start) (OH_AVCodec \*codec) | 启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioDecoder_Stop](_audio_decoder.md#oh_audiodecoder_stop) (OH_AVCodec \*codec) | 停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | +| [OH_AudioDecoder_Flush](_audio_decoder.md#oh_audiodecoder_flush) (OH_AVCodec \*codec) | 清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioDecoder_Reset](_audio_decoder.md#oh_audiodecoder_reset) (OH_AVCodec \*codec) | 重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | +| [OH_AudioDecoder_GetOutputDescription](_audio_decoder.md#oh_audiodecoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioDecoder_SetParameter](_audio_decoder.md#oh_audiodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | +| [OH_AudioDecoder_PushInputData](_audio_decoder.md#oh_audiodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | 将填充好数据的输入Buffer提交给音频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程。 | +| [OH_AudioDecoder_FreeOutputData](_audio_decoder.md#oh_audiodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给解码器。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__audioencoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__audioencoder_8h.md index 12d8a23c6b2c0d44999ebd85107e87ff5a664b8c..5039ef065614d933ba4f2044b5041a5bb2dded6f 100644 --- a/zh-cn/application-dev/reference/native-apis/native__avcodec__audioencoder_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__audioencoder_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [AudioEncoder](_audio_encoder.md) @@ -21,17 +20,17 @@ | 名称 | 描述 | | -------- | -------- | -| [OH_AudioEncoder_CreateByMime](_audio_encoder.md#oh_audioencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频编码器实例,大多数情况下推荐使用该接口。 | -| [OH_AudioEncoder_CreateByName](_audio_encoder.md#oh_audioencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频编码器名称创建一个音频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | -| [OH_AudioEncoder_Destroy](_audio_encoder.md#oh_audioencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | -| [OH_AudioEncoder_SetCallback](_audio_encoder.md#oh_audioencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioEncoder_Configure](_audio_encoder.md#oh_audioencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频编码器,典型地,需要配置被编码音频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | -| [OH_AudioEncoder_Prepare](_audio_encoder.md#oh_audioencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_AudioEncoder_Start](_audio_encoder.md#oh_audioencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_AudioEncoder_Stop](_audio_encoder.md#oh_audioencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | -| [OH_AudioEncoder_Flush](_audio_encoder.md#oh_audioencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_AudioEncoder_Reset](_audio_encoder.md#oh_audioencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | -| [OH_AudioEncoder_GetOutputDescription](_audio_encoder.md#oh_audioencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | -| [OH_AudioEncoder_SetParameter](_audio_encoder.md#oh_audioencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | -| [OH_AudioEncoder_PushInputData](_audio_encoder.md#oh_audioencoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频编码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给编码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。 | -| [OH_AudioEncoder_FreeOutputData](_audio_encoder.md#oh_audioencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | +| [OH_AudioEncoder_CreateByMime](_audio_encoder.md#oh_audioencoder_createbymime) (const char \*mime) | 通过mime类型创建一个音频编码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioEncoder_CreateByName](_audio_encoder.md#oh_audioencoder_createbyname) (const char \*name) | 通过音频编码器名称创建一个音频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | +| [OH_AudioEncoder_Destroy](_audio_encoder.md#oh_audioencoder_destroy) (OH_AVCodec \*codec) | 清空编码器内部资源,并销毁编码器实例。 | +| [OH_AudioEncoder_SetCallback](_audio_encoder.md#oh_audioencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应音频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Configure](_audio_encoder.md#oh_audioencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置音频编码器,典型地,需要配置被编码音频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Prepare](_audio_encoder.md#oh_audioencoder_prepare) (OH_AVCodec \*codec) | 准备编码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioEncoder_Start](_audio_encoder.md#oh_audioencoder_start) (OH_AVCodec \*codec) | 启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioEncoder_Stop](_audio_encoder.md#oh_audioencoder_stop) (OH_AVCodec \*codec) | 停止编码器。在停止后可通过Start重新进入Started状态。 | +| [OH_AudioEncoder_Flush](_audio_encoder.md#oh_audioencoder_flush) (OH_AVCodec \*codec) | 清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioEncoder_Reset](_audio_encoder.md#oh_audioencoder_reset) (OH_AVCodec \*codec) | 重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | +| [OH_AudioEncoder_GetOutputDescription](_audio_encoder.md#oh_audioencoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioEncoder_SetParameter](_audio_encoder.md#oh_audioencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | +| [OH_AudioEncoder_PushInputData](_audio_encoder.md#oh_audioencoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | 将填充好数据的输入Buffer提交给音频编码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给编码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。 | +| [OH_AudioEncoder_FreeOutputData](_audio_encoder.md#oh_audioencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给编码器。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md index 524596790b0692c2ecc13932f83917e98eca507b..b97542018deb536c968092148abab85c8f06cfa0 100644 --- a/zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [CodecBase](_codec_base.md) @@ -19,49 +18,47 @@ ### 结构体 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) | struct
定义OH_AVCodec的Buffer描述信息。 | -| [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | struct
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | +| [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) | 定义OH_AVCodec的Buffer描述信息。| +| [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。| ### 类型定义 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| **OHNativeWindow** | typedef struct NativeWindow | -| **OH_AVCodec** | typedef struct OH_AVCodec | -| [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags) | typedef enum [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags)
枚举OH_AVCodec的Buffer标记的类别。 | -| [OH_AVCodecBufferAttr](_codec_base.md#oh_avcodecbufferattr) | typedef struct [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md)
定义OH_AVCodec的Buffer描述信息。 | -| [OH_AVCodecOnError](_codec_base.md#oh_avcodeconerror)) (OH_AVCodec \*codec, int32_t errorCode, void \*userData) | typedef void(\*
当OH_AVCodec实例运行发生错误时,该函数指针会被调用以报告具体错误信息。 | -| [OH_AVCodecOnStreamChanged](_codec_base.md#oh_avcodeconstreamchanged)) (OH_AVCodec \*codec, OH_AVFormat \*format, void \*userData) | typedef void(\*
当输出流发生变化时,该函数指针会被调用以报告新的流描述信息。 需要注意的时,OH_AVFormat指针的生命周期仅维持在该函数指针被调用时上有效,禁止在调用结束后继续访问。 | -| [OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, void \*userData) | typedef void(\*
当AVCodec运行过程中需要新的输入数据时,该函数指针会被调用,并携带一块可用的Buffer以供填入新的输入数据。 | -| [OH_AVCodecOnNewOutputData](_codec_base.md#oh_avcodeconnewoutputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) \*attr, void \*userData) | typedef void(\*
当AVCodec运行过程中产生了新的输出数据时,该函数指针会被调用,并携带一块包含新输出数据的Buffer, 需要注意的是,OH_AVCodecBufferAttr指针的生命周期仅维持在该函数指针被调用时有效,禁止调用结束后继续访问。 | -| [OH_AVCodecAsyncCallback](_codec_base.md#oh_avcodecasynccallback) | typedef struct [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md)
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | -| [OH_MediaType](_codec_base.md#oh_mediatype) | typedef enum [OH_MediaType](_codec_base.md#oh_mediatype)
媒体类型。 | -| [OH_AVCProfile](_codec_base.md#oh_avcprofile) | typedef enum [OH_AVCProfile](_codec_base.md#oh_avcprofile)
AVC Profile枚举。 | -| [OH_AACProfile](_codec_base.md#oh_aacprofile) | typedef enum [OH_AACProfile](_codec_base.md#oh_aacprofile)
AAC Profile枚举。 | +| [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags) | 枚举OH_AVCodec的Buffer标记的类别。| +| [OH_AVCodecBufferAttr](_codec_base.md#oh_avcodecbufferattr) | 定义OH_AVCodec的Buffer描述信息。| +| (\*[OH_AVCodecOnError](_codec_base.md#oh_avcodeconerror)) (OH_AVCodec \*codec, int32_t errorCode, void \*userData) | 当OH_AVCodec实例运行发生错误时,该函数指针会被调用以报告具体错误信息。| +| (\*[OH_AVCodecOnStreamChanged](_codec_base.md#oh_avcodeconstreamchanged)) (OH_AVCodec \*codec, OH_AVFormat \*format, void \*userData) | 当输出流发生变化时,该函数指针会被调用以报告新的流描述信息。 需要注意的时,OH_AVFormat指针的生命周期仅维持在该函数指针被调用时上有效,禁止在调用结束后继续访问。| +| (\*[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, void \*userData) | 当AVCodec运行过程中需要新的输入数据时,该函数指针会被调用,并携带一块可用的Buffer以供填入新的输入数据。| +| (\*[OH_AVCodecOnNewOutputData](_codec_base.md#oh_avcodeconnewoutputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) \*attr, void \*userData) | 当AVCodec运行过程中产生了新的输出数据时,该函数指针会被调用,并携带一块包含新输出数据的Buffer, 需要注意的是,OH_AVCodecBufferAttr指针的生命周期仅维持在该函数指针被调用时有效,禁止调用结束后继续访问。| +| [OH_AVCodecAsyncCallback](_codec_base.md#oh_avcodecasynccallback) | AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。| +| [OH_MediaType](_codec_base.md#oh_mediatype) | 媒体类型。| +| [OH_AVCProfile](_codec_base.md#oh_avcprofile) | AVC Profile枚举。| +| [OH_AACProfile](_codec_base.md#oh_aacprofile) | AAC Profile枚举。| ### 枚举 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags) {
**AVCODEC_BUFFER_FLAGS_NONE** = 0, **AVCODEC_BUFFER_FLAGS_EOS** = 1 << 0, **AVCODEC_BUFFER_FLAGS_SYNC_FRAME** = 1 << 1, **AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME** = 1 << 2,
**AVCODEC_BUFFER_FLAGS_CODEC_DATA** = 1 << 3
} | 枚举OH_AVCodec的Buffer标记的类别。 | -| [OH_MediaType](_codec_base.md#oh_mediatype) { **MEDIA_TYPE_AUD** = 0, **MEDIA_TYPE_VID** = 1 } | 媒体类型。 | -| [OH_AVCProfile](_codec_base.md#oh_avcprofile) { **AVC_PROFILE_BASELINE** = 0, **AVC_PROFILE_HIGH** = 4, **AVC_PROFILE_MAIN** = 8 } | AVC Profile枚举。 | -| [OH_AACProfile](_codec_base.md#oh_aacprofile) { **AAC_PROFILE_LC** = 0 } | AAC Profile枚举。 | +| [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags) {
**AVCODEC_BUFFER_FLAGS_NONE** = 0, **AVCODEC_BUFFER_FLAGS_EOS** = 1 << 0, **AVCODEC_BUFFER_FLAGS_SYNC_FRAME** = 1 << 1, **AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME** = 1 << 2,
**AVCODEC_BUFFER_FLAGS_CODEC_DATA** = 1 << 3
} | 枚举OH_AVCodec的Buffer标记的类别。| +| [OH_MediaType](_codec_base.md#oh_mediatype) { **MEDIA_TYPE_AUD** = 0, **MEDIA_TYPE_VID** = 1 } | 媒体类型。| +| [OH_AVCProfile](_codec_base.md#oh_avcprofile) { **AVC_PROFILE_BASELINE** = 0, **AVC_PROFILE_HIGH** = 4, **AVC_PROFILE_MAIN** = 8 } | AVC Profile枚举。| +| [OH_AACProfile](_codec_base.md#oh_aacprofile) { **AAC_PROFILE_LC** = 0 } | AAC Profile枚举。| ### 变量 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_AVCODEC_MIMETYPE_VIDEO_AVC](_codec_base.md#oh_avcodec_mimetype_video_avc) | const char \*
AVC视频编解码器的MIME类型。 | -| [OH_AVCODEC_MIMETYPE_AUDIO_AAC](_codec_base.md#oh_avcodec_mimetype_audio_aac) | const char \*
AAC音频编解码器的MIME类型。 | -| [OH_ED_KEY_TIME_STAMP](_codec_base.md#oh_ed_key_time_stamp) | const char \*
提供统一的surface Buffer附属数据的字符描述符。 | +| [OH_AVCODEC_MIMETYPE_VIDEO_AVC](_codec_base.md#oh_avcodec_mimetype_video_avc) | const char \*
AVC视频编解码器的MIME类型。| +| [OH_AVCODEC_MIMETYPE_AUDIO_AAC](_codec_base.md#oh_avcodec_mimetype_audio_aac) | const char \*
AAC音频编解码器的MIME类型。| +| [OH_ED_KEY_TIME_STAMP](_codec_base.md#oh_ed_key_time_stamp) | const char \*
提供统一的surface Buffer附属数据的字符描述符。| | [OH_ED_KEY_EOS](_codec_base.md#oh_ed_key_eos) | const char \* | -| [OH_MD_KEY_TRACK_TYPE](_codec_base.md#oh_md_key_track_type) | const char \*
为媒体播放框架提供统一的字符描述符。 | +| [OH_MD_KEY_TRACK_TYPE](_codec_base.md#oh_md_key_track_type) | const char \*
为媒体播放框架提供统一的字符描述符。| | [OH_MD_KEY_CODEC_MIME](_codec_base.md#oh_md_key_codec_mime) | const char \* | | [OH_MD_KEY_DURATION](_codec_base.md#oh_md_key_duration) | const char \* | | [OH_MD_KEY_BITRATE](_codec_base.md#oh_md_key_bitrate) | const char \* | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__videodecoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__videodecoder_8h.md index dad038c617f2424edfa9a27535442a71bfb08d0e..904bc5ddfa83ac9ef81acb7c3570cdc480b42a06 100644 --- a/zh-cn/application-dev/reference/native-apis/native__avcodec__videodecoder_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__videodecoder_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [VideoDecoder](_video_decoder.md) @@ -19,21 +18,21 @@ ### 函数 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_VideoDecoder_CreateByMime](_video_decoder.md#oh_videodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频解码器实例,大多数情况下推荐使用该接口。 | -| [OH_VideoDecoder_CreateByName](_video_decoder.md#oh_videodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频解码器名称创建一个视频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | -| [OH_VideoDecoder_Destroy](_video_decoder.md#oh_videodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例。 | -| [OH_VideoDecoder_SetCallback](_video_decoder.md#oh_videodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoDecoder_SetSurface](_video_decoder.md#oh_videodecoder_setsurface) (OH_AVCodec \*codec, OHNativeWindow \*window) | [OH_AVErrCode](_core.md#oh_averrcode)
指定输出Surface,以提供视频解码输出,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoDecoder_Configure](_video_decoder.md#oh_videodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频解码器,典型地,需要配置被解码视频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoDecoder_Prepare](_video_decoder.md#oh_videodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_VideoDecoder_Start](_video_decoder.md#oh_videodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_VideoDecoder_Stop](_video_decoder.md#oh_videodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | -| [OH_VideoDecoder_Flush](_video_decoder.md#oh_videodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_VideoDecoder_Reset](_video_decoder.md#oh_videodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | -| [OH_VideoDecoder_GetOutputDescription](_video_decoder.md#oh_videodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | -| [OH_VideoDecoder_SetParameter](_video_decoder.md#oh_videodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | -| [OH_VideoDecoder_PushInputData](_video_decoder.md#oh_videodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给视频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程,例如H264格式的PPS/SPS数据。 | -| [OH_VideoDecoder_RenderOutputData](_video_decoder.md#oh_videodecoder_renderoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器,并通知解码器完成将该Buffer内包含的解码后的数据在输出Surface上渲染。 如果先前未配置输出Surface,调用该接口仅仅将指定索引对应的输出Buffer交还给解码器。 | -| [OH_VideoDecoder_FreeOutputData](_video_decoder.md#oh_videodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | +| [OH_VideoDecoder_CreateByMime](_video_decoder.md#oh_videodecoder_createbymime) (const char \*mime) | 通过mime类型创建一个视频解码器实例,大多数情况下推荐使用该接口。| +| [OH_VideoDecoder_CreateByName](_video_decoder.md#oh_videodecoder_createbyname) (const char \*name) | 通过视频解码器名称创建一个视频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。| +| [OH_VideoDecoder_Destroy](_video_decoder.md#oh_videodecoder_destroy) (OH_AVCodec \*codec) | 清空解码器内部资源,并销毁解码器实例。| +| [OH_VideoDecoder_SetCallback](_video_decoder.md#oh_videodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应视频解码器产生的事件,该接口被调用必须是在Prepare被调用前。| +| [OH_VideoDecoder_SetSurface](_video_decoder.md#oh_videodecoder_setsurface) (OH_AVCodec \*codec, OHNativeWindow \*window) | 指定输出Surface,以提供视频解码输出,该接口被调用必须是在Prepare被调用前。| +| [OH_VideoDecoder_Configure](_video_decoder.md#oh_videodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置视频解码器,典型地,需要配置被解码视频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。| +| [OH_VideoDecoder_Prepare](_video_decoder.md#oh_videodecoder_prepare) (OH_AVCodec \*codec) | 准备解码器内部资源,调用该接口前必须先调用Configure接口。| +| [OH_VideoDecoder_Start](_video_decoder.md#oh_videodecoder_start) (OH_AVCodec \*codec) | 启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。| +| [OH_VideoDecoder_Stop](_video_decoder.md#oh_videodecoder_stop) (OH_AVCodec \*codec) | 停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。| +| [OH_VideoDecoder_Flush](_video_decoder.md#oh_videodecoder_flush) (OH_AVCodec \*codec) | 清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。| +| [OH_VideoDecoder_Reset](_video_decoder.md#oh_videodecoder_reset) (OH_AVCodec \*codec) | 重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。| +| [OH_VideoDecoder_GetOutputDescription](_video_decoder.md#oh_videodecoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。| +| [OH_VideoDecoder_SetParameter](_video_decoder.md#oh_videodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。| +| [OH_VideoDecoder_PushInputData](_video_decoder.md#oh_videodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | 将填充好数据的输入Buffer提交给视频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程,例如H264格式的PPS/SPS数据。| +| [OH_VideoDecoder_RenderOutputData](_video_decoder.md#oh_videodecoder_renderoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给解码器,并通知解码器完成将该Buffer内包含的解码后的数据在输出Surface上渲染。 如果先前未配置输出Surface,调用该接口仅仅将指定索引对应的输出Buffer交还给解码器。| +| [OH_VideoDecoder_FreeOutputData](_video_decoder.md#oh_videodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给解码器。| diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md index ff019f5929c3c24e0ef9d494cbeb142536b7d624..73aa36e4b0c6ec8ddf1d681c800a44c5dea62a30 100644 --- a/zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [VideoEncoder](_video_encoder.md) @@ -19,34 +18,34 @@ ### 类型定义 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) | typedef enum [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode)
视频编码的比特率模式。 | +| [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) | 视频编码的比特率模式。| ### 枚举 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) { **CBR** = 0, **VBR** = 1, **CQ** = 2 } | 视频编码的比特率模式。 | +| [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) { **CBR** = 0, **VBR** = 1, **CQ** = 2 } | 视频编码的比特率模式。| ### 函数 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_VideoEncoder_CreateByMime](_video_encoder.md#oh_videoencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频编码器实例,大多数情况下推荐使用该接口。 | -| [OH_VideoEncoder_CreateByName](_video_encoder.md#oh_videoencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频编码器名称创建一个视频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | -| [OH_VideoEncoder_Destroy](_video_encoder.md#oh_videoencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | -| [OH_VideoEncoder_SetCallback](_video_encoder.md#oh_videoencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoEncoder_Configure](_video_encoder.md#oh_videoencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频编码器,典型地,需要配置被编码视频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoEncoder_Prepare](_video_encoder.md#oh_videoencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | -| [OH_VideoEncoder_Start](_video_encoder.md#oh_videoencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | -| [OH_VideoEncoder_Stop](_video_encoder.md#oh_videoencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | -| [OH_VideoEncoder_Flush](_video_encoder.md#oh_videoencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | -| [OH_VideoEncoder_Reset](_video_encoder.md#oh_videoencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | -| [OH_VideoEncoder_GetOutputDescription](_video_encoder.md#oh_videoencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | -| [OH_VideoEncoder_SetParameter](_video_encoder.md#oh_videoencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | -| [OH_VideoEncoder_GetSurface](_video_encoder.md#oh_videoencoder_getsurface) (OH_AVCodec \*codec, OHNativeWindow \*\*window) | [OH_AVErrCode](_core.md#oh_averrcode)
从视频编码器获取输入Surface, 该接口被调用必须是在Prepare被调用前。 | -| [OH_VideoEncoder_FreeOutputData](_video_encoder.md#oh_videoencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | -| [OH_VideoEncoder_NotifyEndOfStream](_video_encoder.md#oh_videoencoder_notifyendofstream) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
通知视频编码器输入码流已结束。surface模式推荐使用该接口通知编码器码流结束。 | +| [OH_VideoEncoder_CreateByMime](_video_encoder.md#oh_videoencoder_createbymime) (const char \*mime) | 通过mime类型创建一个视频编码器实例,大多数情况下推荐使用该接口。| +| [OH_VideoEncoder_CreateByName](_video_encoder.md#oh_videoencoder_createbyname) (const char \*name) | 通过视频编码器名称创建一个视频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。| +| [OH_VideoEncoder_Destroy](_video_encoder.md#oh_videoencoder_destroy) (OH_AVCodec \*codec) | 清空编码器内部资源,并销毁编码器实例。| +| [OH_VideoEncoder_SetCallback](_video_encoder.md#oh_videoencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | 设置异步回调函数,使得你的应用能够响应视频编码器产生的事件,该接口被调用必须是在Prepare被调用前。| +| [OH_VideoEncoder_Configure](_video_encoder.md#oh_videoencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置视频编码器,典型地,需要配置被编码视频轨道的描述信息,该接口被调用必须是在Prepare被调用前。| +| [OH_VideoEncoder_Prepare](_video_encoder.md#oh_videoencoder_prepare) (OH_AVCodec \*codec) | 准备编码器内部资源,调用该接口前必须先调用Configure接口。| +| [OH_VideoEncoder_Start](_video_encoder.md#oh_videoencoder_start) (OH_AVCodec \*codec) | 启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。| +| [OH_VideoEncoder_Stop](_video_encoder.md#oh_videoencoder_stop) (OH_AVCodec \*codec) | 停止编码器。在停止后可通过Start重新进入Started状态。| +| [OH_VideoEncoder_Flush](_video_encoder.md#oh_videoencoder_flush) (OH_AVCodec \*codec) | 清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。| +| [OH_VideoEncoder_Reset](_video_encoder.md#oh_videoencoder_reset) (OH_AVCodec \*codec) | 重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。| +| [OH_VideoEncoder_GetOutputDescription](_video_encoder.md#oh_videoencoder_getoutputdescription) (OH_AVCodec \*codec) | 获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。| +| [OH_VideoEncoder_SetParameter](_video_encoder.md#oh_videoencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。| +| [OH_VideoEncoder_GetSurface](_video_encoder.md#oh_videoencoder_getsurface) (OH_AVCodec \*codec, OHNativeWindow \*\*window) | 从视频编码器获取输入Surface, 该接口被调用必须是在Prepare被调用前。| +| [OH_VideoEncoder_FreeOutputData](_video_encoder.md#oh_videoencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | 将处理结束的输出Buffer交还给编码器。| +| [OH_VideoEncoder_NotifyEndOfStream](_video_encoder.md#oh_videoencoder_notifyendofstream) (OH_AVCodec \*codec) | 通知视频编码器输入码流已结束。surface模式推荐使用该接口通知编码器码流结束。| diff --git a/zh-cn/application-dev/reference/native-apis/native__averrors_8h.md b/zh-cn/application-dev/reference/native-apis/native__averrors_8h.md index 242ab02bde1da6f1a40c7c5644f77a4e587a2ae8..9abaeb008f1edf3e29f038de4a54a6708d3ccc6e 100644 --- a/zh-cn/application-dev/reference/native-apis/native__averrors_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__averrors_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [Core](_core.md) @@ -21,7 +20,7 @@ | 名称 | 描述 | | -------- | -------- | -| [OH_AVErrCode](_core.md#oh_averrcode) | typedef enum [OH_AVErrCode](_core.md#oh_averrcode)
音视频错误码。 | +| [OH_AVErrCode](_core.md#oh_averrcode) | 音视频错误码。 | ### 枚举 diff --git a/zh-cn/application-dev/reference/native-apis/native__avformat_8h.md b/zh-cn/application-dev/reference/native-apis/native__avformat_8h.md index c3e8507ab66f1b346e92278d817a76fa6969c569..75164b2cc8663f85c3206cd0ba31334b1daa8faa 100644 --- a/zh-cn/application-dev/reference/native-apis/native__avformat_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__avformat_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [Core](_core.md) @@ -19,36 +18,35 @@ ### 类型定义 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| **OH_AVFormat** | typedef struct OH_AVFormat | -| [OH_AVPixelFormat](_core.md#oh_avpixelformat) | typedef enum [OH_AVPixelFormat](_core.md#oh_avpixelformat)
AVPixel 格式的枚举。 | +| [OH_AVPixelFormat](_core.md#oh_avpixelformat) | AVPixel 格式的枚举。| ### 枚举 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_AVPixelFormat](_core.md#oh_avpixelformat) {
**AV_PIXEL_FORMAT_YUVI420** = 1, **AV_PIXEL_FORMAT_NV12** = 2, **AV_PIXEL_FORMAT_NV21** = 3, **AV_PIXEL_FORMAT_SURFACE_FORMAT** = 4, **AV_PIXEL_FORMAT_RGBA** = 5
} | AVPixel 格式的枚举。 | +| [OH_AVPixelFormat](_core.md#oh_avpixelformat) {
**AV_PIXEL_FORMAT_YUVI420** = 1, **AV_PIXEL_FORMAT_NV12** = 2, **AV_PIXEL_FORMAT_NV21** = 3, **AV_PIXEL_FORMAT_SURFACE_FORMAT** = 4, **AV_PIXEL_FORMAT_RGBA** = 5
} | AVPixel 格式的枚举。| ### 函数 - | 名称 | 描述 | +| 名称 | 描述 | | -------- | -------- | -| [OH_AVFormat_Create](_core.md#oh_avformat_create) (void) | struct OH_AVFormat \*
创建一个OH_AVFormat句柄指针,用以读写数据。 | -| [OH_AVFormat_Destroy](_core.md#oh_avformat_destroy) (struct OH_AVFormat \*format) | void
销毁指定OH_AVFormat句柄资源。 | -| [OH_AVFormat_Copy](_core.md#oh_avformat_copy) (struct OH_AVFormat \*to, struct OH_AVFormat \*from) | bool
拷贝OH_AVFormat句柄资源. | -| [OH_AVFormat_SetIntValue](_core.md#oh_avformat_setintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t value) | bool
向OH_AVFormat写入Int数据. | -| [OH_AVFormat_SetLongValue](_core.md#oh_avformat_setlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t value) | bool
向OH_AVFormat写入Long数据。 | -| [OH_AVFormat_SetFloatValue](_core.md#oh_avformat_setfloatvalue) (struct OH_AVFormat \*format, const char \*key, float value) | bool
向OH_AVFormat写入Float数据。 | -| [OH_AVFormat_SetDoubleValue](_core.md#oh_avformat_setdoublevalue) (struct OH_AVFormat \*format, const char \*key, double value) | bool
向OH_AVFormat写入Double数据。 | -| [OH_AVFormat_SetStringValue](_core.md#oh_avformat_setstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*value) | bool
向OH_AVFormat写入String数据。 | -| [OH_AVFormat_SetBuffer](_core.md#oh_avformat_setbuffer) (struct OH_AVFormat \*format, const char \*key, const uint8_t \*addr, size_t size) | bool
向OH_AVFormat写入一块指定长度的数据。 | -| [OH_AVFormat_GetIntValue](_core.md#oh_avformat_getintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t \*out) | bool
从OH_AVFormat读取Int数据。 | -| [OH_AVFormat_GetLongValue](_core.md#oh_avformat_getlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t \*out) | bool
从OH_AVFormat读取Long数据。 | -| [OH_AVFormat_GetFloatValue](_core.md#oh_avformat_getfloatvalue) (struct OH_AVFormat \*format, const char \*key, float \*out) | bool
从OH_AVFormat读取Float数据。 | -| [OH_AVFormat_GetDoubleValue](_core.md#oh_avformat_getdoublevalue) (struct OH_AVFormat \*format, const char \*key, double \*out) | bool
从OH_AVFormat读取Double数据。 | -| [OH_AVFormat_GetStringValue](_core.md#oh_avformat_getstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*\*out) | bool
从OH_AVFormat读取Double数据。 | -| [OH_AVFormat_GetBuffer](_core.md#oh_avformat_getbuffer) (struct OH_AVFormat \*format, const char \*key, uint8_t \*\*addr, size_t \*size) | bool
从OH_AVFormat读取一块指定长度的数据。 | -| [OH_AVFormat_DumpInfo](_core.md#oh_avformat_dumpinfo) (struct OH_AVFormat \*format) | const char \*
以字符串的形式输出OH_AVFormat所包含的信息。 | +| [OH_AVFormat_Create](_core.md#oh_avformat_create) (void) | 创建一个OH_AVFormat句柄指针,用以读写数据。| +| [OH_AVFormat_Destroy](_core.md#oh_avformat_destroy) (struct OH_AVFormat \*format) | 销毁指定OH_AVFormat句柄资源。| +| [OH_AVFormat_Copy](_core.md#oh_avformat_copy) (struct OH_AVFormat \*to, struct OH_AVFormat \*from) | 拷贝OH_AVFormat句柄资源.| +| [OH_AVFormat_SetIntValue](_core.md#oh_avformat_setintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t value) | 向OH_AVFormat写入Int数据.| +| [OH_AVFormat_SetLongValue](_core.md#oh_avformat_setlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t value) | 向OH_AVFormat写入Long数据。| +| [OH_AVFormat_SetFloatValue](_core.md#oh_avformat_setfloatvalue) (struct OH_AVFormat \*format, const char \*key, float value) | 向OH_AVFormat写入Float数据。| +| [OH_AVFormat_SetDoubleValue](_core.md#oh_avformat_setdoublevalue) (struct OH_AVFormat \*format, const char \*key, double value) | 向OH_AVFormat写入Double数据。| +| [OH_AVFormat_SetStringValue](_core.md#oh_avformat_setstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*value) | 向OH_AVFormat写入String数据。| +| [OH_AVFormat_SetBuffer](_core.md#oh_avformat_setbuffer) (struct OH_AVFormat \*format, const char \*key, const uint8_t \*addr, size_t size) | 向OH_AVFormat写入一块指定长度的数据。| +| [OH_AVFormat_GetIntValue](_core.md#oh_avformat_getintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t \*out) | 从OH_AVFormat读取Int数据。| +| [OH_AVFormat_GetLongValue](_core.md#oh_avformat_getlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t \*out) | 从OH_AVFormat读取Long数据。| +| [OH_AVFormat_GetFloatValue](_core.md#oh_avformat_getfloatvalue) (struct OH_AVFormat \*format, const char \*key, float \*out) | 从OH_AVFormat读取Float数据。| +| [OH_AVFormat_GetDoubleValue](_core.md#oh_avformat_getdoublevalue) (struct OH_AVFormat \*format, const char \*key, double \*out) | 从OH_AVFormat读取Double数据。| +| [OH_AVFormat_GetStringValue](_core.md#oh_avformat_getstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*\*out) | 从OH_AVFormat读取Double数据。| +| [OH_AVFormat_GetBuffer](_core.md#oh_avformat_getbuffer) (struct OH_AVFormat \*format, const char \*key, uint8_t \*\*addr, size_t \*size) | 从OH_AVFormat读取一块指定长度的数据。| +| [OH_AVFormat_DumpInfo](_core.md#oh_avformat_dumpinfo) (struct OH_AVFormat \*format) | 以字符串的形式输出OH_AVFormat所包含的信息。| diff --git a/zh-cn/application-dev/reference/native-apis/native__avmemory_8h.md b/zh-cn/application-dev/reference/native-apis/native__avmemory_8h.md index 0337640a6be3e4f18b1c4015342c4ec2370bfeb3..ebc9b154755ae87e298b3b96648acbff01cac855 100644 --- a/zh-cn/application-dev/reference/native-apis/native__avmemory_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__avmemory_8h.md @@ -7,8 +7,7 @@ **起始版本:** 9 -**Version:** -1.0 + **相关模块:** [Core](_core.md) @@ -17,16 +16,9 @@ ## 汇总 -### 类型定义 - - | 名称 | 描述 | -| -------- | -------- | -| **OH_AVMemory** | typedef struct OH_AVMemory | - - ### 函数 | 名称 | 描述 | | -------- | -------- | -| [OH_AVMemory_GetAddr](_core.md#oh_avmemory_getaddr) (struct OH_AVMemory \*mem) | uint8_t \*
获取入参的内存虚拟地址。 | -| [OH_AVMemory_GetSize](_core.md#oh_avmemory_getsize) (struct OH_AVMemory \*mem) | int32_t
获取入参的内存长度。 | +| [OH_AVMemory_GetAddr](_core.md#oh_avmemory_getaddr) (struct OH_AVMemory \*mem) | 获取入参的内存虚拟地址。 | +| [OH_AVMemory_GetSize](_core.md#oh_avmemory_getsize) (struct OH_AVMemory \*mem) | 获取入参的内存长度。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__huks__api_8h.md b/zh-cn/application-dev/reference/native-apis/native__huks__api_8h.md index ba2597f3f524b8ef3165729b69365d7f031e75dd..60e5e4fe79f5c90f37862bf1f92df6bf3b605770 100644 --- a/zh-cn/application-dev/reference/native-apis/native__huks__api_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__huks__api_8h.md @@ -20,16 +20,16 @@ | 名称 | 描述 | | -------- | -------- | -| [OH_Huks_GetSdkVersion](_huks_key_api.md#oh_huks_getsdkversion) (struct [OH_Huks_Blob](_o_h___huks___blob.md) \*sdkVersion) | struct [OH_Huks_Result](_o_h___huks___result.md)
获取当前Huks sdk版本号。 | -| [OH_Huks_GenerateKeyItem](_huks_key_api.md#oh_huks_generatekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | struct [OH_Huks_Result](_o_h___huks___result.md)
生成密钥。 | -| [OH_Huks_ImportKeyItem](_huks_key_api.md#oh_huks_importkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | struct [OH_Huks_Result](_o_h___huks___result.md)
导入明文密钥。 | -| [OH_Huks_ImportWrappedKeyItem](_huks_key_api.md#oh_huks_importwrappedkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappingKeyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappedKeyData) | struct [OH_Huks_Result](_o_h___huks___result.md)
导入密文密钥。 | -| [OH_Huks_ExportPublicKeyItem](_huks_key_api.md#oh_huks_exportpublickeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | struct [OH_Huks_Result](_o_h___huks___result.md)
导出公钥。 | -| [OH_Huks_DeleteKeyItem](_huks_key_api.md#oh_huks_deletekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | struct [OH_Huks_Result](_o_h___huks___result.md)
删除密钥。 | -| [OH_Huks_GetKeyItemParamSet](_huks_key_api.md#oh_huks_getkeyitemparamset) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | struct [OH_Huks_Result](_o_h___huks___result.md)
获取密钥的属性集。 | -| [OH_Huks_IsKeyItemExist](_huks_key_api.md#oh_huks_iskeyitemexist) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | struct [OH_Huks_Result](_o_h___huks___result.md)
判断密钥是否存在。 | -| [OH_Huks_AttestKeyItem](_huks_key_api.md#oh_huks_attestkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_CertChain](_o_h___huks___cert_chain.md) \*certChain) | struct [OH_Huks_Result](_o_h___huks___result.md)
获取密钥证书链。 | -| [OH_Huks_InitSession](_huks_key_api.md#oh_huks_initsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*challenge) | struct [OH_Huks_Result](_o_h___huks___result.md)
初始化密钥会话接口,并获取一个句柄(必选)和挑战值(可选)。 | -| [OH_Huks_UpdateSession](_huks_key_api.md#oh_huks_updatesession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | struct [OH_Huks_Result](_o_h___huks___result.md)
分段添加密钥操作的数据并进行相应的密钥操作,输出处理数据。 | -| [OH_Huks_FinishSession](_huks_key_api.md#oh_huks_finishsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | struct [OH_Huks_Result](_o_h___huks___result.md)
结束密钥会话并进行相应的密钥操作,输出处理数据。 | -| [OH_Huks_AbortSession](_huks_key_api.md#oh_huks_abortsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | struct [OH_Huks_Result](_o_h___huks___result.md)
取消密钥会话。 | +| [OH_Huks_GetSdkVersion](_huks_key_api.md#oh_huks_getsdkversion) (struct [OH_Huks_Blob](_o_h___huks___blob.md) \*sdkVersion) | 获取当前Huks sdk版本号。 | +| [OH_Huks_GenerateKeyItem](_huks_key_api.md#oh_huks_generatekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | 生成密钥。 | +| [OH_Huks_ImportKeyItem](_huks_key_api.md#oh_huks_importkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | 导入明文密钥。 | +| [OH_Huks_ImportWrappedKeyItem](_huks_key_api.md#oh_huks_importwrappedkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappingKeyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*wrappedKeyData) | 导入密文密钥。 | +| [OH_Huks_ExportPublicKeyItem](_huks_key_api.md#oh_huks_exportpublickeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*key) | 导出公钥。 | +| [OH_Huks_DeleteKeyItem](_huks_key_api.md#oh_huks_deletekeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 删除密钥。 | +| [OH_Huks_GetKeyItemParamSet](_huks_key_api.md#oh_huks_getkeyitemparamset) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetIn, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSetOut) | 获取密钥的属性集。 | +| [OH_Huks_IsKeyItemExist](_huks_key_api.md#oh_huks_iskeyitemexist) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 判断密钥是否存在。 | +| [OH_Huks_AttestKeyItem](_huks_key_api.md#oh_huks_attestkeyitem) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_CertChain](_o_h___huks___cert_chain.md) \*certChain) | 获取密钥证书链。 | +| [OH_Huks_InitSession](_huks_key_api.md#oh_huks_initsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*keyAlias, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*token) | 初始化密钥会话接口,并获取一个句柄(必选)和挑战值(可选)。 | +| [OH_Huks_UpdateSession](_huks_key_api.md#oh_huks_updatesession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | 分段添加密钥操作的数据并进行相应的密钥操作,输出处理数据。 | +| [OH_Huks_FinishSession](_huks_key_api.md#oh_huks_finishsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*inData, struct [OH_Huks_Blob](_o_h___huks___blob.md) \*outData) | 结束密钥会话并进行相应的密钥操作,输出处理数据。 | +| [OH_Huks_AbortSession](_huks_key_api.md#oh_huks_abortsession) (const struct [OH_Huks_Blob](_o_h___huks___blob.md) \*handle, const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 取消密钥会话。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__huks__param_8h.md b/zh-cn/application-dev/reference/native-apis/native__huks__param_8h.md index 8ccd21f5c18fb21eca85ff3d160b34abe8938302..edd8e2e3beca7144ec774d7a8767496ed9a1c0b7 100644 --- a/zh-cn/application-dev/reference/native-apis/native__huks__param_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__huks__param_8h.md @@ -20,13 +20,13 @@ | 名称 | 描述 | | -------- | -------- | -| [OH_Huks_InitParamSet](_huks_param_set_api.md#oh_huks_initparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | int32_t
初始化参数集。 | -| [OH_Huks_AddParams](_huks_param_set_api.md#oh_huks_addparams) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Param](_o_h___huks___param.md) \*params, uint32_t paramCnt) | int32_t
添加参数到参数集里面。 | -| [OH_Huks_BuildParamSet](_huks_param_set_api.md#oh_huks_buildparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | int32_t
构造正式的参数集。 | -| [OH_Huks_FreeParamSet](_huks_param_set_api.md#oh_huks_freeparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | void
销毁参数集。 | -| [OH_Huks_CopyParamSet](_huks_param_set_api.md#oh_huks_copyparamset) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*fromParamSet, uint32_t fromParamSetSize, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | int32_t
复制参数集(深拷贝)。 | -| [OH_Huks_GetParam](_huks_param_set_api.md#oh_huks_getparam) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t tag, struct [OH_Huks_Param](_o_h___huks___param.md) \*\*param) | int32_t
从参数集中获取参数。 | -| [OH_Huks_FreshParamSet](_huks_param_set_api.md#oh_huks_freshparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, bool isCopy) | int32_t
刷新(复制)参数集内Blob类型的数据到参数集内。 | -| [OH_Huks_isParamSetTagValid](_huks_param_set_api.md#oh_huks_isparamsettagvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | int32_t
检查参数集中的参数是否有效、是否有重复。 | -| [OH_Huks_isParamSetValid](_huks_param_set_api.md#oh_huks_isparamsetvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t size) | int32_t
检查参数集大小是否有效。 | -| [OH_Huks_CheckParamMatch](_huks_param_set_api.md#oh_huks_checkparammatch) (const struct [OH_Huks_Param](_o_h___huks___param.md) \*baseParam, const struct [OH_Huks_Param](_o_h___huks___param.md) \*param) | int32_t
比较两个参数是否相同 | +| [OH_Huks_InitParamSet](_huks_param_set_api.md#oh_huks_initparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 初始化参数集。 | +| [OH_Huks_AddParams](_huks_param_set_api.md#oh_huks_addparams) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, const struct [OH_Huks_Param](_o_h___huks___param.md) \*params, uint32_t paramCnt) | 添加参数到参数集里面。 | +| [OH_Huks_BuildParamSet](_huks_param_set_api.md#oh_huks_buildparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 构造正式的参数集。 | +| [OH_Huks_FreeParamSet](_huks_param_set_api.md#oh_huks_freeparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 销毁参数集。 | +| [OH_Huks_CopyParamSet](_huks_param_set_api.md#oh_huks_copyparamset) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*fromParamSet, uint32_t fromParamSetSize, struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*\*paramSet) | 复制参数集(深拷贝)。 | +| [OH_Huks_GetParam](_huks_param_set_api.md#oh_huks_getparam) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t tag, struct [OH_Huks_Param](_o_h___huks___param.md) \*\*param) | 从参数集中获取参数。 | +| [OH_Huks_FreshParamSet](_huks_param_set_api.md#oh_huks_freshparamset) (struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, bool isCopy) | 刷新(复制)参数集内Blob类型的数据到参数集内。 | +| [OH_Huks_isParamSetTagValid](_huks_param_set_api.md#oh_huks_isparamsettagvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet) | 检查参数集中的参数是否有效、是否有重复。 | +| [OH_Huks_isParamSetValid](_huks_param_set_api.md#oh_huks_isparamsetvalid) (const struct [OH_Huks_ParamSet](_o_h___huks___param_set.md) \*paramSet, uint32_t size) | 检查参数集大小是否有效。 | +| [OH_Huks_CheckParamMatch](_huks_param_set_api.md#oh_huks_checkparammatch) (const struct [OH_Huks_Param](_o_h___huks___param.md) \*baseParam, const struct [OH_Huks_Param](_o_h___huks___param.md) \*param) | 比较两个参数是否相同 | diff --git a/zh-cn/application-dev/reference/native-apis/native__huks__type_8h.md b/zh-cn/application-dev/reference/native-apis/native__huks__type_8h.md index 160ff789873c36168988f868b527947fa8589775..8987ed1ede9ab516925c1ba9c0a3e6ff91a8fb5a 100644 --- a/zh-cn/application-dev/reference/native-apis/native__huks__type_8h.md +++ b/zh-cn/application-dev/reference/native-apis/native__huks__type_8h.md @@ -20,40 +20,40 @@ | 名称 | 描述 | | -------- | -------- | -| [OH_Huks_Result](_o_h___huks___result.md) | struct
表示状态返回数据,包括返回码和消息。 | -| [OH_Huks_Blob](_o_h___huks___blob.md) | struct
定义存放数据的结构体类型。 | -| [OH_Huks_Param](_o_h___huks___param.md) | struct
定义参数集中的参数结构体类型。 | -| [OH_Huks_ParamSet](_o_h___huks___param_set.md) | struct
定义参数集的结构体类型。 | -| [OH_Huks_CertChain](_o_h___huks___cert_chain.md) | struct
定义证书链的结构体类型。 | -| [OH_Huks_KeyInfo](_o_h___huks___key_info.md) | struct
定义密钥信息的结构体类型。 | -| [OH_Huks_PubKeyInfo](_o_h___huks___pub_key_info.md) | struct
定义公钥信息的结构体类型。 | -| [OH_Huks_KeyMaterialRsa](_o_h___huks___key_material_rsa.md) | struct
定义Rsa密钥的结构体类型。 | -| [OH_Huks_KeyMaterialEcc](_o_h___huks___key_material_ecc.md) | struct
定义Ecc密钥的结构体类型。 | -| [OH_Huks_KeyMaterialDsa](_o_h___huks___key_material_dsa.md) | struct
定义Dsa密钥的结构体类型。 | -| [OH_Huks_KeyMaterialDh](_o_h___huks___key_material_dh.md) | struct
定义Dh密钥的结构体类型。 | -| [OH_Huks_KeyMaterial25519](_o_h___huks___key_material25519.md) | struct
定义25519类型密钥的结构体类型。 | +| [OH_Huks_Result](_o_h___huks___result.md) | 表示状态返回数据,包括返回码和消息。 | +| [OH_Huks_Blob](_o_h___huks___blob.md) | 定义存放数据的结构体类型。 | +| [OH_Huks_Param](_o_h___huks___param.md) | 定义参数集中的参数结构体类型。 | +| [OH_Huks_ParamSet](_o_h___huks___param_set.md) | 定义参数集的结构体类型。 | +| [OH_Huks_CertChain](_o_h___huks___cert_chain.md) | 定义证书链的结构体类型。 | +| [OH_Huks_KeyInfo](_o_h___huks___key_info.md) | 定义密钥信息的结构体类型。 | +| [OH_Huks_PubKeyInfo](_o_h___huks___pub_key_info.md) | 定义公钥信息的结构体类型。 | +| [OH_Huks_KeyMaterialRsa](_o_h___huks___key_material_rsa.md) | 定义Rsa密钥的结构体类型。 | +| [OH_Huks_KeyMaterialEcc](_o_h___huks___key_material_ecc.md) | 定义Ecc密钥的结构体类型。 | +| [OH_Huks_KeyMaterialDsa](_o_h___huks___key_material_dsa.md) | 定义Dsa密钥的结构体类型。 | +| [OH_Huks_KeyMaterialDh](_o_h___huks___key_material_dh.md) | 定义Dh密钥的结构体类型。 | +| [OH_Huks_KeyMaterial25519](_o_h___huks___key_material25519.md) | 定义25519类型密钥的结构体类型。 | ### 宏定义 -| 名称 | 描述 | +| 名称 | 值 | | -------- | -------- | -| **OH_HUKS_AE_TAG_LEN** 16 | | -| **OH_HUKS_BITS_PER_BYTE** 8 | | -| **OH_HUKS_MAX_KEY_SIZE** 2048 | | -| **OH_HUKS_AE_NONCE_LEN** 12 | | -| **OH_HUKS_MAX_KEY_ALIAS_LEN** 64 | | -| **OH_HUKS_MAX_PROCESS_NAME_LEN** 50 | | -| **OH_HUKS_MAX_RANDOM_LEN** 1024 | | -| **OH_HUKS_SIGNATURE_MIN_SIZE** 64 | | -| **OH_HUKS_MAX_OUT_BLOB_SIZE** (5 \* 1024 \* 1024) | | -| **OH_HUKS_WRAPPED_FORMAT_MAX_SIZE** (1024 \* 1024) | | -| **OH_HUKS_IMPORT_WRAPPED_KEY_TOTAL_BLOBS** 10 | | -| **TOKEN_CHALLENGE_LEN** 32 | | -| **SHA256_SIGN_LEN** 32 | | -| **TOKEN_SIZE** 32 | | -| **MAX_AUTH_TIMEOUT_SECOND** 60 | | -| **SECURE_SIGN_VERSION** 0x01000001 | | +| **OH_HUKS_AE_TAG_LEN** | 16| +| **OH_HUKS_BITS_PER_BYTE** |8 | +| **OH_HUKS_MAX_KEY_SIZE** | 2048 | +| **OH_HUKS_AE_NONCE_LEN** | 12 | +| **OH_HUKS_MAX_KEY_ALIAS_LEN** | 64 | +| **OH_HUKS_MAX_PROCESS_NAME_LEN** | 50 | +| **OH_HUKS_MAX_RANDOM_LEN** | 1024 | +| **OH_HUKS_SIGNATURE_MIN_SIZE** | 64 | +| **OH_HUKS_MAX_OUT_BLOB_SIZE** | (5 \* 1024 \* 1024) | +| **OH_HUKS_WRAPPED_FORMAT_MAX_SIZE** | (1024 \* 1024) | +| **OH_HUKS_IMPORT_WRAPPED_KEY_TOTAL_BLOBS** | 10 | +| **TOKEN_CHALLENGE_LEN** | 32 | +| **SHA256_SIGN_LEN** | 32 | +| **TOKEN_SIZE** | 32 | +| **MAX_AUTH_TIMEOUT_SECOND** | 60 | +| **SECURE_SIGN_VERSION** | 0x01000001| ### 枚举 @@ -78,4 +78,4 @@ | [OH_Huks_ChallengeType](_huks_type_api.md#oh_huks_challengetype) {
OH_HUKS_CHALLENGE_TYPE_NORMAL = 0,
OH_HUKS_CHALLENGE_TYPE_CUSTOM = 1,
OH_HUKS_CHALLENGE_TYPE_NONE = 2
} | 密钥使用时生成challenge的类型 | | [OH_Huks_ChallengePosition](_huks_type_api.md#oh_huks_challengeposition) {
OH_HUKS_CHALLENGE_POS_0 = 0,
OH_HUKS_CHALLENGE_POS_1,
OH_HUKS_CHALLENGE_POS_2,
OH_HUKS_CHALLENGE_POS_3
} | challenge类型为用户自定义类型时,生成的challenge有效长度仅为8字节连续的数据,且仅支持4种位置。 | | [OH_Huks_SecureSignType](_huks_type_api.md#oh_huks_securesigntype) { OH_HUKS_SECURE_SIGN_WITH_AUTHINFO = 1 } | 生成或导入密钥时,指定该密钥的安全签名类型。 | -| [OH_Huks_Tag](_huks_type_api.md#oh_huks_tag) {
OH_HUKS_TAG_INVALID = OH_HUKS_TAG_TYPE_INVALID \| 0, OH_HUKS_TAG_ALGORITHM = OH_HUKS_TAG_TYPE_UINT \| 1, OH_HUKS_TAG_PURPOSE = OH_HUKS_TAG_TYPE_UINT \| 2, OH_HUKS_TAG_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 3,
OH_HUKS_TAG_DIGEST = OH_HUKS_TAG_TYPE_UINT \| 4, OH_HUKS_TAG_PADDING = OH_HUKS_TAG_TYPE_UINT \| 5, OH_HUKS_TAG_BLOCK_MODE = OH_HUKS_TAG_TYPE_UINT \| 6, OH_HUKS_TAG_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 7,
OH_HUKS_TAG_ASSOCIATED_DATA = OH_HUKS_TAG_TYPE_BYTES \| 8, OH_HUKS_TAG_NONCE = OH_HUKS_TAG_TYPE_BYTES \| 9, OH_HUKS_TAG_IV = OH_HUKS_TAG_TYPE_BYTES \| 10, OH_HUKS_TAG_INFO = OH_HUKS_TAG_TYPE_BYTES \| 11,
OH_HUKS_TAG_SALT = OH_HUKS_TAG_TYPE_BYTES \| 12, OH_HUKS_TAG_PWD = OH_HUKS_TAG_TYPE_BYTES \| 13, OH_HUKS_TAG_ITERATION = OH_HUKS_TAG_TYPE_UINT \| 14, OH_HUKS_TAG_KEY_GENERATE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 15,
OH_HUKS_TAG_DERIVE_MAIN_KEY = OH_HUKS_TAG_TYPE_BYTES \| 16, OH_HUKS_TAG_DERIVE_FACTOR = OH_HUKS_TAG_TYPE_BYTES \| 17, OH_HUKS_TAG_DERIVE_ALG = OH_HUKS_TAG_TYPE_UINT \| 18, OH_HUKS_TAG_AGREE_ALG = OH_HUKS_TAG_TYPE_UINT \| 19,
OH_HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 20, OH_HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 21, OH_HUKS_TAG_AGREE_PUBLIC_KEY = OH_HUKS_TAG_TYPE_BYTES \| 22, OH_HUKS_TAG_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 23,
OH_HUKS_TAG_DERIVE_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 24, OH_HUKS_TAG_IMPORT_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 25, OH_HUKS_TAG_UNWRAP_ALGORITHM_SUITE = OH_HUKS_TAG_TYPE_UINT \| 26, OH_HUKS_TAG_ALL_USERS = OH_HUKS_TAG_TYPE_BOOL \| 301,
OH_HUKS_TAG_USER_ID = OH_HUKS_TAG_TYPE_UINT \| 302, OH_HUKS_TAG_NO_AUTH_REQUIRED = OH_HUKS_TAG_TYPE_BOOL \| 303, OH_HUKS_TAG_USER_AUTH_TYPE = OH_HUKS_TAG_TYPE_UINT \| 304, OH_HUKS_TAG_AUTH_TIMEOUT = OH_HUKS_TAG_TYPE_UINT \| 305,
OH_HUKS_TAG_AUTH_TOKEN = OH_HUKS_TAG_TYPE_BYTES \| 306, OH_HUKS_TAG_KEY_AUTH_ACCESS_TYPE = OH_HUKS_TAG_TYPE_UINT \| 307, OH_HUKS_TAG_KEY_SECURE_SIGN_TYPE = OH_HUKS_TAG_TYPE_UINT \| 308, OH_HUKS_TAG_CHALLENGE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 309,
OH_HUKS_TAG_CHALLENGE_POS = OH_HUKS_TAG_TYPE_UINT \| 310, OH_HUKS_TAG_ATTESTATION_CHALLENGE = OH_HUKS_TAG_TYPE_BYTES \| 501, OH_HUKS_TAG_ATTESTATION_APPLICATION_ID = OH_HUKS_TAG_TYPE_BYTES \| 502, OH_HUKS_TAG_ATTESTATION_ID_BRAND = OH_HUKS_TAG_TYPE_BYTES \| 503,
OH_HUKS_TAG_ATTESTATION_ID_DEVICE = OH_HUKS_TAG_TYPE_BYTES \| 504, OH_HUKS_TAG_ATTESTATION_ID_PRODUCT = OH_HUKS_TAG_TYPE_BYTES \| 505, OH_HUKS_TAG_ATTESTATION_ID_SERIAL = OH_HUKS_TAG_TYPE_BYTES \| 506, OH_HUKS_TAG_ATTESTATION_ID_IMEI = OH_HUKS_TAG_TYPE_BYTES \| 507,
OH_HUKS_TAG_ATTESTATION_ID_MEID = OH_HUKS_TAG_TYPE_BYTES \| 508, OH_HUKS_TAG_ATTESTATION_ID_MANUFACTURER = OH_HUKS_TAG_TYPE_BYTES \| 509, OH_HUKS_TAG_ATTESTATION_ID_MODEL = OH_HUKS_TAG_TYPE_BYTES \| 510, OH_HUKS_TAG_ATTESTATION_ID_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 511,
OH_HUKS_TAG_ATTESTATION_ID_SOCID = OH_HUKS_TAG_TYPE_BYTES \| 512, OH_HUKS_TAG_ATTESTATION_ID_UDID = OH_HUKS_TAG_TYPE_BYTES \| 513, OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = OH_HUKS_TAG_TYPE_BYTES \| 514, OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO = OH_HUKS_TAG_TYPE_BYTES \| 515,
OH_HUKS_TAG_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 1001, OH_HUKS_TAG_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1002, OH_HUKS_TAG_IS_ALLOWED_WRAP = OH_HUKS_TAG_TYPE_BOOL \| 1003, OH_HUKS_TAG_KEY_WRAP_TYPE = OH_HUKS_TAG_TYPE_UINT \| 1004,
OH_HUKS_TAG_KEY_AUTH_ID = OH_HUKS_TAG_TYPE_BYTES \| 1005, OH_HUKS_TAG_KEY_ROLE = OH_HUKS_TAG_TYPE_UINT \| 1006, OH_HUKS_TAG_KEY_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1007, OH_HUKS_TAG_IS_ASYNCHRONIZED = OH_HUKS_TAG_TYPE_UINT \| 1008,
OH_HUKS_TAG_SECURE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 1009, OH_HUKS_TAG_SECURE_KEY_UUID = OH_HUKS_TAG_TYPE_BYTES \| 1010, OH_HUKS_TAG_KEY_DOMAIN = OH_HUKS_TAG_TYPE_UINT \| 1011, OH_HUKS_TAG_SYMMETRIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20001,
OH_HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20002, OH_HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20003
} | 参数集所用的TAG值枚举 | +| [OH_Huks_Tag](_huks_type_api.md#oh_huks_tag) {
OH_HUKS_TAG_ALGORITHM = OH_HUKS_TAG_TYPE_UINT \| 1, OH_HUKS_TAG_PURPOSE = OH_HUKS_TAG_TYPE_UINT \| 2, OH_HUKS_TAG_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 3,
OH_HUKS_TAG_DIGEST = OH_HUKS_TAG_TYPE_UINT \| 4, OH_HUKS_TAG_PADDING = OH_HUKS_TAG_TYPE_UINT \| 5, OH_HUKS_TAG_BLOCK_MODE = OH_HUKS_TAG_TYPE_UINT \| 6, OH_HUKS_TAG_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 7,
OH_HUKS_TAG_ASSOCIATED_DATA = OH_HUKS_TAG_TYPE_BYTES \| 8, OH_HUKS_TAG_NONCE = OH_HUKS_TAG_TYPE_BYTES \| 9, OH_HUKS_TAG_IV = OH_HUKS_TAG_TYPE_BYTES \| 10, OH_HUKS_TAG_INFO = OH_HUKS_TAG_TYPE_BYTES \| 11,
OH_HUKS_TAG_SALT = OH_HUKS_TAG_TYPE_BYTES \| 12, OH_HUKS_TAG_ITERATION = OH_HUKS_TAG_TYPE_UINT \| 14, OH_HUKS_TAG_KEY_GENERATE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 15,
OH_HUKS_TAG_AGREE_ALG = OH_HUKS_TAG_TYPE_UINT \| 19,
OH_HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 20, OH_HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 21, OH_HUKS_TAG_AGREE_PUBLIC_KEY = OH_HUKS_TAG_TYPE_BYTES \| 22, OH_HUKS_TAG_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 23,
OH_HUKS_TAG_DERIVE_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT \| 24, OH_HUKS_TAG_IMPORT_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT \| 25, OH_HUKS_TAG_UNWRAP_ALGORITHM_SUITE = OH_HUKS_TAG_TYPE_UINT \| 26, OH_HUKS_TAG_ALL_USERS = OH_HUKS_TAG_TYPE_BOOL \| 301,
OH_HUKS_TAG_USER_ID = OH_HUKS_TAG_TYPE_UINT \| 302, OH_HUKS_TAG_NO_AUTH_REQUIRED = OH_HUKS_TAG_TYPE_BOOL \| 303, OH_HUKS_TAG_USER_AUTH_TYPE = OH_HUKS_TAG_TYPE_UINT \| 304, OH_HUKS_TAG_AUTH_TIMEOUT = OH_HUKS_TAG_TYPE_UINT \| 305,
OH_HUKS_TAG_AUTH_TOKEN = OH_HUKS_TAG_TYPE_BYTES \| 306, OH_HUKS_TAG_KEY_AUTH_ACCESS_TYPE = OH_HUKS_TAG_TYPE_UINT \| 307, OH_HUKS_TAG_KEY_SECURE_SIGN_TYPE = OH_HUKS_TAG_TYPE_UINT \| 308, OH_HUKS_TAG_CHALLENGE_TYPE = OH_HUKS_TAG_TYPE_UINT \| 309,
OH_HUKS_TAG_CHALLENGE_POS = OH_HUKS_TAG_TYPE_UINT \| 310, OH_HUKS_TAG_ATTESTATION_CHALLENGE = OH_HUKS_TAG_TYPE_BYTES \| 501, OH_HUKS_TAG_ATTESTATION_APPLICATION_ID = OH_HUKS_TAG_TYPE_BYTES \| 502, OH_HUKS_TAG_ATTESTATION_ID_ALIAS = OH_HUKS_TAG_TYPE_BYTES \| 511,
OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = OH_HUKS_TAG_TYPE_BYTES \| 514, OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO = OH_HUKS_TAG_TYPE_BYTES \| 515,
OH_HUKS_TAG_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL \| 1001, OH_HUKS_TAG_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1002, OH_HUKS_TAG_IS_ALLOWED_WRAP = OH_HUKS_TAG_TYPE_BOOL \| 1003, OH_HUKS_TAG_KEY_WRAP_TYPE = OH_HUKS_TAG_TYPE_UINT \| 1004,
OH_HUKS_TAG_KEY_AUTH_ID = OH_HUKS_TAG_TYPE_BYTES \| 1005, OH_HUKS_TAG_KEY_ROLE = OH_HUKS_TAG_TYPE_UINT \| 1006, OH_HUKS_TAG_KEY_FLAG = OH_HUKS_TAG_TYPE_UINT \| 1007, OH_HUKS_TAG_IS_ASYNCHRONIZED = OH_HUKS_TAG_TYPE_UINT \| 1008,
OH_HUKS_TAG_KEY_DOMAIN = OH_HUKS_TAG_TYPE_UINT \| 1011, OH_HUKS_TAG_SYMMETRIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20001,
OH_HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20002, OH_HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES \| 20003
} | 参数集所用的TAG值枚举 | diff --git a/zh-cn/application-dev/reference/native-apis/status_8h.md b/zh-cn/application-dev/reference/native-apis/status_8h.md index cf46ce6091d04d966146246c33a8541662b30317..143572660c24dd1f0c9efb007423d80db2c7546e 100644 --- a/zh-cn/application-dev/reference/native-apis/status_8h.md +++ b/zh-cn/application-dev/reference/native-apis/status_8h.md @@ -21,7 +21,7 @@ | 类型定义名称 | 描述 | | -------- | -------- | -| [OH_AI_Status](_mind_spore.md#oh_ai_status) | Minspore的状态码。 | +| [OH_AI_Status](_mind_spore.md#oh_ai_status-1) | Minspore的状态码。 | ### 枚举 @@ -29,4 +29,4 @@ | 枚举名称 | 描述 | | -------- | -------- | | [OH_AI_CompCode](_mind_spore.md#oh_ai_compcode) { OH_AI_COMPCODE_CORE = 0x00000000u, OH_AI_COMPCODE_LITE = 0xF0000000u } | Minspore不同组件的代码。 | -| [OH_AI_Status](_mind_spore.md#oh_ai_status) {
OH_AI_STATUS_SUCCESS = 0,
OH_AI_STATUS_CORE_FAILED = OH_AI_COMPCODE_CORE \| 0x1,
OH_AI_STATUS_LITE_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -1),
OH_AI_STATUS_LITE_NULLPTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -2),
OH_AI_STATUS_LITE_PARAM_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -3),
OH_AI_STATUS_LITE_NO_CHANGE = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -4),
OH_AI_STATUS_LITE_SUCCESS_EXIT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -5),
OH_AI_STATUS_LITE_MEMORY_FAILED = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -6),
OH_AI_STATUS_LITE_NOT_SUPPORT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -7),
OH_AI_STATUS_LITE_THREADPOOL_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -8),
OH_AI_STATUS_LITE_UNINITIALIZED_OBJ = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -9),
OH_AI_STATUS_LITE_OUT_OF_TENSOR_RANGE, OH_AI_STATUS_LITE_INPUT_TENSOR_ERROR,
OH_AI_STATUS_LITE_REENTRANT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -102), OH_AI_STATUS_LITE_GRAPH_FILE_ERROR,
OH_AI_STATUS_LITE_NOT_FIND_OP = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -300),
OH_AI_STATUS_LITE_INVALID_OP_NAME = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -301),
OH_AI_STATUS_LITE_INVALID_OP_ATTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -302),
OH_AI_STATUS_LITE_OP_EXECUTE_FAILURE,
OH_AI_STATUS_LITE_FORMAT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -400),
OH_AI_STATUS_LITE_INFER_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -500),
OH_AI_STATUS_LITE_INFER_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -501),
OH_AI_STATUS_LITE_INPUT_PARAM_INVALID } | Minspore的状态码。 | +| [OH_AI_Status](_mind_spore.md#oh_ai_status-1) {
OH_AI_STATUS_SUCCESS = 0,
OH_AI_STATUS_CORE_FAILED = OH_AI_COMPCODE_CORE \| 0x1,
OH_AI_STATUS_LITE_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -1),
OH_AI_STATUS_LITE_NULLPTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -2),
OH_AI_STATUS_LITE_PARAM_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -3),
OH_AI_STATUS_LITE_NO_CHANGE = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -4),
OH_AI_STATUS_LITE_SUCCESS_EXIT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -5),
OH_AI_STATUS_LITE_MEMORY_FAILED = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -6),
OH_AI_STATUS_LITE_NOT_SUPPORT = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -7),
OH_AI_STATUS_LITE_THREADPOOL_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -8),
OH_AI_STATUS_LITE_UNINITIALIZED_OBJ = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -9),
OH_AI_STATUS_LITE_OUT_OF_TENSOR_RANGE, OH_AI_STATUS_LITE_INPUT_TENSOR_ERROR,
OH_AI_STATUS_LITE_REENTRANT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -102), OH_AI_STATUS_LITE_GRAPH_FILE_ERROR,
OH_AI_STATUS_LITE_NOT_FIND_OP = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -300),
OH_AI_STATUS_LITE_INVALID_OP_NAME = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -301),
OH_AI_STATUS_LITE_INVALID_OP_ATTR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -302),
OH_AI_STATUS_LITE_OP_EXECUTE_FAILURE,
OH_AI_STATUS_LITE_FORMAT_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -400),
OH_AI_STATUS_LITE_INFER_ERROR = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -500),
OH_AI_STATUS_LITE_INFER_INVALID = OH_AI_COMPCODE_LITE \| (0x0FFFFFFF & -501),
OH_AI_STATUS_LITE_INPUT_PARAM_INVALID } | Minspore的状态码。 | diff --git a/zh-cn/application-dev/reference/native-apis/types_8h.md b/zh-cn/application-dev/reference/native-apis/types_8h.md index f9dda2dfa2c2a0e31486c72166d7d98c88273f0e..7cec0202f4b94b5602c75650b85f7f0d0bbcf1a6 100644 --- a/zh-cn/application-dev/reference/native-apis/types_8h.md +++ b/zh-cn/application-dev/reference/native-apis/types_8h.md @@ -21,13 +21,13 @@ | 类型定义名称 | 描述 | | -------- | -------- | -| [OH_AI_ModelType](_mind_spore.md#oh_ai_modeltype) | 模型文件的类型。 | -| [OH_AI_DeviceType](_mind_spore.md#oh_ai_devicetype) | 设备类型信息,包含了目前支持的设备类型。 | +| [OH_AI_ModelType](_mind_spore.md#oh_ai_modeltype-1) | 模型文件的类型。 | +| [OH_AI_DeviceType](_mind_spore.md#oh_ai_devicetype-1) | 设备类型信息,包含了目前支持的设备类型。 | ### 枚举 | 枚举名称 | 描述 | | -------- | -------- | -| [OH_AI_ModelType](_mind_spore.md#oh_ai_modeltype) {
OH_AI_MODELTYPE_MINDIR = 0,
OH_AI_MODELTYPE_INVALID = 0xFFFFFFFF } | 模型文件的类型。 | -| [OH_AI_DeviceType](_mind_spore.md#oh_ai_devicetype) {
OH_AI_DEVICETYPE_CPU = 0,
OH_AI_DEVICETYPE_KIRIN_NPU,
OH_AI_DEVICETYPE_INVALID = 100 } | 设备类型信息,包含了目前支持的设备类型。 | +| [OH_AI_ModelType](_mind_spore.md#oh_ai_modeltype-1) {
OH_AI_MODELTYPE_MINDIR = 0,
OH_AI_MODELTYPE_INVALID = 0xFFFFFFFF } | 模型文件的类型。 | +| [OH_AI_DeviceType](_mind_spore.md#oh_ai_devicetype-1) {
OH_AI_DEVICETYPE_CPU = 0,
OH_AI_DEVICETYPE_KIRIN_GPU,
OH_AI_DEVICETYPE_KIRIN_NPU,
OH_AI_DEVICETYPE_NNRT = 60,
OH_AI_DEVICETYPE_INVALID = 100 } | 设备类型信息,包含了目前支持的设备类型。 | diff --git a/zh-cn/application-dev/reference/syscap.md b/zh-cn/application-dev/reference/syscap.md index fc98c0e05570f40281523fb766a525b070c47e49..33e85ad51d5c03103ef633f6d54a5aad6791e793 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。 ``` 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) { @@ -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/Readme-CN.md b/zh-cn/application-dev/security/Readme-CN.md index 186b1d3403e7c60711d77a84effce1879e209df3..1b3e692d5f4a589a2a216b64c4b961f46538f3b6 100644 --- a/zh-cn/application-dev/security/Readme-CN.md +++ b/zh-cn/application-dev/security/Readme-CN.md @@ -11,9 +11,9 @@ - 密钥管理 - [HUKS开发概述](huks-overview.md) - [HUKS开发指导](huks-guidelines.md) -- 加密算法库框架 - - [加密算法库框架概述](cryptoFramework-overview.md) - - [加密算法框架开发指导](cryptoFramework-guidelines.md) +- 加解密算法库框架 + - [加解密算法库框架概述](cryptoFramework-overview.md) + - [加解密算法框架开发指导](cryptoFramework-guidelines.md) - 证书 - [证书概述](cert-overview.md) - [证书开发指导](cert-guidelines.md) diff --git a/zh-cn/application-dev/security/accesstoken-guidelines.md b/zh-cn/application-dev/security/accesstoken-guidelines.md index 43acda4d53954079b619111187bec2cba61cadc8..3f2651971cda944da705ae0c8211b49cb9194769 100644 --- a/zh-cn/application-dev/security/accesstoken-guidelines.md +++ b/zh-cn/application-dev/security/accesstoken-guidelines.md @@ -161,12 +161,13 @@ ### FA模型下的示例代码 ```js - //ability的onWindowStageCreate生命周期 - onWindowStageCreate() { - var 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 type:" + typeof(data)); console.log("data:" + data); console.log("data permissions:" + data.permissions); diff --git a/zh-cn/application-dev/security/cert-guidelines.md b/zh-cn/application-dev/security/cert-guidelines.md index 05240c1eb3adf66cc3133faa12f674fb99b9e807..e25951555dced38ce3d53290920c97c97b8d8886 100644 --- a/zh-cn/application-dev/security/cert-guidelines.md +++ b/zh-cn/application-dev/security/cert-guidelines.md @@ -441,7 +441,7 @@ function crlEntrySample() { } // 获取被吊销证书的序列号 - let serialNumber = crlEntry.getSerialNumber(); + serialNumber = crlEntry.getSerialNumber(); // 获取被吊销证书的吊销日期 try { diff --git a/zh-cn/application-dev/security/cryptoFramework-guidelines.md b/zh-cn/application-dev/security/cryptoFramework-guidelines.md index 562bef2ff66b8f961190f2bd1027496ffa4fa793..934a986b4b775e0c2b55da87764323584516ca2e 100644 --- a/zh-cn/application-dev/security/cryptoFramework-guidelines.md +++ b/zh-cn/application-dev/security/cryptoFramework-guidelines.md @@ -1,1113 +1,1606 @@ -# 加解密算法库框架开发指导 - -> **说明** -> -> 本开发指导基于API version 9,OH SDK版本3.2.7以上,适用于JS语言开发 - -## 使用密钥对象生成与转换操作 - -**场景说明** - -使用密钥生成操作中,典型的场景有: - -1. 随机生成算法库密钥对象。该对象可用于后续的加解密等操作。 -2. 根据指定数据生成算法库密钥对象(也就是将外部或存储的二进制数据转换为算法库的密钥对象)。该对象可用于后续的加解密等操作。 -3. 获取算法库密钥对象的二进制数据,用于存储或传输。 -> **说明**:密钥对象Key包括对称密钥SymKey和非对称密钥(公钥PubKey和私钥PriKey),其中公钥和私钥组成密钥对KeyPair。密钥之间的具体关系可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - - -**接口及参数说明** - -详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - -以上场景涉及的常用接口如下表所示: - -|实例名|接口名|描述| -|---|---|---| -|cryptoFramework|createAsyKeyGenerator(algName : string) : AsyKeyGenerator|根据algName设置的非对称密钥规格,创建非对称密钥生成器对象| -|cryptoFramework|createSymKeyGenerator(algName : string) : SymKeyGenerator|根据algName设置的对称密钥规格,创建对称密钥生成器对象| -|AsyKeyGenerator|generateKeyPair(callback : AsyncCallback\) : void|使用callback方式,随机生成非对称密钥对象KeyPair| -|AsyKeyGenerator|generateKeyPair() : Promise\|使用Promise方式,随机生成非对称密钥对象KeyPair| -|SymKeyGenerator|generateSymKey(callback : AsyncCallback\) : void|使用callback方式,随机生成对称密钥对象SymKey| -|SymKeyGenerator|generateSymKey() : Promise\|使用Promise方式,随机生成对称密钥对象SymKey| -| AsyKeyGenerator | convertKey(pubKey : DataBlob, priKey : DataBlob, callback : AsyncCallback\) : void | 使用callback方式,根据指定的公钥和私钥二进制数据生成KeyPair对象
(允许公钥/私钥为null,即只传入单一公钥或私钥,生成只携带公钥或私钥的KeyPair对象) | -| AsyKeyGenerator | convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise\ | 使用Promise方式,根据指定的公钥和私钥二进制数据生成KeyPair对象
(允许公钥/私钥为null,即只传入单一公钥或私钥,生成只携带公钥或私钥的KeyPair对象) | -| SymKeyGenerator | convertKey(key : DataBlob, callback : AsyncCallback\) : void| 使用callback方式,根据指定的二进制数据,生成对称密钥对象SymKey | -| SymKeyGenerator |convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise\| 使用Promise方式,根据指定的二进制数据,生成对称密钥对象SymKey | -| Key | getEncoded() : DataBlob; | 获取Key密钥对象的二进制数据(Key的子类实例包括对称密钥SymKey、公钥PubKey、私钥PriKey) | - -**开发步骤** - -示例1:随机生成非对称密钥KeyPair,并获得二进制数据(场景1、3) - -1. 创建非对称密钥生成器; -2. 通过非对称密钥生成器随机生成非对称密钥; -3. 获取密钥对象的二进制数据; - -以使用Promise方式随机生成RSA密钥(1024位,素数个数为2)为例: - -```javascript -import cryptoFramework from '@ohos.security.cryptoFramework'; - -function generateAsyKey() { - // 创建非对称密钥生成器 - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); - // 通过非对称密钥生成器,随机生成非对称密钥 - let keyGenPromise = rsaGenerator.generateKeyPair(); - keyGenPromise.then( keyPair => { - globalKeyPair = keyPair; - let pubKey = globalKeyPair.pubKey; - let priKey = globalKeyPair.priKey; - // 获取非对称密钥的二进制数据 - pkBlob = pubKey.getEncoded(); - skBlob = priKey.getEncoded(); - AlertDialog.show({ message : "pk bin data" + pkBlob.data} ); - AlertDialog.show({ message : "sk bin data" + skBlob.data} ); - }) -} -``` - -示例2:随机生成对称密钥SymKey,并获得二进制数据(场景1、3) - -1. 创建对称密钥生成器; -2. 通过对称密钥生成器随机生成对称密钥; -3. 获取算法库密钥对象的二进制数据; - -以使用Promise方式随机生成AES密钥(256位)为例: - -```javascript -import cryptoFramework from '@ohos.security.cryptoFramework'; - -// 字节流以16进制输出 -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -function testGenerateAesKey() { - // 创建对称密钥生成器 - let symKeyGenerator = cryptoFramework.createSymKeyGenerator('AES256'); - // 通过密钥生成器随机生成对称密钥 - let promiseSymKey = symKeyGenerator.generateSymKey(); - promiseSymKey.then( key => { - // 获取对称密钥的二进制数据,输出长度为256bit的字节流 - let encodedKey = key.getEncoded(); - console.info('key hex:' + uint8ArrayToShowStr(encodedKey.data)); - }) -} -``` - -示例3:根据指定的RSA非对称密钥二进制数据,生成KeyPair对象(场景2) - -1. 获取RSA公钥或私钥二进制数据,公钥需满足ASN.1语法、X.509规范、DER编码格式,私钥需满足ASN.1语法、PKCS#8规范、DER编码格式。 -2. 创建AsyKeyGenerator对象,调用convertKey方法,传入公钥二进制和私钥二进制(二者非必选项,可只传入其中一个),转换为KeyPair对象。 - -```javascript -import cryptoFramework from '@ohos.security.cryptoFramework'; - -function convertAsyKey() { - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024"); - let pkval = new Uint8Array([48,129,159,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,129,141,0,48,129,137,2,129,129,0,174,203,113,83,113,3,143,213,194,79,91,9,51,142,87,45,97,65,136,24,166,35,5,179,42,47,212,79,111,74,134,120,73,67,21,19,235,80,46,152,209,133,232,87,192,140,18,206,27,106,106,169,106,46,135,111,118,32,129,27,89,255,183,116,247,38,12,7,238,77,151,167,6,102,153,126,66,28,253,253,216,64,20,138,117,72,15,216,178,37,208,179,63,204,39,94,244,170,48,190,21,11,73,169,156,104,193,3,17,100,28,60,50,92,235,218,57,73,119,19,101,164,192,161,197,106,105,73,2,3,1,0,1]); - let pkBlob = {data : pkval}; - rsaGenerator.convertKey(pkBlob, null, function(err, keyPair) { - if (keyPair == null) { - AlertDialog.show({message : "Convert keypair fail"}); - } - AlertDialog.show({message : "Convert KeyPair success"}); - }) -} -``` - -**说明** - - 当前convertKey操作,公钥只支持转换满足X.509规范的DER格式,私钥只支持PKCS#8规范的DER格式; - -示例4:根据指定的ECC非对称密钥二进制数据,生成KeyPair对象(场景2、3) - -1. 获取ECC二进制密钥数据,封装成DataBlob对象。 -2. 调用convertKey方法,传入公钥二进制和私钥二进制(二者非必选项,可只传入其中一个),转换为KeyPair对象。 - -```javascript -function convertEccAsyKey() { - let pubKeyArray = new Uint8Array([4,196,55,233,100,227,224,38,38,5,128,81,53,112,129,7,59,189,116,105,182,87,190,85,31,248,172,116,213,7,206,85,190,65,169,193,138,173,232,187,74,54,78,251,29,131,192,223,251,227,170,138,80,7,98,193,216,168,235,114,255,188,70,134,104]); - let priKeyArray = new Uint8Array([255,70,89,220,189,19,41,157,175,173,83,60,74,216,195,96,24,181,231,23,112,247,150,126,15,155,24,79,33,97,31,225]); - let pubKeyBlob = { data: pubKeyArray }; - let priKeyBlob = { data: priKeyArray }; - let generator = cryptoFrameWork.createAsyKeyGenerator("ECC256"); - generator.convertKey(pubKeyBlob, priKeyBlob, (error, data) => { - if (error) { - AlertDialog.show({message : "Convert keypair fail"}); - } - AlertDialog.show({message : "Convert KeyPair success"}); - }) -} -``` - -示例5:根据指定的对称密钥二进制数据,生成SymKey对象(场景2、3) - -1. 创建对称密钥生成器; -2. 通过对称密钥生成器,根据指定的对称密钥二进制数据,生成SymKey对象; -3. 获取算法库密钥对象的二进制数据; - -以使用callback方式生成3DES密钥(3DES密钥只能为192位)为例: - -```javascript -import cryptoFramework from '@ohos.security.cryptoFramework'; - -// 字节流以16进制输出 -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -function genKeyMaterialBlob() { - let arr = [ - 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, - 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, - 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) - let keyMaterial = new Uint8Array(arr); - return {data : keyMaterial}; -} - -function testConvertAesKey() { - // 生成对称密钥生成器 - let symKeyGenerator = cryptoFramework.createSymKeyGenerator('3DES192'); - // 根据用户指定的数据,生成对称密钥 - let keyMaterialBlob = genKeyMaterialBlob(); - try { - symKeyGenerator.convertKey(keyMaterialBlob, (error, key) => { - if (error) { // 业务逻辑执行错误通过callback的第一个参数返回错误信息 - console.error(`convertKey error, ${error.code}, ${error.message}`); - return; - } - console.info(`key algName: ${key.algName}`); - console.info(`key format: ${key.format}`); - let encodedKey = key.getEncoded(); // 获取对称密钥的二进制数据,输出长度为192bit的字节流 - console.info('key getEncoded hex: ' + uint8ArrayToShowStr(encodedKey.data)); - }) - } catch (error) { // 参数检查的错误以同步的方式立即抛出异常 - console.error(`convertKey failed, ${error.code}, ${error.message}`); - return; - } -} -``` - -## 使用加解密操作 - -**场景说明** - -在数据存储或传输场景中,可以使用加解密操作用于保证数据的机密性,防止敏感数据泄露。使用加解密操作中,典型的场景有: -1. 使用对称密钥的加解密操作 -2. 使用非对称密钥的加解密操作 - -**接口及参数说明** - -详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - -以上场景设计的常用接口如下表所示: - -|实例名|接口名|描述| -|---|---|---| -|cryptoFramework|createCipher(transformation : string) : Cipher|根据transformation设置的算法参数创建Cipher对象| -|Cipher|init(opMode : CryptoMode, key : Key, params : ParamsSpec, callback : AsyncCallback\) : void|使用callback方式设置密钥并初始化Cipher对象| -|Cipher|init(opMode : CryptoMode, key : Key, params : ParamsSpec) : Promise\|使用Promise方式设置密钥并初始化Cipher对象| -|Cipher|update(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式添加加解密数据| -|Cipher|update(data : DataBlob) : Promise\|使用Promise方式添加加解密数据| -|Cipher|doFinal(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式结束对所有数据的加解密| -|Cipher|doFinal(data : DataBlob) : Promise\|使用Promise方式结束对所有数据的加解密| - -**开发步骤** - -示例1:使用对称密钥的加解密操作 - -1. 创建对称密钥生成器。 -2. 通过密钥生成器生成对称密钥。 -3. 创建加解密生成器。 -4. 通过加解密生成器加密或解密数据。 - -以AES GCM以Promise方式加解密为例: - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -var globalCipher; -var globalGcmParams; -var globalKey; -var globalCipherText; - -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, algoName : "GcmParamsSpec"}; - return gcmParamsSpec; -} - -// 可理解的字符串转成字节流 -function stringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -// 字节流以16进制输出 -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -// 字节流转成可理解的字符串 -function uint8ArrayToString(array) { - let arrayString = ''; - for (let i = 0; i < array.length; i++) { - arrayString += String.fromCharCode(array[i]); - } - return arrayString; -} - -function genKeyMaterialBlob() { - let arr = [ - 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, - 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, - 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) - let keyMaterial = new Uint8Array(arr); - return {data : keyMaterial}; -} - - -// AES GCM模式示例,自动生成密钥(promise写法) -function testAesGcm() { - return new Promise((resolve, reject) => { - setTimeout(() => { - resolve('testAesGcm'); - }, 10) - }).then(() => { - // 生成对称密钥生成器 - let symAlgoName = 'AES128'; - let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); - if (symKeyGenerator == null) { - console.error('createSymKeyGenerator failed'); - return; - } - console.info(`symKeyGenerator algName: ${symKeyGenerator.algName}`); - // 通过密钥生成器随机生成128位长度的对称密钥 - let promiseSymKey = symKeyGenerator.generateSymKey(); - // 构造参数 - globalGcmParams = genGcmParamsSpec(); - - // 生成加解密生成器 - let cipherAlgoName = 'AES128|GCM|PKCS7'; - try { - globalCipher = cryptoFramework.createCipher(cipherAlgoName); - console.info(`cipher algName: ${globalCipher.algName}`); - } catch (error) { - console.error(`createCipher failed, ${error.code}, ${error.message}`); - return; - } - return promiseSymKey; - }).then(key => { - let encodedKey = key.getEncoded(); - console.info('key hex:' + uint8ArrayToShowStr(encodedKey.data)); - globalKey = key; - return key; - }).then(key => { - // 初始化加解密操作环境:开始加密 - let mode = cryptoFramework.CryptoMode.ENCRYPT_MODE; - let promiseInit = globalCipher.init(mode, key, globalGcmParams); // init - return promiseInit; - }).then(() => { - let plainText = {data : stringToUint8Array('this is test!')}; - let promiseUpdate = globalCipher.update(plainText); // update - return promiseUpdate; - }).then(updateOutput => { - globalCipherText = updateOutput; - let promiseFinal = globalCipher.doFinal(null); // doFinal - return promiseFinal; - }).then(authTag => { - // 获取加密后的认证信息 - globalGcmParams.authTag = authTag; - return; - }).then(() => { - // 初始化加解密操作环境:开始解密 - let mode = cryptoFramework.CryptoMode.DECRYPT_MODE; - let promiseInit = globalCipher.init(mode, globalKey, globalGcmParams); // init - return promiseInit; - }).then(() => { - let promiseUpdate = globalCipher.update(globalCipherText); // update - return promiseUpdate; - }).then(updateOutput => { - console.info('decrypt plainText: ' + uint8ArrayToString(updateOutput.data)); - let promiseFinal = globalCipher.doFinal(null); // doFinal - return promiseFinal; - }).then(finalOutput => { - if (finalOutput == null) { - console.info('GCM finalOutput is null'); - } - }).catch(error => { - console.error(`catch error, ${error.code}, ${error.message}`); - }) -} -``` - -以3DES ECB以callback方式加解密(采用已有数据生成密钥)为例: - -```js -import cryptoFramework from '@ohos.security.cryptoFramework'; - -var globalCipher; -var globalGcmParams; -var globalKey; -var globalCipherText; - -// 可理解的字符串转成字节流 -function stringToUint8Array(str) { - let arr = []; - for (let i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - return new Uint8Array(arr); -} - -// 字节流以16进制输出 -function uint8ArrayToShowStr(uint8Array) { - return Array.prototype.map - .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) - .join(''); -} - -// 字节流转成可理解的字符串 -function uint8ArrayToString(array) { - let arrayString = ''; - for (let i = 0; i < array.length; i++) { - arrayString += String.fromCharCode(array[i]); - } - return arrayString; -} - -function genKeyMaterialBlob() { - let arr = [ - 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, - 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, - 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) - let keyMaterial = new Uint8Array(arr); - return {data : keyMaterial}; -} - -// 3DES ECB模式示例,采用已有数据生成密钥(callback写法) -function test3DesEcb() { - // 生成对称密钥生成器 - let symAlgoName = '3DES192'; - let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); - if (symKeyGenerator == null) { - console.error('createSymKeyGenerator failed'); - return; - } - console.info(`symKeyGenerator algName: ${symKeyGenerator.algName}`); - - // 生成加解密生成器 - let cipherAlgoName = '3DES192|ECB|PKCS7'; - try { - globalCipher = cryptoFramework.createCipher(cipherAlgoName); - console.info(`cipher algName: ${globalCipher.algName}`); - } catch (error) { - console.error(`createCipher failed, ${error.code}, ${error.message}`); - return; - } - - // 根据指定的数据,生成对称密钥 - let keyMaterialBlob = genKeyMaterialBlob(); - try { - symKeyGenerator.convertKey(keyMaterialBlob, (error, key) => { - if (error) { - console.error(`convertKey error, ${error.code}, ${error.message}`); - return; - } - console.info(`key algName: ${key.algName}`); - console.info(`key format: ${key.format}`); - let encodedKey = key.getEncoded(); - console.info('key getEncoded hex: ' + uint8ArrayToShowStr(encodedKey.data)); - globalKey = key; - - // 初始化加解密操作环境:开始加密 - let mode = cryptoFramework.CryptoMode.ENCRYPT_MODE; - // init - globalCipher.init(mode, key, null, (err, ) => { - let plainText = {data : stringToUint8Array('this is test!')}; - // update - globalCipher.update(plainText, (err, updateOutput) => { - globalCipherText = updateOutput; - //doFinal - globalCipher.doFinal(null, (err, finalOutput) => { - if (error) { - console.error(`doFinal error, ${error.code}, ${error.message}`); - return; - } - if (finalOutput != null) { - globalCipherText = Array.from(globalCipherText.data); - finalOutput = Array.from(finalOutput.data); - globalCipherText = globalCipherText.concat(finalOutput); - globalCipherText = new Uint8Array(globalCipherText); - globalCipherText = {data : globalCipherText}; - } - // 初始化加解密操作环境:开始解密 - let mode = cryptoFramework.CryptoMode.DECRYPT_MODE; - // init - globalCipher.init(mode, globalKey, null, (err, ) => { - // update - globalCipher.update(globalCipherText, (err, updateOutput) => { - console.info('decrypt plainText: ' + uint8ArrayToString(updateOutput.data)); - // doFinal - globalCipher.doFinal(null, (error, finalOutput) => { - if (finalOutput != null) { - console.info("decrypt plainText:" + uint8ArrayToString(finalOutput.data)); - } - }) - }) - }) - }) - }) - }) - }) - } catch (error) { - console.error(`convertKey failed, ${error.code}, ${error.message}`); - return; - } -} -``` - -示例2:使用非对称密钥的加解密操作 - -1. 生成RSA密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成RSA非对称密钥。 -2. 生成Cipher对象。通过createCipher接口创建Cipher对象,执行初始化操作,设置密钥及加解密模式。 -3. 执行加解密操作。通过调用Cipher对象提供的doFinal接口,执行加密操作生成密文或执行解密操作生成明文。 - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let plan = "This is cipher test."; - -function stringToUint8Array(str) { - var arr = []; - for (var i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - var tmpArray = new Uint8Array(arr); - return tmpArray; -} - -function encryptMessageProMise() { - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); - let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); - let keyGenPromise = rsaGenerator.generateKeyPair(); - keyGenPromise.then(rsaKeyPair => { - let pubKey = rsaKeyPair.pubKey; - return cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null); - }).then(() => { - let input = { data : stringToUint8Array(plan) }; - return cipher.doFinal(input); - }).then(dataBlob => { - console.info("EncryptOutPut is " + dataBlob.data); - }); -} - -function encryptMessageCallback() { - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); - let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); - rsaGenerator.generateKeyPair(function (err, keyPair) { - let pubKey = keyPair.pubKey; - cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null, function (err, data) { - let input = {data : stringToUint8Array(plan) }; - cipher.doFinal(input, function (err, data) { - console.info("EncryptOutPut is " + data.data); - }) - }) - }) -} -``` - -**说明** - -1. 使用RSA加解密时,Cipher对象不可重复调用init方法初始化,在创建了一个加密Cipher对象后,如果要进行解密,则需要重新创建另一个Cipher对象执行解密操作。 -2. RSA加密有长度限制,允许加密明文的最大长度见[加解密算法库框架概述](cryptoFramework-overview.md)中的基本概念章节。 -3. RSA解密每次允许解密的密文长度为,RSA密钥的位数/8。 - -## 使用签名验签操作 - -**场景说明** - -当需要判断接收的数据是否被篡改且是否为指定对象发送的数据时,可以使用签名验签操作。使用签名验签操作中,典型的场景有: -1. 使用RSA签名验签操作 -2. 使用ECC签名验签操作 - -**接口及参数说明** - -详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - -|实例名|接口名|描述| -|---|---|---| -|cryptoFramework|createSign(algName : string) : Sign|根据String设置的参数创建Sign对象| -|Sign|init(priKey : PriKey, callback : AsyncCallback\) : void|使用callback方式设置密钥并初始化Sign对象| -|Sign|init(priKey : PriKey) : Promise\|使用Promise方式设置密钥并初始化Sign对象| -|Sign|update(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式添加签名数据| -|Sign|update(data : DataBlob) : Promise\|用Promise方式添加签名数据| -|Sign|sign(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式签名所有数据| -|Sign|sign(data : DataBlob) : Promise\|使用Promise方式签名所有数据| -|cryptoFramework|function createVerify(algName : string) : Verify|根据String设置的参数创建Verify对象| -|Verify|init(priKey : PriKey, callback : AsyncCallback\) : void|使用callback方式设置密钥并初始化Verify对象| -|Verify|init(priKey : PriKey) : Promise\|使用Promise方式设置密钥并初始化Verify对象| -|Verify|update(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式添加验签数据| -|Verify|update(data : DataBlob) : Promise\|用Promise方式添加验签数据| -|Verify|verify(data : DataBlob, signatureData : DataBlob, callback : AsyncCallback\) : void|使用callback方式验签所有数据| -|Verify|verify(data : DataBlob, signatureData : DataBlob) : Promise\|使用Promise方式验签所有数据| - -**开发步骤** - -示例1:使用RSA签名验签操作 -1. 生成RSA密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成RSA非对称密钥。 -2. 生成Sign对象。通过createSign接口创建Sign对象,执行初始化操作并设置签名私钥。 -3. 执行签名操作。通过Sign类提供的update接口,添加签名数据,并调用sign接口生成数据的签名。 -4. 生成Verify对象。通过createVerify接口创建Verify对象,执行初始化操作并设置验签公钥。 -5. 执行验签操作。通过Verify类提供的update接口,添加签名数据,并调用verify接口传入签名进行验签。 -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -function stringToUint8Array(str) { - var arr = []; - for (var i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - var tmpArray = new Uint8Array(arr); - return tmpArray; -} - -let globalKeyPair; -let SignMessageBlob; -let plan1 = "This is Sign test plan1"; -let plan2 = "This is Sign test plan1"; -let input1 = { data : stringToUint8Array(plan1) }; -let input2 = { data : stringToUint8Array(plan2) }; - -function signMessagePromise() { - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); - let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); - let keyGenPromise = rsaGenerator.generateKeyPair(); - keyGenPromise.then( keyPair => { - globalKeyPair = keyPair; - let priKey = globalKeyPair.priKey; - return signer.init(priKey); - }).then(() => { - return signer.update(input1); - }).then(() => { - return signer.sign(input2); - }).then(dataBlob => { - SignMessageBlob = dataBlob; - console.info("sign output is " + SignMessageBlob.data); - }); -} - -function verifyMessagePromise() { - let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); - let verifyInitPromise = verifyer.init(globalKeyPair.pubKey); - verifyInitPromise.then(() => { - return verifyer.update(input1); - }).then(() => { - return verifyer.verify(input2, SignMessageBlob); - }).then(res => { - console.log("Verify result is " + res); - }); -} - -function signMessageCallback() { - let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); - let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); - rsaGenerator.generateKeyPair(function (err, keyPair) { - globalKeyPair = keyPair; - let priKey = globalKeyPair.priKey; - signer.init(priKey, function (err, data) { - signer.update(input1, function (err, data) { - signer.sign(input2, function (err, data) { - SignMessageBlob = data; - console.info("sign output is " + SignMessageBlob.data); - }); - }); - }); - }); -} - -function verifyMessageCallback() { - let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); - verifyer.init(globalKeyPair.pubKey, function (err, data) { - verifyer.update(input1, function(err, data) { - verifyer.verify(input2, SignMessageBlob, function(err, data) { - console.info("verify result is " + data); - }); - }); - }) -} -``` - -示例2:使用ECDSA操作 -1. 生成ECC密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成ECC非对称密钥。 -2. 生成Sign对象。通过createSign接口创建Sign对象,执行初始化操作并设置签名私钥。 -3. 执行签名操作。通过Sign类提供的update接口,添加签名数据,并调用doFinal接口生成数据的签名。 -4. 生成Verify对象。通过createVerify接口创建Verify对象,执行初始化操作并设置验签公钥。 -5. 执行验签操作。通过Verify类提供的update接口,添加签名数据,并调用doFinal接口传入签名进行验签。 - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -function stringToUint8Array(str) { - var arr = []; - for (var i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - var tmpArray = new Uint8Array(arr); - return tmpArray; -} - -let globalKeyPair; -let SignMessageBlob; -let plan1 = "This is Sign test plan1"; -let plan2 = "This is Sign test plan1"; -let input1 = { data : stringToUint8Array(plan1) }; -let input2 = { data : stringToUint8Array(plan2) }; - -function signMessagePromise() { - let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); - let signer = cryptoFramework.createSign("ECC256|SHA256"); - let keyGenPromise = eccGenerator.generateKeyPair(); - keyGenPromise.then( keyPair => { - globalKeyPair = keyPair; - let priKey = globalKeyPair.priKey; - return signer.init(priKey); - }).then(() => { - return signer.update(input1); - }).then(() => { - return signer.sign(input2); - }).then(dataBlob => { - SignMessageBlob = dataBlob; - console.info("sign output is " + SignMessageBlob.data); - }); -} - -function verifyMessagePromise() { - let verifyer = cryptoFramework.createVerify("ECC256|SHA256"); - let verifyInitPromise = verifyer.init(globalKeyPair.pubKey); - verifyInitPromise.then(() => { - return verifyer.update(input1); - }).then(() => { - return verifyer.verify(input2, SignMessageBlob); - }).then(res => { - console.log("Verify result is " + res); - }); -} - -function signMessageCallback() { - let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); - let signer = cryptoFramework.createSign("ECC256|SHA256"); - eccGenerator.generateKeyPair(function (err, keyPair) { - globalKeyPair = keyPair; - let priKey = globalKeyPair.priKey; - signer.init(priKey, function (err, data) { - signer.update(input1, function (err, data) { - signer.sign(input2, function (err, data) { - SignMessageBlob = data; - console.info("sign output is " + SignMessageBlob.data); - }); - }); - }); - }); -} - -function verifyMessageCallback() { - let verifyer = cryptoFramework.createVerify("ECC256|SHA256"); - verifyer.init(globalKeyPair.pubKey, function (err, data) { - verifyer.update(input1, function(err, data) { - verifyer.verify(input2, SignMessageBlob, function(err, data) { - console.info("verify result is " + data); - }); - }); - }) -} -``` - -## 使用摘要操作 - -**场景说明** - -用户指定摘要算法(如SHA256)生成Md实例,并输入单段或多段需要摘要的信息,进行摘要计算更新,并返回消息摘要计算结果,在指定算法后可获取当前算法名与摘要计算长度(字节) - -使用摘要操作的主要场景为: - -用户指定摘要算法(如SHA256)生成Md实例,并输入单段或多段需要摘要的信息,进行摘要计算更新,并返回消息摘要计算结果,在指定算法后可获取当前算法名与摘要计算长度(字节) - -**接口及参数说明** - -详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - -| 实例名 | 接口名 | 描述 | -| --------------- | ------------------------------------------------------------ | -------------------------------------------------- | -| cryptoFramework | function createMd(algName : string) : Md; | 指定摘要算法,生成摘要操作实例Md | -| Md | update(input : DataBlob, callback : AsyncCallback\) : void; | 接受用户输入数据,通过Callback的方式,异步更新摘要 | -| Md | update(input : DataBlob) : Promise\; | 接受用户输入数据,通过Promise的方式,异步更新摘要 | -| Md | digest(callback : AsyncCallback\) : void; | 通过Callback的方式,返回结果 | -| Md | digest() : Promise\; | 通过Promise的方式,返回结果 | -| Md | getMdLength() : number; | 获取摘要的长度(由指定的摘要算法决定) | -| Md | readonly algName : string; | 获取当前设置的摘要算法名 | - -**开发步骤** - -1. 设置算法,通过接口`createMd`生成摘要操作实例 -2. 接受用户数据,通过接口`update`,更新摘要,此步骤可重复 -3. 通过接口`digest`,返回摘要计算结果 -4. 获取当前摘要算法名与摘要计算长度 - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -// turn string into uint8Arr -function stringToUint8Array(str) { - var arr = []; - for (var i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - var tmpUint8Array = new Uint8Array(arr); - return tmpUint8Array; -} - -// generate dataBlob with given length -function GenDataBlob(dataBlobLen) { - var dataBlob; - if (dataBlobLen == 12) { - dataBlob = {data: stringToUint8Array("my test data")}; - } else { - console.error("GenDataBlob: dataBlobLen is invalid"); - dataBlob = {data: stringToUint8Array("my test data")}; - } - return dataBlob; -} - -// md with promise async -function doMdByPromise(algName) { - var md; - try { - md = cryptoFramework.createMd(algName); - } catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); - } - console.error("[Promise]: Md algName is: " + md.algName); - var promiseMdUpdate = md.update(GenDataBlob(12)); - promiseMdUpdate.then(() => { - var PromiseMdDigest = md.digest(); - return PromiseMdDigest; - }).then(mdOutput => { - console.error("[Promise]: MD result: " + mdOutput.data); - var mdLen = md.getMdLength(); - console.error("[Promise]: MD len: " + mdLen); - }).catch(error => { - console.error("[Promise]: error: " + error.message); - }); -} - -// md with callback async -function doMdByCallback(algName) { - var md; - try { - md = cryptoFramework.createMd(algName); - } catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); - } - console.error("[Callback]: Md algName is: " + md.algName); - md.update(GenDataBlob(12), (err,) => { - if (err) { - console.error("[Callback]: err: " + err.code); - } - md.digest((err1, mdOutput) => { - if (err1) { - console.error("[Callback]: err: " + err1.code); - } else { - console.error("[Callback]: MD result: " + mdOutput.data); - var mdLen = md.getMdLength(); - console.error("[Callback]: MD len: " + mdLen); - } - }); - }); -} -``` - -## 使用密钥协商操作 - -**场景说明** - -使用密钥协商操作中,典型的场景有: - -通信双方可以在一个公开的信道上通过相互传送一些消息,共同建立一个安全的共享秘密密钥。 - -**接口及参数说明** - -详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - -|实例名|接口名|描述| -|---|---|---| -|cryptoFramework|createKeyAgreement(algName : string) : KeyAgreement|根据String设置的参数创建KeyAgreement对象| -|KeyAgreement|generateSecret(priKey : PriKey, pubKey : PubKey, callback : AsyncCallback\) : void|使用callback方式进行密钥协商| -|KeyAgreement|generateSecret(priKey : PriKey, pubKey : PubKey) : Promise\|使用Promise方式进行密钥协商| - -**开发步骤** - -1. 生成ECC密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成ECC非对称密钥。 -2. 基于ECC密钥的私钥及公钥执行ECDH操作。 - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -let globalKeyPair; - -function ecdhPromise() { - let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); - let eccKeyAgreement = cryptoFramework.createKeyAgreement("ECC256"); - let keyGenPromise = eccGenerator.generateKeyPair(); - keyGenPromise.then( keyPair => { - globalKeyPair = keyPair; - return eccKeyAgreement.generateSecret(keyPair.priKey, keyPair.pubKey); - }).then((secret) => { - console.info("ecdh output is " + secret.data); - }).catch((error) => { - console.error("ecdh error."); - }); -} - -function ecdhCallback() { - let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); - let eccKeyAgreement = cryptoFramework.createKeyAgreement("ECC256"); - eccGenerator.generateKeyPair(function (err, keyPair) { - globalKeyPair = keyPair; - eccKeyAgreement.generateSecret(keyPair.priKey, keyPair.pubKey, function (err, secret) { - if (err) { - console.error("ecdh error."); - return; - } - console.info("ecdh output is " + secret.data); - }); - }); -} -``` - -## 使用消息认证码操作 - -**场景说明** - -消息认证码操作主要应用于身份认证的场景: - -Mac(message authentication code)可以对消息进行完整性校验,通过使用双方共享的密钥,识别出信息伪装篡改等行为 - -用户指定摘要算法(如SHA256)生成消息认证码Mac实例,输入对称密钥初始化Mac,并传入单段或多段需要摘要的信息,进行消息认证码计算,并获取消息认证码计算结果,在指定算法后可获取当前算法名与消息认证码计算长度(字节)。 - -**接口及参数说明** - -详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - -| 实例名 | 接口名 | 描述 | -| --------------- | ------------------------------------------------------------ | --------------------------------------------------- | -| cryptoFramework | function createMac(algName : string) : Mac; | 指定摘要算法,生成消息认证码实例Mac | -| Mac | init(key : SymKey, callback : AsyncCallback\) : void; | 接收输入对称密钥,通过Callback的方式,异步初始化MAC | -| Mac | init(key : SymKey) : Promise\; | 接收输入对称密钥,通过Promise的方式,异步初始化MAC | -| Mac | update(input : DataBlob, callback : AsyncCallback\) : void; | 接受输入数据,通过Callback的方式,异步更新MAC | -| Mac | update(input : DataBlob) : Promise\; | 接受输入数据,通过Promise的方式,异步更新MAC | -| Mac | doFinal(callback : AsyncCallback\) : void; | 通过Callback的方式,返回MAC计算结果 | -| Mac | doFinal() : Promise\; | 通过Promise的方式,返回MAC计算结果 | -| Mac | getMacLength() : number; | 获取MAC的长度(由指定的摘要算法决定) | -| Mac | readonly algName : string; | 获取当前设置的摘要算法名 | - -**开发步骤** - -1. 设置算法,通过接口`createMac`生成消息认证码操作实例 -2. 接受输入对称密钥,通过接口`init`,初始化Mac -3. 接受数据,通过接口`update`,更新Mac,此步骤可重复 -4. 通过接口`doFinal`,返回Mac计算结果 -5. 获取当前摘要算法名与Mac计算长度 - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -// turn string into uint8Arr -function stringToUint8Array(str) { - var arr = []; - for (var i = 0, j = str.length; i < j; ++i) { - arr.push(str.charCodeAt(i)); - } - var tmpUint8Array = new Uint8Array(arr); - return tmpUint8Array; -} - -// generate blob with this func -function GenDataBlob(dataBlobLen) { - var dataBlob; - if (dataBlobLen == 12) { - dataBlob = {data: stringToUint8Array("my test data")}; - } else { - console.error("GenDataBlob: dataBlobLen is invalid"); - dataBlob = {data: stringToUint8Array("my test data")}; - } - return dataBlob; -} - -// process by promise -function doHmacByPromise(algName) { - var mac; - try { - mac = cryptoFramework.createMac(algName); - } catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); - } - console.error("[Promise]: Mac algName is: " + mac.algName); - var KeyBlob = { - data : stringToUint8Array("12345678abcdefgh") - } - var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); - var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); - promiseConvertKey.then(symKey => { - var promiseMacInit = mac.init(symKey); - return promiseMacInit; - }).then(() => { - var promiseMacUpdate = mac.update(GenDataBlob(12)); - return promiseMacUpdate; - }).then(() => { - var PromiseMacDoFinal = mac.doFinal(); - return PromiseMacDoFinal; - }).then(macOutput => { - console.error("[Promise]: HMAC result: " + macOutput.data); - var macLen = mac.getMacLength(); - console.error("[Promise]: MAC len: " + macLen); - }).catch(error => { - console.error("[Promise]: error: " + error.message); - }); -} - -// process by callback -function doHmacByCallback(algName) { - var mac; - try { - mac = cryptoFramework.createMac(algName); - } catch (error) { - AlertDialog.show({message: "[Callback]: error code: " + error.code + ", message is: " + error.message}); - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); - } - var KeyBlob = { - data : stringToUint8Array("12345678abcdefgh") - } - var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); - symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { - if (err) { - console.error("[Callback]: err: " + err.code); - } - mac.init(symKey, (err1, ) => { - if (err1) { - console.error("[Callback]: err: " + err1.code); - } - mac.update(GenDataBlob(12), (err2, ) => { - if (err2) { - console.error("[Callback]: err: " + err2.code); - } - mac.doFinal((err3, macOutput) => { - if (err3) { - console.error("[Callback]: err: " + err3.code); - } else { - console.error("[Callback]: HMAC result: " + macOutput.data); - var macLen = mac.getMacLength(); - console.error("[Callback]: MAC len: " + macLen); - } - }); - }); - }); - }); -} -``` - - - -## 使用随机数操作 - -**场景说明** - -使用随机数操作的主要场景为: - -- 用户生成随机数Random实例,输入随机数生成的长度(字节),生成指定长度的随机数。 -- 用户使用生成的随机数作为参数,进行种子设置。 - -**接口及参数说明** - -详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 - -| 实例名 | 接口名 | 描述 | -| --------------- | ------------------------------------------------------------ | ---------------------------------------------- | -| cryptoFramework | function createRandom() : Random; | 生成随机数Random实例 | -| Random | generateRandom(len : number, callback: AsyncCallback\) : void; | 接受输入长度,通过Callback,异步生成随机数 | -| Random | generateRandom(len : number) : Promise\; | 接受输入长度,通过Promise,异步生成随机数 | -| Random | setSeed(seed : DataBlob) : void; | 接受输入Blob,设置种子 | - -**开发步骤** - -1. 通过接口`createRandom`生成随机数操作实例 -2. 接受输入长度,通过接口`generateRandom`,生成指定长度的随机数 -3. 接受DataBlob数据,通过接口`setSeed`,为随机数生成池设置种子 - -```javascript -import cryptoFramework from "@ohos.security.cryptoFramework" - -// process by promise -function doRandByPromise(len) { - var rand; - try { - rand = cryptoFramework.createRandom(); - } catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); - } - var promiseGenerateRand = rand.generateRandom(len); - promiseGenerateRand.then(randData => { - console.error("[Promise]: rand result: " + randData.data); - try { - rand.setSeed(randData); - } catch (error) { - console.log("setSeed failed, errCode: " + error.code + ", errMsg: " + error.message); - } - }).catch(error => { - console.error("[Promise]: error: " + error.message); - }); -} - -// process by callback -function doRandByCallback(len) { - var rand; - try { - rand = cryptoFramework.createRandom(); - } catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); - } - rand.generateRandom(len, (err, randData) => { - if (err) { - console.error("[Callback]: err: " + err.code); - } else { - console.error("[Callback]: generate random result: " + randData.data); - try { - rand.setSeed(randData); - } catch (error) { - console.log("setSeed failed, errCode: " + error.code + ", errMsg: " + error.message); - } - } - }); -} -``` +# 加解密算法库框架开发指导 + +> **说明** +> +> 本开发指导基于API version 9,OH SDK版本3.2.7以上,适用于JS语言开发 + +## 使用密钥对象生成与转换操作 + +**场景说明** + +使用密钥生成操作中,典型的场景有: + +1. 随机生成算法库密钥对象。该对象可用于后续的加解密等操作。 +2. 根据指定数据生成算法库密钥对象(也就是将外部或存储的二进制数据转换为算法库的密钥对象)。该对象可用于后续的加解密等操作。 +3. 获取算法库密钥对象的二进制数据,用于存储或传输。 +> **说明**:密钥对象Key包括对称密钥SymKey和非对称密钥(公钥PubKey和私钥PriKey),其中公钥和私钥组成密钥对KeyPair。密钥之间的具体关系可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 + + +**接口及参数说明** + +详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 + +以上场景涉及的常用接口如下表所示: + +|实例名|接口名|描述| +|---|---|---| +|cryptoFramework|createAsyKeyGenerator(algName : string) : AsyKeyGenerator|根据algName设置的非对称密钥规格,创建非对称密钥生成器对象| +|cryptoFramework|createSymKeyGenerator(algName : string) : SymKeyGenerator|根据algName设置的对称密钥规格,创建对称密钥生成器对象| +|AsyKeyGenerator|generateKeyPair(callback : AsyncCallback\) : void|使用callback方式,随机生成非对称密钥对象KeyPair| +|AsyKeyGenerator|generateKeyPair() : Promise\|使用Promise方式,随机生成非对称密钥对象KeyPair| +|SymKeyGenerator|generateSymKey(callback : AsyncCallback\) : void|使用callback方式,随机生成对称密钥对象SymKey| +|SymKeyGenerator|generateSymKey() : Promise\|使用Promise方式,随机生成对称密钥对象SymKey| +| AsyKeyGenerator | convertKey(pubKey : DataBlob, priKey : DataBlob, callback : AsyncCallback\) : void | 使用callback方式,根据指定的公钥和私钥二进制数据生成KeyPair对象
(允许公钥/私钥为null,即只传入单一公钥或私钥,生成只携带公钥或私钥的KeyPair对象) | +| AsyKeyGenerator | convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise\ | 使用Promise方式,根据指定的公钥和私钥二进制数据生成KeyPair对象
(允许公钥/私钥为null,即只传入单一公钥或私钥,生成只携带公钥或私钥的KeyPair对象) | +| SymKeyGenerator | convertKey(key : DataBlob, callback : AsyncCallback\) : void| 使用callback方式,根据指定的二进制数据,生成对称密钥对象SymKey | +| SymKeyGenerator |convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise\| 使用Promise方式,根据指定的二进制数据,生成对称密钥对象SymKey | +| Key | getEncoded() : DataBlob; | 获取Key密钥对象的二进制数据(Key的子类实例包括对称密钥SymKey、公钥PubKey、私钥PriKey) | + +**开发步骤** + +示例1:随机生成非对称密钥KeyPair,并获得二进制数据(场景1、3) + +1. 创建非对称密钥生成器; +2. 通过非对称密钥生成器随机生成非对称密钥; +3. 获取密钥对象的二进制数据; + +以使用Promise方式随机生成RSA密钥(1024位,素数个数为2)为例: + +```javascript +import cryptoFramework from '@ohos.security.cryptoFramework'; + +function generateAsyKey() { + // 创建非对称密钥生成器 + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + // 通过非对称密钥生成器,随机生成非对称密钥 + let keyGenPromise = rsaGenerator.generateKeyPair(); + keyGenPromise.then( keyPair => { + globalKeyPair = keyPair; + let pubKey = globalKeyPair.pubKey; + let priKey = globalKeyPair.priKey; + // 获取非对称密钥的二进制数据 + pkBlob = pubKey.getEncoded(); + skBlob = priKey.getEncoded(); + AlertDialog.show({ message : "pk bin data" + pkBlob.data} ); + AlertDialog.show({ message : "sk bin data" + skBlob.data} ); + }) +} +``` + +示例2:随机生成对称密钥SymKey,并获得二进制数据(场景1、3) + +1. 创建对称密钥生成器; +2. 通过对称密钥生成器随机生成对称密钥; +3. 获取算法库密钥对象的二进制数据; + +以使用Promise方式随机生成AES密钥(256位)为例: + +```javascript +import cryptoFramework from '@ohos.security.cryptoFramework'; + +// 字节流以16进制输出 +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +function testGenerateAesKey() { + // 创建对称密钥生成器 + let symKeyGenerator = cryptoFramework.createSymKeyGenerator('AES256'); + // 通过密钥生成器随机生成对称密钥 + let promiseSymKey = symKeyGenerator.generateSymKey(); + promiseSymKey.then( key => { + // 获取对称密钥的二进制数据,输出长度为256bit的字节流 + let encodedKey = key.getEncoded(); + console.info('key hex:' + uint8ArrayToShowStr(encodedKey.data)); + }) +} +``` + +示例3:根据指定的RSA非对称密钥二进制数据,生成KeyPair对象(场景2) + +1. 获取RSA公钥或私钥二进制数据,公钥需满足ASN.1语法、X.509规范、DER编码格式,私钥需满足ASN.1语法、PKCS#8规范、DER编码格式。 +2. 创建AsyKeyGenerator对象,调用convertKey方法,传入公钥二进制和私钥二进制(二者非必选项,可只传入其中一个),转换为KeyPair对象。 + +```javascript +import cryptoFramework from '@ohos.security.cryptoFramework'; + +function convertAsyKey() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024"); + let pkval = new Uint8Array([48,129,159,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,129,141,0,48,129,137,2,129,129,0,174,203,113,83,113,3,143,213,194,79,91,9,51,142,87,45,97,65,136,24,166,35,5,179,42,47,212,79,111,74,134,120,73,67,21,19,235,80,46,152,209,133,232,87,192,140,18,206,27,106,106,169,106,46,135,111,118,32,129,27,89,255,183,116,247,38,12,7,238,77,151,167,6,102,153,126,66,28,253,253,216,64,20,138,117,72,15,216,178,37,208,179,63,204,39,94,244,170,48,190,21,11,73,169,156,104,193,3,17,100,28,60,50,92,235,218,57,73,119,19,101,164,192,161,197,106,105,73,2,3,1,0,1]); + let pkBlob = {data : pkval}; + rsaGenerator.convertKey(pkBlob, null, function(err, keyPair) { + if (keyPair == null) { + AlertDialog.show({message : "Convert keypair fail"}); + } + AlertDialog.show({message : "Convert KeyPair success"}); + }) +} +``` + +**说明** + + 当前convertKey操作,公钥只支持转换满足X.509规范的DER格式,私钥只支持PKCS#8规范的DER格式; + +示例4:根据指定的ECC非对称密钥二进制数据,生成KeyPair对象(场景2、3) + +1. 获取ECC二进制密钥数据,封装成DataBlob对象。 +2. 调用convertKey方法,传入公钥二进制和私钥二进制(二者非必选项,可只传入其中一个),转换为KeyPair对象。 + +```javascript +function convertEccAsyKey() { + let pubKeyArray = new Uint8Array([48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,83,96,142,9,86,214,126,106,247,233,92,125,4,128,138,105,246,162,215,71,81,58,202,121,26,105,211,55,130,45,236,143,55,16,248,75,167,160,167,106,2,152,243,44,68,66,0,167,99,92,235,215,159,239,28,106,124,171,34,145,124,174,57,92]); + let priKeyArray = new Uint8Array([48,49,2,1,1,4,32,115,56,137,35,207,0,60,191,90,61,136,105,210,16,27,4,171,57,10,61,123,40,189,28,34,207,236,22,45,223,10,189,160,10,6,8,42,134,72,206,61,3,1,7]); + let pubKeyBlob = { data: pubKeyArray }; + let priKeyBlob = { data: priKeyArray }; + let generator = cryptoFrameWork.createAsyKeyGenerator("ECC256"); + generator.convertKey(pubKeyBlob, priKeyBlob, (error, data) => { + if (error) { + AlertDialog.show({message : "Convert keypair fail"}); + } + AlertDialog.show({message : "Convert KeyPair success"}); + }) +} +``` + +示例5:根据指定的对称密钥二进制数据,生成SymKey对象(场景2、3) + +1. 创建对称密钥生成器; +2. 通过对称密钥生成器,根据指定的对称密钥二进制数据,生成SymKey对象; +3. 获取算法库密钥对象的二进制数据; + +以使用callback方式生成3DES密钥(3DES密钥只能为192位)为例: + +```javascript +import cryptoFramework from '@ohos.security.cryptoFramework'; + +// 字节流以16进制输出 +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +function genKeyMaterialBlob() { + let arr = [ + 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, + 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, + 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) + let keyMaterial = new Uint8Array(arr); + return {data : keyMaterial}; +} + +function testConvertAesKey() { + // 生成对称密钥生成器 + let symKeyGenerator = cryptoFramework.createSymKeyGenerator('3DES192'); + // 根据用户指定的数据,生成对称密钥 + let keyMaterialBlob = genKeyMaterialBlob(); + try { + symKeyGenerator.convertKey(keyMaterialBlob, (error, key) => { + if (error) { // 业务逻辑执行错误通过callback的第一个参数返回错误信息 + console.error(`convertKey error, ${error.code}, ${error.message}`); + return; + } + console.info(`key algName: ${key.algName}`); + console.info(`key format: ${key.format}`); + let encodedKey = key.getEncoded(); // 获取对称密钥的二进制数据,输出长度为192bit的字节流 + console.info('key getEncoded hex: ' + uint8ArrayToShowStr(encodedKey.data)); + }) + } catch (error) { // 参数检查的错误以同步的方式立即抛出异常 + console.error(`convertKey failed, ${error.code}, ${error.message}`); + return; + } +} +``` + +## 使用加解密操作 + +**场景说明** + +在数据存储或传输场景中,可以使用加解密操作用于保证数据的机密性,防止敏感数据泄露。使用加解密操作中,典型的场景有: +1. 使用对称密钥的加解密操作 +2. 使用非对称密钥的加解密操作 + +**接口及参数说明** + +详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。
由于密码算法的复杂性,在选取不同规格和参数时,开发差异较大,无法通过代码示例一一列举,请仔细阅读API参考资料中的相关接口,确保使用正确。 + +以上场景设计的常用接口如下表所示: + +|实例名|接口名|描述| +|---|---|---| +|cryptoFramework|createCipher(transformation : string) : Cipher|根据transformation设置的算法参数创建Cipher对象| +|Cipher|init(opMode : CryptoMode, key : Key, params : ParamsSpec, callback : AsyncCallback\) : void|使用callback方式设置密钥并初始化Cipher对象| +|Cipher|init(opMode : CryptoMode, key : Key, params : ParamsSpec) : Promise\|使用Promise方式设置密钥并初始化Cipher对象| +|Cipher|update(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式添加加解密数据| +|Cipher|update(data : DataBlob) : Promise\|使用Promise方式添加加解密数据| +|Cipher|doFinal(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式结束对所有数据的加解密| +|Cipher|doFinal(data : DataBlob) : Promise\|使用Promise方式结束对所有数据的加解密| + +**开发步骤** + +示例1:使用对称密钥的加解密操作 + +1. 创建对称密钥生成器。 +2. 通过密钥生成器生成对称密钥。 +3. 创建加解密生成器。 +4. 通过加解密生成器加密或解密数据。 + +以AES GCM以Promise方式加解密为例: + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +var globalCipher; +var globalGcmParams; +var globalKey; +var globalCipherText; + +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}; // GCM的authTag在加密时从doFinal结果中获取,在解密时填入init函数的params参数中 + + let gcmParamsSpec = {iv : ivBlob, aad : aadBlob, authTag : tagBlob, algName : "GcmParamsSpec"}; + return gcmParamsSpec; +} + +// 可理解的字符串转成字节流 +function stringToUint8Array(str) { + let arr = []; + for (let i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + return new Uint8Array(arr); +} + +// 字节流以16进制输出 +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +// 字节流转成可理解的字符串 +function uint8ArrayToString(array) { + let arrayString = ''; + for (let i = 0; i < array.length; i++) { + arrayString += String.fromCharCode(array[i]); + } + return arrayString; +} + +function genKeyMaterialBlob() { + let arr = [ + 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, + 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, + 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) + let keyMaterial = new Uint8Array(arr); + return {data : keyMaterial}; +} + + +// AES GCM模式示例,自动生成密钥(promise写法) +function testAesGcm() { + return new Promise((resolve, reject) => { + setTimeout(() => { + resolve('testAesGcm'); + }, 10) + }).then(() => { + // 生成对称密钥生成器 + let symAlgName = 'AES128'; + let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); + if (symKeyGenerator == null) { + console.error('createSymKeyGenerator failed'); + return; + } + console.info(`symKeyGenerator algName: ${symKeyGenerator.algName}`); + // 通过密钥生成器随机生成128位长度的对称密钥 + let promiseSymKey = symKeyGenerator.generateSymKey(); + // 构造参数 + globalGcmParams = genGcmParamsSpec(); + + // 生成加解密生成器 + let cipherAlgName = 'AES128|GCM|PKCS7'; + try { + globalCipher = cryptoFramework.createCipher(cipherAlgName); + console.info(`cipher algName: ${globalCipher.algName}`); + } catch (error) { + console.error(`createCipher failed, ${error.code}, ${error.message}`); + return; + } + return promiseSymKey; + }).then(key => { + let encodedKey = key.getEncoded(); + console.info('key hex:' + uint8ArrayToShowStr(encodedKey.data)); + globalKey = key; + return key; + }).then(key => { + // 初始化加解密操作环境:开始加密 + let mode = cryptoFramework.CryptoMode.ENCRYPT_MODE; + let promiseInit = globalCipher.init(mode, key, globalGcmParams); // init + return promiseInit; + }).then(() => { + let plainText = {data : stringToUint8Array('this is test!')}; + let promiseUpdate = globalCipher.update(plainText); // update + return promiseUpdate; + }).then(updateOutput => { + globalCipherText = updateOutput; + let promiseFinal = globalCipher.doFinal(null); // doFinal + return promiseFinal; + }).then(authTag => { + // GCM模式需要从doFinal的输出中取出加密后的认证信息并填入globalGcmParams,在解密时传入init() + globalGcmParams.authTag = authTag; + return; + }).then(() => { + // 初始化加解密操作环境:开始解密 + let mode = cryptoFramework.CryptoMode.DECRYPT_MODE; + let promiseInit = globalCipher.init(mode, globalKey, globalGcmParams); // init + return promiseInit; + }).then(() => { + let promiseUpdate = globalCipher.update(globalCipherText); // update + return promiseUpdate; + }).then(updateOutput => { + console.info('decrypt plainText: ' + uint8ArrayToString(updateOutput.data)); + let promiseFinal = globalCipher.doFinal(null); // doFinal + return promiseFinal; + }).then(finalOutput => { + if (finalOutput == null) { // 使用finalOutput.data前,先判断结果是否为null + console.info('GCM finalOutput is null'); + } + }).catch(error => { + console.error(`catch error, ${error.code}, ${error.message}`); + }) +} +``` + +以3DES ECB以callback方式加解密(采用已有数据生成密钥)为例: + +```js +import cryptoFramework from '@ohos.security.cryptoFramework'; + +var globalCipher; +var globalGcmParams; +var globalKey; +var globalCipherText; + +// 可理解的字符串转成字节流 +function stringToUint8Array(str) { + let arr = []; + for (let i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + return new Uint8Array(arr); +} + +// 字节流以16进制输出 +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +// 字节流转成可理解的字符串 +function uint8ArrayToString(array) { + let arrayString = ''; + for (let i = 0; i < array.length; i++) { + arrayString += String.fromCharCode(array[i]); + } + return arrayString; +} + +function genKeyMaterialBlob() { + let arr = [ + 0xba, 0x3d, 0xc2, 0x71, 0x21, 0x1e, 0x30, 0x56, + 0xad, 0x47, 0xfc, 0x5a, 0x46, 0x39, 0xee, 0x7c, + 0xba, 0x3b, 0xc2, 0x71, 0xab, 0xa0, 0x30, 0x72]; // keyLen = 192 (24 bytes) + let keyMaterial = new Uint8Array(arr); + return {data : keyMaterial}; +} + +// 3DES ECB模式示例,采用已有数据生成密钥(callback写法) +function test3DesEcb() { + // 生成对称密钥生成器 + let symAlgName = '3DES192'; + let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); + if (symKeyGenerator == null) { + console.error('createSymKeyGenerator failed'); + return; + } + console.info(`symKeyGenerator algName: ${symKeyGenerator.algName}`); + + // 生成加解密生成器 + let cipherAlgName = '3DES192|ECB|PKCS7'; + try { + globalCipher = cryptoFramework.createCipher(cipherAlgName); + console.info(`cipher algName: ${globalCipher.algName}`); + } catch (error) { + console.error(`createCipher failed, ${error.code}, ${error.message}`); + return; + } + + // 根据指定的数据,生成对称密钥 + let keyMaterialBlob = genKeyMaterialBlob(); + try { + symKeyGenerator.convertKey(keyMaterialBlob, (error, key) => { + if (error) { + console.error(`convertKey error, ${error.code}, ${error.message}`); + return; + } + console.info(`key algName: ${key.algName}`); + console.info(`key format: ${key.format}`); + let encodedKey = key.getEncoded(); + console.info('key getEncoded hex: ' + uint8ArrayToShowStr(encodedKey.data)); + globalKey = key; + + // 初始化加解密操作环境:开始加密 + let mode = cryptoFramework.CryptoMode.ENCRYPT_MODE; + // init + globalCipher.init(mode, key, null, (err, ) => { + let plainText = {data : stringToUint8Array('this is test!')}; + // update + globalCipher.update(plainText, (err, updateOutput) => { + globalCipherText = updateOutput; + //doFinal + globalCipher.doFinal(null, (err, finalOutput) => { + if (error) { + console.error(`doFinal error, ${error.code}, ${error.message}`); + return; + } + if (finalOutput != null) { + globalCipherText = Array.from(globalCipherText.data); + finalOutput = Array.from(finalOutput.data); + globalCipherText = globalCipherText.concat(finalOutput); + globalCipherText = new Uint8Array(globalCipherText); + globalCipherText = {data : globalCipherText}; + } + // 初始化加解密操作环境:开始解密 + let mode = cryptoFramework.CryptoMode.DECRYPT_MODE; + // init + globalCipher.init(mode, globalKey, null, (err, ) => { + // update + globalCipher.update(globalCipherText, (err, updateOutput) => { + console.info('decrypt plainText: ' + uint8ArrayToString(updateOutput.data)); + // doFinal + globalCipher.doFinal(null, (error, finalOutput) => { + if (finalOutput != null) { // 使用finalOutput.data前,先判断结果是否为null + console.info("decrypt plainText:" + uint8ArrayToString(finalOutput.data)); + } + }) + }) + }) + }) + }) + }) + }) + } catch (error) { + console.error(`convertKey failed, ${error.code}, ${error.message}`); + return; + } +} +``` +以AES GCM以promise方式,分段update()实现加解密为例: + +```javascript +import cryptoFramework from '@ohos.security.cryptoFramework'; + +var globalCipher; +var globalGcmParams; +var globalKey; +var globalCipherText; +var globalPlainText; + +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; +} + +// 字节流以16进制输出 +function uint8ArrayToShowStr(uint8Array) { + return Array.prototype.map + .call(uint8Array, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); +} + +// 字节流转成可理解的字符串 +function uint8ArrayToString(array) { + let arrayString = ''; + for (let i = 0; i < array.length; i++) { + arrayString += String.fromCharCode(array[i]); + } + return arrayString; +} + +// 算法库不限定update的次数和每次加解密的数据量,业务可根据自身内存情况对明文/密文进行多次分段。 +function testAesMultiUpdate() { + return new Promise((resolve, reject) => { + setTimeout(() => { + resolve('testAesMultiUpdate'); + }, 10) + }).then(() => { + // 生成对称密钥生成器 + let symAlgName = 'AES128'; + let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); + if (symKeyGenerator == null) { + console.error('createSymKeyGenerator failed'); + return; + } + console.info(`symKeyGenerator algName: ${symKeyGenerator.algName}`); + // 通过密钥生成器随机生成128位长度的对称密钥 + let promiseSymKey = symKeyGenerator.generateSymKey(); + // 构造参数 + globalGcmParams = genGcmParamsSpec(); + + // 生成加解密生成器 + let cipherAlgName = 'AES128|GCM|PKCS7'; + try { + globalCipher = cryptoFramework.createCipher(cipherAlgName); + console.info(`cipher algName: ${globalCipher.algName}`); + } catch (error) { + console.error(`createCipher failed, ${error.code}, ${error.message}`); + return; + } + return promiseSymKey; + }).then(key => { + let encodedKey = key.getEncoded(); + console.info('key hex:' + uint8ArrayToShowStr(encodedKey.data)); + globalKey = key; + return key; + }).then(key => { + // 初始化加解密操作环境:开始加密 + let mode = cryptoFramework.CryptoMode.ENCRYPT_MODE; + let promiseInit = globalCipher.init(mode, key, globalGcmParams); // init + return promiseInit; + }).then(async () => { + let plainText = "aaaaa.....bbbbb.....ccccc.....ddddd.....eee"; // 假设明文总共43字节 + let messageArr = []; + let updateLength = 20; // 假设每20字节分段update一次 + globalCipherText = []; + + for (let i = 0; i <= plainText.length; i++) { + if ((i % updateLength == 0 || i == plainText.length) && messageArr.length != 0) { + let message = new Uint8Array(messageArr); + let messageBlob = { data : message }; + let updateOutput = await globalCipher.update(messageBlob); // 分段update + // 把update的结果拼接起来,得到密文(有些情况下还需拼接doFinal的结果,这取决于分组模式 + // 和填充模式,本例中GCM模式的doFinal结果只包含authTag而不含密文,所以不需要拼接) + globalCipherText = globalCipherText.concat(Array.from(updateOutput.data)); + messageArr = []; + } + if (i < plainText.length) { + messageArr.push(plainText.charCodeAt(i)); + } + } + return; + }).then(() => { + let promiseFinal = globalCipher.doFinal(null); // doFinal + return promiseFinal; + }).then(authTag => { + // 获取加密后的认证信息 + globalGcmParams.authTag = authTag; + return; + }).then(() => { + // 初始化加解密操作环境:开始解密 + let mode = cryptoFramework.CryptoMode.DECRYPT_MODE; + let promiseInit = globalCipher.init(mode, globalKey, globalGcmParams); // init + return promiseInit; + }).then(async () => { + let updateLength = 20; + let updateTimes = Math.ceil(globalCipherText.length / updateLength); // 上取整 + globalPlainText = ""; + for (let i = 0; i < updateTimes; i++) { + let messageArr = globalCipherText.slice(i * updateLength, (i + 1) * updateLength); + let message = new Uint8Array(messageArr); + let messageBlob = { data : message }; + let updateOutput = await globalCipher.update(messageBlob); // 分段update + globalPlainText += uint8ArrayToString(updateOutput.data); // 恢复出原始明文 + } + return; + }).then(() => { + let promiseFinal = globalCipher.doFinal(null); // doFinal + return promiseFinal; + }).then(finalOutput => { + if (finalOutput == null) { + console.info('GCM finalOutput is null'); + } + console.info(`decrypt output: ${globalPlainText}`); + }).catch(error => { + console.error(`catch error, ${error.code}, ${error.message}`); + }) +} +``` + +示例2:使用非对称密钥的加解密操作 + +1. 生成RSA密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成RSA非对称密钥。 +2. 生成Cipher对象。通过createCipher接口创建Cipher对象,执行初始化操作,设置密钥及加解密模式。 +3. 执行加解密操作。通过调用Cipher对象提供的doFinal接口,执行加密操作生成密文或执行解密操作生成明文。 + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let plan = "This is cipher test."; + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpArray = new Uint8Array(arr); + return tmpArray; +} + +function encryptMessageProMise() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); + let keyGenPromise = rsaGenerator.generateKeyPair(); + keyGenPromise.then(rsaKeyPair => { + let pubKey = rsaKeyPair.pubKey; + return cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null); + }).then(() => { + let input = { data : stringToUint8Array(plan) }; + return cipher.doFinal(input); + }).then(dataBlob => { + console.info("EncryptOutPut is " + dataBlob.data); + }); +} + +function encryptMessageCallback() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); + rsaGenerator.generateKeyPair(function (err, keyPair) { + let pubKey = keyPair.pubKey; + cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, pubKey, null, function (err, data) { + let input = {data : stringToUint8Array(plan) }; + cipher.doFinal(input, function (err, data) { + console.info("EncryptOutPut is " + data.data); + }) + }) + }) +} + +function decryptMessageProMise() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); + let decoder = cryptoFramework.createCipher("RSA1024|PKCS1"); + let keyGenPromise = rsaGenerator.generateKeyPair(); + let keyPair; + let cipherDataBlob; + let input = { data : stringToUint8Array(plan) }; + keyGenPromise.then(rsaKeyPair => { + keyPair = rsaKeyPair; + return cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, keyPair.pubKey, null); + }).then(() => { + return cipher.doFinal(input); + }).then(dataBlob => { + console.info("EncryptOutPut is " + dataBlob.data); + AlertDialog.show({message : "output" + dataBlob.data}); + cipherDataBlob = dataBlob; + return decoder.init(cryptoFramework.CryptoMode.DECRYPT_MODE, keyPair.priKey, null); + }).then(() => { + return decoder.doFinal(cipherDataBlob); + }).then(decodeData => { + if (decodeData.data.toString() === input.data.toString()) { + AlertDialog.show({message : "decrypt success"}); + return; + } + AlertDialog.show({message : "decrypt fail"}); + }); +} + +function decryptMessageCallback() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let cipher = cryptoFramework.createCipher("RSA1024|PKCS1"); + let decoder = cryptoFramework.createCipher("RSA1024|PKCS1"); + let plainText = "this is cipher text"; + let input = {data : stringToUint8Array(plainText) }; + let cipherData; + let keyPair; + rsaGenerator.generateKeyPair(function (err, newKeyPair) { + keyPair = newKeyPair; + cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, keyPair.pubKey, null, function (err, data) { + cipher.doFinal(input, function (err, data) { + AlertDialog.show({ message : "EncryptOutPut is " + data.data} ); + cipherData = data; + decoder.init(cryptoFramework.CryptoMode.DECRYPT_MODE, keyPair.priKey, null, function (err, data) { + decoder.doFinal(cipherData, function (err, data) { + if (input.data.toString() === data.data.toString()) { + AlertDialog.show({ message : "decrype success"} ); + return; + } + AlertDialog.show({ message : "decrype fail"} ); + }); + }); + }); + }); + }); +} +``` +以RSA非对称加解密(多次调用doFinal实现分段)为例: +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpArray = new Uint8Array(arr); + return tmpArray; +} + +// 字节流转成可理解的字符串 +function uint8ArrayToString(array) { + let arrayString = ''; + for (let i = 0; i < array.length; i++) { + arrayString += String.fromCharCode(array[i]); + } + return arrayString; +} + +function encryptLongMessagePromise() { + let globalPlainText = "This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!"; + let globalCipherOutput; + let globalDecodeOutput; + var globalKeyPair; + let plainTextSplitLen = 64; // RSA每次加解密允许的原文长度大小与密钥位数和填充模式等有关,详细规格内容见overview文档 + let cipherTextSplitLen = 128; // RSA密钥每次加密生成的密文数据长度计算方式:密钥位数/8 + let keyGenName = "RSA1024"; + let cipherAlgName = "RSA1024|PKCS1"; + let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator(keyGenName); // 创建非对称密钥生成器对象 + let cipher = cryptoFramework.createCipher(cipherAlgName); // 创建加密Cipher对象 + let decoder = cryptoFramework.createCipher(cipherAlgName); // 创建解密Decoder对象 + return new Promise((resolve, reject) => { + setTimeout(() => { + resolve("testRsaMultiDoFinal"); + }, 10); + }).then(() => { + return asyKeyGenerator.generateKeyPair(); // 生成rsa密钥 + }).then(keyPair => { + globalKeyPair = keyPair; // 保存到密钥对全局变量 + return cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, globalKeyPair.pubKey, null); + }).then(async () => { + globalCipherOutput = []; + // 将原文按64字符进行拆分,循环调用doFinal进行加密,使用1024bit密钥时,每次加密生成128B长度的密文 + for (let i = 0; i < (globalPlainText.length / plainTextSplitLen); i++) { + let tempStr = globalPlainText.substr(i * plainTextSplitLen, plainTextSplitLen); + let tempBlob = { data : stringToUint8Array(tempStr) }; + let tempCipherOutput = await cipher.doFinal(tempBlob); + globalCipherOutput = globalCipherOutput.concat(Array.from(tempCipherOutput.data)); + } + console.info(`globalCipherOutput len is ${globalCipherOutput.length}, data is: ${globalCipherOutput.toString()}`); + return; + }).then(() =>{ + return decoder.init(cryptoFramework.CryptoMode.DECRYPT_MODE, globalKeyPair.priKey, null); + }).then(async() => { + globalDecodeOutput = []; + // 将密文按128B进行拆分解密,得到原文后进行拼接 + for (let i = 0; i < (globalCipherOutput.length / cipherTextSplitLen); i++) { + let tempBlobData = globalCipherOutput.slice(i * cipherTextSplitLen, (i + 1) * cipherTextSplitLen); + let message = new Uint8Array(tempBlobData); + let tempBlob = { data : message }; + let tempDecodeOutput = await decoder.doFinal(tempBlob); + globalDecodeOutput += uint8ArrayToString(tempDecodeOutput.data); + } + if (globalDecodeOutput === globalPlainText) { + console.info(`encode and decode success`); + } else { + console.info(`encode and decode error`); + } + return; + }).catch(error => { + console.error(`catch error, ${error.code}, ${error.message}`); + }) +} +``` + +**说明** + +1. 使用RSA加解密时,Cipher对象不可重复调用init方法初始化,在创建了一个加密Cipher对象后,如果要进行解密,则需要重新创建另一个Cipher对象执行解密操作。 +2. RSA加密有长度限制,允许加密明文的最大长度见[加解密算法库框架概述](cryptoFramework-overview.md)中的基本概念章节。 +3. RSA解密每次允许解密的密文长度为,RSA密钥的位数/8。 + +## 使用签名验签操作 + +**场景说明** + +当需要判断接收的数据是否被篡改且是否为指定对象发送的数据时,可以使用签名验签操作。使用签名验签操作中,典型的场景有: +1. 使用RSA签名验签操作 +2. 使用ECC签名验签操作 + +**接口及参数说明** + +详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。
由于密码算法的复杂性,在选取不同规格和参数时,开发差异较大,无法通过代码示例一一列举,请仔细阅读API参考资料中的相关接口,确保使用正确。 + +|实例名|接口名|描述| +|---|---|---| +|cryptoFramework|createSign(algName : string) : Sign|根据String设置的参数创建Sign对象| +|Sign|init(priKey : PriKey, callback : AsyncCallback\) : void|使用callback方式设置密钥并初始化Sign对象| +|Sign|init(priKey : PriKey) : Promise\|使用Promise方式设置密钥并初始化Sign对象| +|Sign|update(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式添加签名数据| +|Sign|update(data : DataBlob) : Promise\|用Promise方式添加签名数据| +|Sign|sign(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式签名所有数据| +|Sign|sign(data : DataBlob) : Promise\|使用Promise方式签名所有数据| +|cryptoFramework|function createVerify(algName : string) : Verify|根据String设置的参数创建Verify对象| +|Verify|init(priKey : PriKey, callback : AsyncCallback\) : void|使用callback方式设置密钥并初始化Verify对象| +|Verify|init(priKey : PriKey) : Promise\|使用Promise方式设置密钥并初始化Verify对象| +|Verify|update(data : DataBlob, callback : AsyncCallback\) : void|使用callback方式添加验签数据| +|Verify|update(data : DataBlob) : Promise\|用Promise方式添加验签数据| +|Verify|verify(data : DataBlob, signatureData : DataBlob, callback : AsyncCallback\) : void|使用callback方式验签所有数据| +|Verify|verify(data : DataBlob, signatureData : DataBlob) : Promise\|使用Promise方式验签所有数据| + +**开发步骤** + +示例1:使用RSA签名验签操作 +1. 生成RSA密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成RSA非对称密钥。 +2. 生成Sign对象。通过createSign接口创建Sign对象,执行初始化操作并设置签名私钥。 +3. 执行签名操作。通过Sign类提供的update接口,添加签名数据,并调用sign接口生成数据的签名。 +4. 生成Verify对象。通过createVerify接口创建Verify对象,执行初始化操作并设置验签公钥。 +5. 执行验签操作。通过Verify类提供的update接口,添加签名数据,并调用verify接口传入签名进行验签。 +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpArray = new Uint8Array(arr); + return tmpArray; +} + +let globalKeyPair; +let SignMessageBlob; +let plan1 = "This is Sign test plan1"; +let plan2 = "This is Sign test plan1"; +let input1 = { data : stringToUint8Array(plan1) }; +let input2 = { data : stringToUint8Array(plan2) }; + +function signMessagePromise() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); + let keyGenPromise = rsaGenerator.generateKeyPair(); + keyGenPromise.then( keyPair => { + globalKeyPair = keyPair; + let priKey = globalKeyPair.priKey; + return signer.init(priKey); + }).then(() => { + return signer.update(input1); + }).then(() => { + return signer.sign(input2); + }).then(dataBlob => { + SignMessageBlob = dataBlob; + console.info("sign output is " + SignMessageBlob.data); + }); +} + +function verifyMessagePromise() { + let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); + let verifyInitPromise = verifyer.init(globalKeyPair.pubKey); + verifyInitPromise.then(() => { + return verifyer.update(input1); + }).then(() => { + return verifyer.verify(input2, SignMessageBlob); + }).then(res => { + console.log("Verify result is " + res); + }); +} + +function signMessageCallback() { + let rsaGenerator = cryptoFramework.createAsyKeyGenerator("RSA1024|PRIMES_2"); + let signer = cryptoFramework.createSign("RSA1024|PKCS1|SHA256"); + rsaGenerator.generateKeyPair(function (err, keyPair) { + globalKeyPair = keyPair; + let priKey = globalKeyPair.priKey; + signer.init(priKey, function (err, data) { + signer.update(input1, function (err, data) { + signer.sign(input2, function (err, data) { + SignMessageBlob = data; + console.info("sign output is " + SignMessageBlob.data); + }); + }); + }); + }); +} + +function verifyMessageCallback() { + let verifyer = cryptoFramework.createVerify("RSA1024|PKCS1|SHA256"); + verifyer.init(globalKeyPair.pubKey, function (err, data) { + verifyer.update(input1, function(err, data) { + verifyer.verify(input2, SignMessageBlob, function(err, data) { + console.info("verify result is " + data); + }); + }); + }) +} +``` + +示例2:使用ECDSA操作 +1. 生成ECC密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成ECC非对称密钥。 +2. 生成Sign对象。通过createSign接口创建Sign对象,执行初始化操作并设置签名私钥。 +3. 执行签名操作。通过Sign类提供的update接口,添加签名数据,并调用doFinal接口生成数据的签名。 +4. 生成Verify对象。通过createVerify接口创建Verify对象,执行初始化操作并设置验签公钥。 +5. 执行验签操作。通过Verify类提供的update接口,添加签名数据,并调用doFinal接口传入签名进行验签。 + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpArray = new Uint8Array(arr); + return tmpArray; +} + +let globalKeyPair; +let SignMessageBlob; +let plan1 = "This is Sign test plan1"; +let plan2 = "This is Sign test plan1"; +let input1 = { data : stringToUint8Array(plan1) }; +let input2 = { data : stringToUint8Array(plan2) }; + +function signMessagePromise() { + let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); + let signer = cryptoFramework.createSign("ECC256|SHA256"); + let keyGenPromise = eccGenerator.generateKeyPair(); + keyGenPromise.then( keyPair => { + globalKeyPair = keyPair; + let priKey = globalKeyPair.priKey; + return signer.init(priKey); + }).then(() => { + return signer.update(input1); + }).then(() => { + return signer.sign(input2); + }).then(dataBlob => { + SignMessageBlob = dataBlob; + console.info("sign output is " + SignMessageBlob.data); + }); +} + +function verifyMessagePromise() { + let verifyer = cryptoFramework.createVerify("ECC256|SHA256"); + let verifyInitPromise = verifyer.init(globalKeyPair.pubKey); + verifyInitPromise.then(() => { + return verifyer.update(input1); + }).then(() => { + return verifyer.verify(input2, SignMessageBlob); + }).then(res => { + console.log("Verify result is " + res); + }); +} + +function signMessageCallback() { + let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); + let signer = cryptoFramework.createSign("ECC256|SHA256"); + eccGenerator.generateKeyPair(function (err, keyPair) { + globalKeyPair = keyPair; + let priKey = globalKeyPair.priKey; + signer.init(priKey, function (err, data) { + signer.update(input1, function (err, data) { + signer.sign(input2, function (err, data) { + SignMessageBlob = data; + console.info("sign output is " + SignMessageBlob.data); + }); + }); + }); + }); +} + +function verifyMessageCallback() { + let verifyer = cryptoFramework.createVerify("ECC256|SHA256"); + verifyer.init(globalKeyPair.pubKey, function (err, data) { + verifyer.update(input1, function(err, data) { + verifyer.verify(input2, SignMessageBlob, function(err, data) { + console.info("verify result is " + data); + }); + }); + }) +} +``` +以执行签名、验签操作时多次调用update实现分段为例: + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpArray = new Uint8Array(arr); + return tmpArray; +} + +function signLongMessagePromise() { + let globalPlainText = "This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!" + + "This is a long plainTest! This is a long plainTest! This is a long plainTest! This is a long plainTest!"; + let globalSignData; + let textSplitLen = 64; // 自定义的数据拆分长度 + let keyGenName = "RSA1024"; + let cipherAlgName = "RSA1024|PKCS1|SHA256"; + let globalKeyPair; + let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator(keyGenName); // 创建非对称密钥生成器对象 + let signer = cryptoFramework.createSign(cipherAlgName); // 创建加密Cipher对象 + let verifier = cryptoFramework.createVerify(cipherAlgName); // 创建解密Decoder对象 + return new Promise((resolve, reject) => { + setTimeout(() => { + resolve("testRsaMultiUpdate"); + }, 10); + }).then(() => { + return asyKeyGenerator.generateKeyPair(); // 生成rsa密钥 + }).then(keyPair => { + globalKeyPair = keyPair; // 保存到密钥对全局变量 + return signer.init(globalKeyPair.priKey); + }).then(async () => { + // 当原文过大时,可将原文按理想长度进行拆分,循环调用update添加原文 + for (let i = 0; i < (globalPlainText.length / textSplitLen); i++) { + let tempStr = globalPlainText.substr(i * textSplitLen, textSplitLen); + let tempBlob = { data : stringToUint8Array(tempStr) }; + await signer.update(tempBlob); + } + return signer.sign(null); + }).then(data =>{ + globalSignData = data.data; + console.info(`globalSignOutput len is ${globalSignData.length}, data is: ${globalSignData.toString()}`); + return verifier.init(globalKeyPair.pubKey); + }).then(async() => { + // 将密文按128B进行拆分解密,得到原文后进行拼接 + for (let i = 0; i < (globalPlainText.length / textSplitLen); i++) { + let tempData = globalPlainText.slice(i * textSplitLen, (i + 1) * textSplitLen); + let tempBlob = { data : stringToUint8Array(tempData) }; + await verifier.update(tempBlob); + } + return verifier.verify(null, { data : globalSignData}); + }).then(res => { + console.info(`verify res is ${res}`); + }).catch(error => { + console.error(`catch error, ${error.code}, ${error.message}`); + }) +} +``` + +## 使用摘要操作 + +**场景说明** + +用户指定摘要算法(如SHA256)生成Md实例,并输入单段或多段需要摘要的信息,进行摘要计算更新,并返回消息摘要计算结果,在指定算法后可获取当前算法名与摘要计算长度(字节) + +使用摘要操作的主要场景为: + +用户指定摘要算法(如SHA256)生成Md实例,并输入单段或多段需要摘要的信息,进行摘要计算更新,并返回消息摘要计算结果,在指定算法后可获取当前算法名与摘要计算长度(字节) + +**接口及参数说明** + +详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 + +| 实例名 | 接口名 | 描述 | +| --------------- | ------------------------------------------------------------ | -------------------------------------------------- | +| cryptoFramework | function createMd(algName : string) : Md; | 指定摘要算法,生成摘要操作实例Md | +| Md | update(input : DataBlob, callback : AsyncCallback\) : void; | 接受用户输入数据,通过Callback的方式,异步更新摘要 | +| Md | update(input : DataBlob) : Promise\; | 接受用户输入数据,通过Promise的方式,异步更新摘要 | +| Md | digest(callback : AsyncCallback\) : void; | 通过Callback的方式,返回结果 | +| Md | digest() : Promise\; | 通过Promise的方式,返回结果 | +| Md | getMdLength() : number; | 获取摘要的长度(由指定的摘要算法决定) | +| Md | readonly algName : string; | 获取当前设置的摘要算法名 | + +**开发步骤** + +1. 设置算法,通过接口`createMd`生成摘要操作实例 +2. 接受用户数据,通过接口`update`,更新摘要,此步骤可重复 +3. 通过接口`digest`,返回摘要计算结果 +4. 获取当前摘要算法名与摘要计算长度 + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +// turn string into uint8Arr +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpUint8Array = new Uint8Array(arr); + return tmpUint8Array; +} + +// generate dataBlob with given length +function GenDataBlob(dataBlobLen) { + var dataBlob; + if (dataBlobLen == 12) { + dataBlob = {data: stringToUint8Array("my test data")}; + } else { + console.error("GenDataBlob: dataBlobLen is invalid"); + dataBlob = {data: stringToUint8Array("my test data")}; + } + return dataBlob; +} + +// md with promise async +function doMdByPromise(algName) { + var md; + try { + md = cryptoFramework.createMd(algName); + } catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); + } + console.error("[Promise]: Md algName is: " + md.algName); + // 初次update + var promiseMdUpdate = md.update(GenDataBlob(12)); + promiseMdUpdate.then(() => { + // 可根据情况进行多次update + promiseMdUpdate = md.update(GenDataBlob(12)); + return promiseMdUpdate; + }).then(mdOutput => { + var PromiseMdDigest = md.digest(); + return PromiseMdDigest; + }).then(mdOutput => { + console.error("[Promise]: MD result: " + mdOutput.data); + var mdLen = md.getMdLength(); + console.error("[Promise]: MD len: " + mdLen); + }).catch(error => { + console.error("[Promise]: error: " + error.message); + }); +} + +// md with callback async +function doMdByCallback(algName) { + var md; + try { + md = cryptoFramework.createMd(algName); + } catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); + } + console.error("[Callback]: Md algName is: " + md.algName); + // 初次update + md.update(GenDataBlob(12), (err,) => { + if (err) { + console.error("[Callback]: err: " + err.code); + } + // 可根据情况进行多次update + md.update(GenDataBlob(12), (err1,) => { + if (err1) { + console.error("[Callback]: err: " + err1.code); + } + md.digest((err2, mdOutput) => { + if (err2) { + console.error("[Callback]: err: " + err2.code); + } else { + console.error("[Callback]: MD result: " + mdOutput.data); + var mdLen = md.getMdLength(); + console.error("[Callback]: MD len: " + mdLen); + } + }); + }); + }); +} +``` +以MD更新时多次调用update实现分段为例: +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +async function updateData(index, obj, data) { + console.error("update " + (index + 1) + " MB data..."); + return obj.update(data); +} + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpUint8Array = new Uint8Array(arr); + return tmpUint8Array; +} + +function GenDataBlob(dataBlobLen) { + var dataBlob; + if (dataBlobLen == 12) { + dataBlob = {data: stringToUint8Array("my test data")}; + } else { + console.error("GenDataBlob: dataBlobLen is invalid"); + dataBlob = {data: stringToUint8Array("my test data")}; + } + return dataBlob; +} + +function LoopMdPromise(algName, loopSize) { + var md; + try { + md = cryptoFramework.createMd(algName); + } catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); + return; + } + console.error("[Promise]: Md algName is: " + md.algName); + var promiseMdUpdate = md.update(GenDataBlob(12)); + promiseMdUpdate.then(() => { + var PromiseMdDigest = md.digest(); + return PromiseMdDigest; + }).then(async () => { + for (var i = 0; i < loopSize; i++) { + await updateData(i, md, GenDataBlob(12)); + } + var PromiseMdDigest = md.digest(); + return PromiseMdDigest; + }).then(mdOutput => { + console.error("[Promise]: MD result: " + mdOutput.data); + var mdLen = md.getMdLength(); + console.error("[Promise]: MD len: " + mdLen); + }).catch(error => { + console.error("[Promise]: error: " + error.message); + }); +} +``` + +## 使用密钥协商操作 + +**场景说明** + +使用密钥协商操作中,典型的场景有: + +通信双方可以在一个公开的信道上通过相互传送一些消息,共同建立一个安全的共享秘密密钥。 + +**接口及参数说明** + +详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 + +|实例名|接口名|描述| +|---|---|---| +|cryptoFramework|createKeyAgreement(algName : string) : KeyAgreement|根据String设置的参数创建KeyAgreement对象| +|KeyAgreement|generateSecret(priKey : PriKey, pubKey : PubKey, callback : AsyncCallback\) : void|使用callback方式进行密钥协商| +|KeyAgreement|generateSecret(priKey : PriKey, pubKey : PubKey) : Promise\|使用Promise方式进行密钥协商| + +**开发步骤** + +1. 生成ECC密钥。通过createAsyKeyGenerator接口创建AsyKeyGenerator对象,并生成ECC非对称密钥。 +2. 基于ECC密钥的私钥及公钥执行ECDH操作。 + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +let globalKeyPair; + +function ecdhPromise() { + let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); + let eccKeyAgreement = cryptoFramework.createKeyAgreement("ECC256"); + let keyGenPromise = eccGenerator.generateKeyPair(); + keyGenPromise.then( keyPair => { + globalKeyPair = keyPair; + return eccKeyAgreement.generateSecret(keyPair.priKey, keyPair.pubKey); + }).then((secret) => { + console.info("ecdh output is " + secret.data); + }).catch((error) => { + console.error("ecdh error."); + }); +} + +function ecdhCallback() { + let eccGenerator = cryptoFramework.createAsyKeyGenerator("ECC256"); + let eccKeyAgreement = cryptoFramework.createKeyAgreement("ECC256"); + eccGenerator.generateKeyPair(function (err, keyPair) { + globalKeyPair = keyPair; + eccKeyAgreement.generateSecret(keyPair.priKey, keyPair.pubKey, function (err, secret) { + if (err) { + console.error("ecdh error."); + return; + } + console.info("ecdh output is " + secret.data); + }); + }); +} +``` + +## 使用消息认证码操作 + +**场景说明** + +消息认证码操作主要应用于身份认证的场景: + +Mac(message authentication code)可以对消息进行完整性校验,通过使用双方共享的密钥,识别出信息伪装篡改等行为 + +用户指定摘要算法(如SHA256)生成消息认证码Mac实例,输入对称密钥初始化Mac,并传入单段或多段需要摘要的信息,进行消息认证码计算,并获取消息认证码计算结果,在指定算法后可获取当前算法名与消息认证码计算长度(字节)。 + +**接口及参数说明** + +详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 + +| 实例名 | 接口名 | 描述 | +| --------------- | ------------------------------------------------------------ | --------------------------------------------------- | +| cryptoFramework | function createMac(algName : string) : Mac; | 指定摘要算法,生成消息认证码实例Mac | +| Mac | init(key : SymKey, callback : AsyncCallback\) : void; | 接收输入对称密钥,通过Callback的方式,异步初始化MAC | +| Mac | init(key : SymKey) : Promise\; | 接收输入对称密钥,通过Promise的方式,异步初始化MAC | +| Mac | update(input : DataBlob, callback : AsyncCallback\) : void; | 接受输入数据,通过Callback的方式,异步更新MAC | +| Mac | update(input : DataBlob) : Promise\; | 接受输入数据,通过Promise的方式,异步更新MAC | +| Mac | doFinal(callback : AsyncCallback\) : void; | 通过Callback的方式,返回MAC计算结果 | +| Mac | doFinal() : Promise\; | 通过Promise的方式,返回MAC计算结果 | +| Mac | getMacLength() : number; | 获取MAC的长度(由指定的摘要算法决定) | +| Mac | readonly algName : string; | 获取当前设置的摘要算法名 | + +**开发步骤** + +1. 设置算法,通过接口`createMac`生成消息认证码操作实例 +2. 接受输入对称密钥,通过接口`init`,初始化Mac +3. 接受数据,通过接口`update`,更新Mac,此步骤可重复 +4. 通过接口`doFinal`,返回Mac计算结果 +5. 获取当前摘要算法名与Mac计算长度 + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +// turn string into uint8Arr +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpUint8Array = new Uint8Array(arr); + return tmpUint8Array; +} + +// generate blob with this func +function GenDataBlob(dataBlobLen) { + var dataBlob; + if (dataBlobLen == 12) { + dataBlob = {data: stringToUint8Array("my test data")}; + } else { + console.error("GenDataBlob: dataBlobLen is invalid"); + dataBlob = {data: stringToUint8Array("my test data")}; + } + return dataBlob; +} + +function doHmacByPromise(algName) { + var mac; + try { + mac = cryptoFramework.createMac(algName); + } catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); + } + console.error("[Promise]: Mac algName is: " + mac.algName); + var KeyBlob = { + data : stringToUint8Array("12345678abcdefgh") + } + var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); + var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); + promiseConvertKey.then(symKey => { + var promiseMacInit = mac.init(symKey); + return promiseMacInit; + }).then(() => { + // 初次update + var promiseMacUpdate = mac.update(GenDataBlob(12)); + return promiseMacUpdate; + }).then(() => { + // 可根据情况进行多次update + var promiseMacUpdate = mac.update(GenDataBlob(12)); + return promiseMacUpdate; + }).then(() => { + var PromiseMacDoFinal = mac.doFinal(); + return PromiseMacDoFinal; + }).then(macOutput => { + console.error("[Promise]: HMAC result: " + macOutput.data); + var macLen = mac.getMacLength(); + console.error("[Promise]: MAC len: " + macLen); + }).catch(error => { + console.error("[Promise]: error: " + error.message); + }); +} + +// process by callback +function doHmacByCallback(algName) { + var mac; + try { + mac = cryptoFramework.createMac(algName); + } catch (error) { + AlertDialog.show({message: "[Callback]: error code: " + error.code + ", message is: " + error.message}); + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); + } + var KeyBlob = { + data : stringToUint8Array("12345678abcdefgh") + } + var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); + symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { + if (err) { + console.error("[Callback]: err: " + err.code); + } + mac.init(symKey, (err1, ) => { + if (err1) { + console.error("[Callback]: err: " + err1.code); + } + // 初次update + mac.update(GenDataBlob(12), (err2, ) => { + if (err2) { + console.error("[Callback]: err: " + err2.code); + } + // 可根据情况进行多次update + mac.update(GenDataBlob(12), (err3, ) => { + if (err3) { + console.error("[Callback]: err: " + err3.code); + } + mac.doFinal((err4, macOutput) => { + if (err4) { + console.error("[Callback]: err: " + err4.code); + } else { + console.error("[Callback]: HMAC result: " + macOutput.data); + var macLen = mac.getMacLength(); + console.error("[Callback]: MAC len: " + macLen); + } + }); + }); + }); + }); + }); +} +``` +以HMAC更新MAC时多次调用update实现分段为例: +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +async function updateData(index, obj, data) { + console.error("update " + (index + 1) + " MB data..."); + return obj.update(data); +} + +function stringToUint8Array(str) { + var arr = []; + for (var i = 0, j = str.length; i < j; ++i) { + arr.push(str.charCodeAt(i)); + } + var tmpUint8Array = new Uint8Array(arr); + return tmpUint8Array; +} + +function GenDataBlob(dataBlobLen) { + var dataBlob; + if (dataBlobLen == 12) { + dataBlob = {data: stringToUint8Array("my test data")}; + } else { + console.error("GenDataBlob: dataBlobLen is invalid"); + dataBlob = {data: stringToUint8Array("my test data")}; + } + return dataBlob; +} + +function LoopHmacPromise(algName, loopSize) { + var mac; + try { + mac = cryptoFramework.createMac(algName); + } catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); + return; + } + console.error("[Promise]: Mac algName is: " + mac.algName); + var KeyBlob = { + data : stringToUint8Array("12345678abcdefgh") + } + var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); + var promiseConvertKey = symKeyGenerator.convertKey(KeyBlob); + promiseConvertKey.then(symKey => { + var promiseMacInit = mac.init(symKey); + return promiseMacInit; + }).then(async () => { + for (var i = 0; i < loopSize; i++) { + await updateData(i, mac, GenDataBlob(12)); + } + var promiseMacUpdate = mac.update(GenDataBlob(12)); + return promiseMacUpdate; + }).then(() => { + var PromiseMacDoFinal = mac.doFinal(); + return PromiseMacDoFinal; + }).then(macOutput => { + console.error("[Promise]: HMAC result: " + macOutput.data); + var macLen = mac.getMacLength(); + console.error("[Promise]: MAC len: " + macLen); + }).catch(error => { + console.error("[Promise]: error: " + error.message); + }); +} +``` + + +## 使用随机数操作 + +**场景说明** + +使用随机数操作的主要场景为: + +- 用户生成随机数Random实例,输入随机数生成的长度(字节),生成指定长度的随机数。 +- 用户使用生成的随机数作为参数,进行种子设置。 + +**接口及参数说明** + +详细接口说明可参考[API参考](../reference/apis/js-apis-cryptoFramework.md)。 + +| 实例名 | 接口名 | 描述 | +| --------------- | ------------------------------------------------------------ | ---------------------------------------------- | +| cryptoFramework | function createRandom() : Random; | 生成随机数Random实例 | +| Random | generateRandom(len : number, callback: AsyncCallback\) : void; | 接受输入长度,通过Callback,异步生成随机数 | +| Random | generateRandom(len : number) : Promise\; | 接受输入长度,通过Promise,异步生成随机数 | +| Random | setSeed(seed : DataBlob) : void; | 接受输入Blob,设置种子 | + +**开发步骤** + +1. 通过接口`createRandom`生成随机数操作实例 +2. 接受输入长度,通过接口`generateRandom`,生成指定长度的随机数 +3. 接受DataBlob数据,通过接口`setSeed`,为随机数生成池设置种子 + +```javascript +import cryptoFramework from "@ohos.security.cryptoFramework" + +// process by promise +function doRandByPromise(len) { + var rand; + try { + rand = cryptoFramework.createRandom(); + } catch (error) { + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); + } + var promiseGenerateRand = rand.generateRandom(len); + promiseGenerateRand.then(randData => { + console.error("[Promise]: rand result: " + randData.data); + try { + rand.setSeed(randData); + } catch (error) { + console.log("setSeed failed, errCode: " + error.code + ", errMsg: " + error.message); + } + }).catch(error => { + console.error("[Promise]: error: " + error.message); + }); +} + +// process by callback +function doRandByCallback(len) { + var rand; + try { + rand = cryptoFramework.createRandom(); + } catch (error) { + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); + } + rand.generateRandom(len, (err, randData) => { + if (err) { + console.error("[Callback]: err: " + err.code); + } else { + console.error("[Callback]: generate random result: " + randData.data); + try { + rand.setSeed(randData); + } catch (error) { + console.log("setSeed failed, errCode: " + error.code + ", errMsg: " + error.message); + } + } + }); +} +``` diff --git a/zh-cn/application-dev/security/cryptoFramework-overview.md b/zh-cn/application-dev/security/cryptoFramework-overview.md index 0678a4d0f6cda6e596880e21af4a2da982f0ff62..65c6ef5d43d7773be21c1f73cf17c0a46200b8c9 100644 --- a/zh-cn/application-dev/security/cryptoFramework-overview.md +++ b/zh-cn/application-dev/security/cryptoFramework-overview.md @@ -1,235 +1,385 @@ -# 加解密算法库框架概述 -加解密算法库框架是一个屏蔽了第三方密码学算法库实现差异的算法框架,提供加解密、签名验签、消息验证码、哈希、安全随机数等相关功能。开发者可以通过调用加解密算法库框架,忽略底层不同三方算法库的差异,实现迅捷开发。 -## 框架实现原理 -加解密算法库框架提供的组件分为三层:接口层,Framework层和插件层。接口层负责对外提供统一的JS接口,插件层实现针对具体三方算法库的功能,Framework层通过灵活加载插件层的插件适配并屏蔽三方算法库差异。 -## 基本概念 -**对称密钥** - -对称密钥使用同一个密钥对数据进行加密解密操作。即对称加密算法中,数据发送方使用加密密钥对明文进行特殊加密算法处理后,使其变成复杂的加密密文发送出去。接收方收到密文后,若想解读原文,则需要使用同一个加密密钥以及相同算法的逆算法对密文进行解密,才能使其恢复成可读明文。 - -- **AES加密** - - AES的全称是Advanced Encryption Standard,是最常见的对称加密。AES为分组密码,分组密码也就是把明文分成一组一组的,每组长度相等,每次加密一组数据,直到加密完整个明文。在AES标准规范中,分组长度只能是128位,也就是说,每个分组为16个字节(每个字节8位)。密钥的长度可以使用128位、192位或256位。 -- **3DES加密** - - 3DES,也称为 3DESede 或 TripleDES,是三重数据加密算法,相当于是对每个数据块应用三次DES的对称加密算法,它使用3个64位的密钥对数据块进行三次加密。相比DES,3DES因密钥长度变长,安全性有所提高,但其处理速度不高。因此又出现了AES加密算法,AES较于3DES速度更快、安全性更高。 - -**非对称密钥** - -非对称密钥使用公钥和私钥两个密钥来进行算法操作,公钥对外公开,私钥对外保密。对于加解密操作,一般使用公钥对明文进行加密形成密文,持有私钥的人即可对密文解密形成明文。对于签名验签操作,使用私钥对明文进行签名,公钥持有者可以通过公钥对签名数据做验签,验证数据是否被篡改。 - -- **RSA密钥** - - RSA密钥以极大整数做因数分解的数学难题作为密钥安全性的基石。生成密钥时,首先需要随机出两个大素数p和q,计算n = p * q并将n做为模,再选择一个大于1且小于(p - 1) * (q - 1)的整数e,确保e与(p - 1)*(q - 1)互素,最后计算d,使得e * d - 1为(p - 1)和(q - 1)的倍数,则可得到公钥(n, e)和私钥(n, d)。 - - 算法库框架除提供了默认的双素数RSA密钥生成外,还提供了多素数密钥生成方式,可以在密钥生成时通过指定primes参数(PRIMES_2, PRIMES_3, PRIMES_4, PRIMES_5)指定素数个数。多素数密钥的优点是可以减少解密、签名的计算量(中国剩余定理),但相对的劣势是密钥强度会越低,算法库依据OpenSSL的素数使用规则制定了相应规格,具体将在**约束与限制**章节中说明。 -- **ECC密钥** - - ECC是一种基于椭圆曲线数学的公开密钥加密算法,其数学基础是利用椭圆曲线上的有理点构成Abel加法群上椭圆离散对数的计算困难性,算法库框架提供了多种椭圆曲线的ECC密钥生成能力。 - -**加解密** - -- **对称AES加解密** - - 算法库目前提供了AES加解密常用的7种加密模式:ECB、CBC、OFB、CFB、CTR、GCM和CCM。AES为分组加密算法,分组长度大小为128位。实际应用中明文最后一组可能不足128位,不足数据可以使用各种padding模式做数据填充。下文中描述了各个padding的区别: - - NoPadding:不带填充; - - PKCS5:填充字符由一个字节序列组成,每个字节填充该填充字节序列的长度,规定是8字节填充; - - PKCS7:填充字符和PKCS5填充方法一致,但是可以在1-255字节之间任意填充; - - > **说明:** ECB、CBC加密模式,明文长度不是128位整数倍,必须使用填充方法补足。
由于需要填充至分组大小,所以实际算法库中的PKCS5和PKCS7都是以分组大小作为填充长度的,即AES加密填充至16字节。 -- **对称3DES加解密** - - 该算法的加解密过程分别是对明文/密文数据进行三次DES加密或解密,得到相应的密文或明文。 - - 算法库目前提供了3DES加解密常用的4种加密模式:ECB、CBC、OFB和CFB。DES为分组加密算法,分组长度大小为64位。实际应用中明文最后一组可能不足64位,不足数据可以使用各种padding模式做数据填充。下文中描述了各个padding的区别: - - NoPadding:不带填充; - - PKCS5:填充字符由一个字节序列组成,每个字节填充该填充字节序列的长度,规定是8字节填充; - - PKCS7:填充字符和PKCS5填充方法一致,但是可以在1-255字节之间任意填充; - - > **说明:** ECB、CBC加密模式,明文长度不是64位整数倍,必须使用填充方法补足。
由于需要填充至分组大小,所以实际算法库中的PKCS5和PKCS7都是以分组大小作为填充长度的,即3DES加密填充至8字节。 - -- **非对称RSA加解密** - - 当持有RSA公钥(n, e)和私钥(n, d)后,RSA加密过程为:密文 = 明文 ^ e mod n, 解密过程为:明文 = 密文 ^ d mod n。算法库目前提供了RSA加解密常用的三种模式:PKCS1、PKCS1_OAEP和NoPadding。RSA为块加密算法,加密长度需要在固定长度进行,实际应用中会使用各种padding模式做数据填充。下文中描述了各个padding的区别: - - NoPadding:不带填充,输入的数据必须与RSA钥模一样长,输出数据长度与RSA钥模一样长; - - PKCS1:pkcs1padding V1.5是RSA加解密默认的填充方式,输入的数据必须<=RSA钥模-11,输出数据长度与RSA钥模一样长; - - PKCS1_OAEP:RSA_PKCS1_OAEP_PADDING填充模式是PKCS#1推出的新填充方式,此模式需要设置两个摘要(md和mgf1_md),输入的数据必须小于RSA钥模 - md摘要长度 - mgf1_md摘要长度 - 2,输出数据长度与RSA钥模一样长;
- - **补充说明:** RSA钥模 = (RSA的bits + 7) / 8 - -**签名验签** - -- **RSA签名验签** - - 当持有RSA公钥(n, e)和私钥(n, d)后,RSA签名生成过程为:签名 = 消息 ^ d mod n, 验签过程为:消息 = 签名 ^ d mod n。消息发送方发送数据时,同时发送消息和私钥签名后的签名信息,消息接收方接受到数据后,将签名信息用公钥解密并验证消息是否一致。因发送的消息长度大多大于RSA钥模,因此算法库框架提供了两种padding模式,通过摘要提取消息的散列值再做签名。算法库框架中提供了签名验签相关的两种模式:PKCS1和PSS。下问对两种模式做详细描述: - - PKCS1: pkcs1padding V1.5是RSA加解密默认的填充方式,使用该模式时需要设置摘要(md); - - PSS: PSS模式是RSA 算法的基础上叠加上一种填充算法,使用该签名算法时需要使用摘要(md)和掩码函数(mgf1_md); -- **ECDSA** - - 椭圆曲线数字签名算法(ECDSA)是基于椭圆曲线密码(ECC)模拟数字签名算法(DSA)。相比普通的离散对数问题(DLP)和大数分解问题(IFP),椭圆曲线密码的单位比特强度要高于其他公钥体制。算法库框架提供了多种椭圆曲线及摘要算法组合的椭圆曲线数字签名算法(ECDSA)能力。 - -**密钥协商** - -- **ECDH** - - ECDH的全称是椭圆曲线迪菲-赫尔曼秘钥交换,是用来在一个非安全通道中建立起安全的共有加密资料,交换双方可以在不共享任何秘密的情况下协商出一个密钥。算法库框架基于开源算法库提供了多种椭圆曲线的ECDH能力。 - -**摘要** - -消息摘要MD算法是一种能将任意长度的输入消息,通过哈希算法生成长度固定的摘要的算法。消息摘要算法通过其不可逆的特性能被用于敏感信息的加密。消息摘要算法也被称为哈希算法或单向散列算法。 -在摘要算法相同时,生成的摘要值主要有下列特点: - -- 当输入消息相同时,生成摘要序列相同; -- 当输入消息的长度不一致时,生成摘要序列长度固定(摘要长度由算法决定); -- 当输入消息不一致时,生成摘要序列几乎不会相同(依然存在相同概率,由摘要长度决定相同概率); - -消息摘要算法主要分为三类:MD,SHA与MAC(详见HMAC章节) -MD算法包括MD2,MD4和MD5。 -SHA算法主要包括SHA1,SHA224,SHA256,SHA384,SHA512。 - -**消息验证码** - -HMAC(Hash-based Message Authentication Code)是一种基于密钥的消息认证码算法。HMAC通过指定摘要算法,以通信双方共享密钥与消息作为输入,生成消息认证码用于检验传递报文的完整性,HMAC生成的消息认证码为固定长度。HMAC在消息摘要算法的基础上增加了密钥的输入,确保了信息的正确性。 - -**随机数** - -随机数在加解密过程中主要用于临时会话密钥的生成与非对称加密算法中密钥的生成。随机数由硬件生成的硬件随机数生成器或由软件生成的伪随机数生成器进行生成。在加解密的场景中,安全随机数生成器需要具备随机性,不可预测性,与不可重现性。密码学安全伪随机数生成器CSPRNG(Cryptography Secure Random Number Generators)生成的随机数满足密码学安全伪随机性 - -- **内部状态**代表随机数生成器内存中的数值,当内部状态相同时,随机数生成器会生成固定的随机数序列 -- **种子**(seed)是一个用来对伪随机数的内部状态进行初始化的数据,随机数生成器通过种子来生成一系列的随机序列。 - - -## 约束与限制 - -- 算法库框架不支持多线程并发操作。 - -### 密钥生成规格 - -**对称密钥生成规格** - -支持的对称密钥生成参数: - -|对称密钥算法|密钥长度(bit)|字符串参数| -|---|---|---| -|3DES|192|3DES192| -|AES|128|AES128| -|AES|192|AES192| -|AES|256|AES256| - - > **说明**:“字符串参数”是“对称密钥算法”和“密钥长度”拼接而成,用于在创建对称密钥生成器时,指定密钥规格。 - -**非对称密钥生成规格** -- **RSA密钥生成** - - 支持的非对称密钥生成参数: - - |非对称密钥算法|密钥长度(bit)|素数个数|字符串参数| - |---|---|---|---| - |RSA|512|2|RSA512\|PRIMES_2| - |RSA|768|2|RSA768\|PRIMES_2| - |RSA|1024|2|RSA1024\|PRIMES_2| - |RSA|1024|3|RSA1024\|PRIMES_3| - |RSA|2048|2|RSA2048\|PRIMES_2| - |RSA|2048|3|RSA2048\|PRIMES_3| - |RSA|3072|2|RSA3072\|PRIMES_2| - |RSA|3072|3|RSA3072\|PRIMES_3| - |RSA|4096|2|RSA4096\|PRIMES_2| - |RSA|4096|3|RSA4096\|PRIMES_3| - |RSA|4096|4|RSA4096\|PRIMES_4| - |RSA|8192|2|RSA8192\|PRIMES_2| - |RSA|8192|3|RSA8192\|PRIMES_3| - |RSA|8192|4|RSA8192\|PRIMES_4| - |RSA|8192|5|RSA8192\|PRIMES_5| - - > **说明**:生成RSA非对称密钥时,默认素数为2,PRIMES_2参数可省略。 - -- **ECC密钥生成** - - 支持的非对称密钥生成参数: - - |非对称密钥算法|密钥长度| - |---|---| - |ECC|ECC224| - |ECC|ECC256| - |ECC|ECC384| - |ECC|ECC521| - -### 加解密规格 - -**对称加解密** - -支持的对称加密算法: - -|对称加解密算法|分组模式| 字符串参数 | -|---|---|---| -|3DES|ECB|3DES192\|ECB\|[NoPadding\|PKCS5\|PKCS7]| -|3DES|CBC|3DES192\|CBC\|[NoPadding\|PKCS5\|PKCS7]| -|3DES|OFB|3DES192\|OFB\|[NoPadding\|PKCS5\|PKCS7]| -|3DES|CFB|3DES192\|CFB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|ECB|AES[128\|192\|256]\|ECB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CBC|AES[128\|192\|256]\|CBC\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CTR|AES[128\|192\|256]\|CTR\|[NoPadding\|PKCS5\|PKCS7]| -|AES|OFB|AES[128\|192\|256]\|OFB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CFB|AES[128\|192\|256]\|CFB\|[NoPadding\|PKCS5\|PKCS7]| -|AES|GCM|AES[128\|192\|256]\|GCM\|[NoPadding\|PKCS5\|PKCS7]| -|AES|CCM|AES[128\|192\|256]\|CCM\|[NoPadding\|PKCS5\|PKCS7]| - -> **说明:** -> 1. []中只能任选一项。 -> 2. “字符串参数”是“对称加解密算法(含密钥长度)”、“分组模式”、“填充模式”拼接而成,用于在创建对称加解密实例时,指定对称加解密算法规格。 - -**非对称RSA加解密** - -RSA加解密时,涉及三种填充模式:NoPadding, PKCS1和PKCS1_OAEP。 -- 使用NoPadding模式时可以指定的参数: [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|NoPadding -- 使用PKCS1模式时可以指定的参数: [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PKCS1 -- 使用PKCS1_OAEP模式时可以指定的参数:[RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PKCS1_OAEP|[MD5|SHA1|SHA224|SHA256|SHA384|SHA512]|[MGF1_MD5|MGF1_SHA1|MGF1_SHA224|MGF1_SHA256|MGF1_SHA384|MGF1_SHA512] - -> **说明:** []内的参数只能任选一项,非[]内的为固定值 - -### 签名验签规格 - -**RSA签名验签** - -RSA签名验签时,涉及两种填充模式:PKCS1和PSS。 -- 使用PKCS1模式时可以指定的参数: [RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PKCS1|[MD5|SHA1|SHA224|SHA256|SHA384|SHA512] -- 使用PSS模式时可以指定的参数:[RSA512|RSA768|RSA1024|RSA2048|RSA3072|RSA4096|RSA8192]|PSS|[MD5|SHA1|SHA224|SHA256|SHA384|SHA512]|[MGF1_MD5|MGF1_SHA1|MGF1_SHA224|MGF1_SHA256|MGF1_SHA384|MGF1_SHA512] -> **说明:** []内的参数只能任选一项,非[]内的为固定值 - -**ECDSA签名验签** - -支持的ECDSA参数: - - |非对称密钥算法|支持种类| - |---|---| - |ECC|ECC224| - |ECC|ECC256| - |ECC|ECC384| - |ECC|ECC521| - - |摘要算法|支持种类| - |---|---| - |HASH|SHA1| - |HASH|SHA224| - |HASH|SHA256| - |HASH|SHA384| - |HASH|SHA512| - -### 密钥协商规格 - -**ECDH** - - 支持的ECDH参数: - - |非对称密钥算法|支持种类| - |---|---| - |ECC|ECC224| - |ECC|ECC256| - |ECC|ECC384| - |ECC|ECC521| - -### MD算法规格 -加解密算法库框架当前支持MD5算法 - -### SHA算法规格 -加解密算法库框架当前支持:SHA1,SHA224,SHA256,SHA384,SHA512 +# 加解密算法库框架概述 +加解密算法库框架是一个屏蔽了第三方密码学算法库实现差异的算法框架,提供加解密、签名验签、消息验证码、哈希、安全随机数等相关功能。开发者可以通过调用加解密算法库框架,忽略底层不同三方算法库的差异,实现迅捷开发。 + +> **说明:** 加解密算法库框架仅提供密钥的密码学操作,而不提供密钥管理功能。因此,使用算法库时,需要应用自己来保管密钥(适用于临时会话密钥等仅在内存中使用的场景,或者应用自己实现密钥安全存储的场景)。如果业务需要由系统提供密钥管理功能(密钥存储等),请使用[HUKS部件](huks-overview.md)。 + +## 框架实现原理 +加解密算法库框架提供的组件分为三层:接口层,Framework层和插件层。接口层负责对外提供统一的JS接口,插件层实现针对具体三方算法库的功能,Framework层通过灵活加载插件层的插件适配并屏蔽三方算法库差异。 + +## 基本概念 +**对称密钥** + +对称密钥使用同一个密钥对数据进行加密解密操作。即对称加密算法中,数据发送方使用加密密钥对明文进行特殊加密算法处理后,使其变成复杂的加密密文发送出去。接收方收到密文后,若想解读原文,则需要使用同一个加密密钥以及相同算法的逆算法对密文进行解密,才能使其恢复成可读明文。 + +- **AES加密** + + AES的全称是Advanced Encryption Standard,是最常见的对称加密。AES为分组密码,分组密码也就是把明文分成一组一组的,每组长度相等,每次加密一组数据,直到加密完整个明文。在AES标准规范中,分组长度只能是128位,也就是说,每个分组为16个字节(每个字节8位)。密钥的长度可以使用128位、192位或256位。 +- **3DES加密** + + 3DES,也称为 3DESede 或 TripleDES,是三重数据加密算法,相当于是对每个数据块应用三次DES的对称加密算法,它使用3个64位的密钥对数据块进行三次加密。相比DES,3DES因密钥长度变长,安全性有所提高,但其处理速度不高。因此又出现了AES加密算法,AES较于3DES速度更快、安全性更高。 + +**非对称密钥** + +非对称密钥使用公钥和私钥两个密钥来进行算法操作,公钥对外公开,私钥对外保密。对于加解密操作,一般使用公钥对明文进行加密形成密文,持有私钥的人即可对密文解密形成明文。对于签名验签操作,使用私钥对明文进行签名,公钥持有者可以通过公钥对签名数据做验签,验证数据是否被篡改。 + +- **RSA密钥** + + RSA密钥以极大整数做因数分解的数学难题作为密钥安全性的基石。生成密钥时,首先需要随机出两个大素数p和q,计算n = p * q并将n做为模,再选择一个大于1且小于(p - 1) * (q - 1)的整数e,确保e与(p - 1)*(q - 1)互素,最后计算d,使得e * d - 1为(p - 1)和(q - 1)的倍数,则可得到公钥(n, e)和私钥(n, d)。 + + 算法库框架除提供了默认的双素数RSA密钥生成外,还提供了多素数密钥生成方式,可以在密钥生成时通过指定primes参数(PRIMES_2, PRIMES_3, PRIMES_4, PRIMES_5)指定素数个数。多素数密钥的优点是可以减少解密、签名的计算量(中国剩余定理),但相对的劣势是密钥强度会越低,算法库依据OpenSSL的素数使用规则制定了相应规格,具体将在**约束与限制**章节中说明。 +- **ECC密钥** + + ECC是一种基于椭圆曲线数学的公开密钥加密算法,其数学基础是利用椭圆曲线上的有理点构成Abel加法群上椭圆离散对数的计算困难性,算法库框架提供了多种椭圆曲线的ECC密钥生成能力。 + +**加解密** + +- **对称AES加解密** + + 算法库目前提供了AES加解密常用的7种加密模式:ECB、CBC、OFB、CFB、CTR、GCM和CCM。AES为分组加密算法,分组长度大小为128位。实际应用中明文最后一组可能不足128位,不足数据可以使用各种padding模式做数据填充。下文中描述了各个padding的区别: + - NoPadding:不带填充; + - PKCS5:填充字符由一个字节序列组成,每个字节填充该填充字节序列的长度,规定是8字节填充; + - PKCS7:填充字符和PKCS5填充方法一致,但是可以在1-255字节之间任意填充; + + > **说明:** ECB、CBC加密模式,明文长度不是128位整数倍,必须使用填充方法补足。
由于需要填充至分组大小,所以实际算法库中的PKCS5和PKCS7都是以分组大小作为填充长度的,即AES加密填充至16字节。 +- **对称3DES加解密** + + 该算法的加解密过程分别是对明文/密文数据进行三次DES加密或解密,得到相应的密文或明文。 + + 算法库目前提供了3DES加解密常用的4种加密模式:ECB、CBC、OFB和CFB。DES为分组加密算法,分组长度大小为64位。实际应用中明文最后一组可能不足64位,不足数据可以使用各种padding模式做数据填充。下文中描述了各个padding的区别: + - NoPadding:不带填充; + - PKCS5:填充字符由一个字节序列组成,每个字节填充该填充字节序列的长度,规定是8字节填充; + - PKCS7:填充字符和PKCS5填充方法一致,但是可以在1-255字节之间任意填充; + + > **说明:** ECB、CBC加密模式,明文长度不是64位整数倍,必须使用填充方法补足。
由于需要填充至分组大小,所以实际算法库中的PKCS5和PKCS7都是以分组大小作为填充长度的,即3DES加密填充至8字节。 + +- **非对称RSA加解密** + + 当持有RSA公钥(n, e)和私钥(n, d)后,RSA加密过程为:密文 = 明文 ^ e mod n, 解密过程为:明文 = 密文 ^ d mod n。算法库目前提供了RSA加解密常用的三种模式:PKCS1、PKCS1_OAEP和NoPadding。RSA为块加密算法,加密长度需要在固定长度进行,实际应用中会使用各种padding模式做数据填充。下文中描述了各个padding的区别: + - NoPadding:不带填充,输入的数据必须与RSA钥模一样长,输出数据长度与RSA钥模一样长; + - PKCS1:pkcs1padding V1.5是RSA加解密默认的填充方式,输入的数据必须<=RSA钥模-11,输出数据长度与RSA钥模一样长; + - PKCS1_OAEP:RSA_PKCS1_OAEP_PADDING填充模式是PKCS#1推出的新填充方式,此模式需要设置两个摘要(md和mgf1_md),输入的数据必须小于RSA钥模 - md摘要长度 - mgf1_md摘要长度 - 2,输出数据长度与RSA钥模一样长;
+ + **补充说明:** RSA钥模 = (RSA的bits + 7) / 8 + +**签名验签** + +- **RSA签名验签** + + 当持有RSA公钥(n, e)和私钥(n, d)后,RSA签名生成过程为:签名 = 消息 ^ d mod n, 验签过程为:消息 = 签名 ^ d mod n。消息发送方发送数据时,同时发送消息和私钥签名后的签名信息,消息接收方接受到数据后,将签名信息用公钥解密并验证消息是否一致。因发送的消息长度大多大于RSA钥模,因此算法库框架提供了两种padding模式,通过摘要提取消息的散列值再做签名。算法库框架中提供了签名验签相关的两种模式:PKCS1和PSS。下问对两种模式做详细描述: + - PKCS1: pkcs1padding V1.5是RSA加解密默认的填充方式,使用该模式时需要设置摘要(md); + - PSS: PSS模式是RSA 算法的基础上叠加上一种填充算法,使用该签名算法时需要使用摘要(md)和掩码函数(mgf1_md); +- **ECDSA** + + 椭圆曲线数字签名算法(ECDSA)是基于椭圆曲线密码(ECC)模拟数字签名算法(DSA)。相比普通的离散对数问题(DLP)和大数分解问题(IFP),椭圆曲线密码的单位比特强度要高于其他公钥体制。算法库框架提供了多种椭圆曲线及摘要算法组合的椭圆曲线数字签名算法(ECDSA)能力。 + +**密钥协商** + +- **ECDH** + + ECDH的全称是椭圆曲线迪菲-赫尔曼秘钥交换,是用来在一个非安全通道中建立起安全的共有加密资料,交换双方可以在不共享任何秘密的情况下协商出一个密钥。算法库框架基于开源算法库提供了多种椭圆曲线的ECDH能力。 + +**摘要** + +消息摘要MD算法是一种能将任意长度的输入消息,通过哈希算法生成长度固定的摘要的算法。消息摘要算法通过其不可逆的特性能被用于敏感信息的加密。消息摘要算法也被称为哈希算法或单向散列算法。 +在摘要算法相同时,生成的摘要值主要有下列特点: + +- 当输入消息相同时,生成摘要序列相同; +- 当输入消息的长度不一致时,生成摘要序列长度固定(摘要长度由算法决定); +- 当输入消息不一致时,生成摘要序列几乎不会相同(依然存在相同概率,由摘要长度决定相同概率); + +消息摘要算法主要分为三类:MD,SHA与MAC(详见HMAC章节) +MD算法包括MD2,MD4和MD5。 +SHA算法主要包括SHA1,SHA224,SHA256,SHA384,SHA512。 + +**消息验证码** + +HMAC(Hash-based Message Authentication Code)是一种基于密钥的消息认证码算法。HMAC通过指定摘要算法,以通信双方共享密钥与消息作为输入,生成消息认证码用于检验传递报文的完整性,HMAC生成的消息认证码为固定长度。HMAC在消息摘要算法的基础上增加了密钥的输入,确保了信息的正确性。 + +**随机数** + +随机数在加解密过程中主要用于临时会话密钥的生成与非对称加密算法中密钥的生成。随机数由硬件生成的硬件随机数生成器或由软件生成的伪随机数生成器进行生成。在加解密的场景中,安全随机数生成器需要具备随机性,不可预测性,与不可重现性。密码学安全伪随机数生成器CSPRNG(Cryptography Secure Random Number Generators)生成的随机数满足密码学安全伪随机性 + +- **内部状态**代表随机数生成器内存中的数值,当内部状态相同时,随机数生成器会生成固定的随机数序列 +- **种子**(seed)是一个用来对伪随机数的内部状态进行初始化的数据,随机数生成器通过种子来生成一系列的随机序列。 + + +## 约束与限制 + +- 算法库框架不支持多线程并发操作。 +- 算法库当前只支持OpenSSL。 + +### 密钥生成规格 + +**对称密钥生成规格** + +- 支持的对称密钥生成参数: + + |对称密钥算法|密钥长度(bit)|字符串参数| + |---|---|---| + |3DES|192|3DES192| + |AES|128|AES128| + |AES|192|AES192| + |AES|256|AES256| + + > **说明**:“字符串参数”是“对称密钥算法”和“密钥长度”拼接而成,用于在创建对称密钥生成器时,指定密钥规格。 + +**非对称密钥生成规格** +- **RSA密钥生成** + + 支持的非对称密钥生成参数: + + |非对称密钥类型|素数个数|字符串参数| + |---|---|---| + |RSA512|2|RSA512\|PRIMES_2| + |RSA768|2|RSA768\|PRIMES_2| + |RSA1024|2|RSA1024\|PRIMES_2| + |RSA1024|3|RSA1024\|PRIMES_3| + |RSA2048|2|RSA2048\|PRIMES_2| + |RSA2048|3|RSA2048\|PRIMES_3| + |RSA3072|2|RSA3072\|PRIMES_2| + |RSA3072|3|RSA3072\|PRIMES_3| + |RSA4096|2|RSA4096\|PRIMES_2| + |RSA4096|3|RSA4096\|PRIMES_3| + |RSA4096|4|RSA4096\|PRIMES_4| + |RSA8192|2|RSA8192\|PRIMES_2| + |RSA8192|3|RSA8192\|PRIMES_3| + |RSA8192|4|RSA8192\|PRIMES_4| + |RSA8192|5|RSA8192\|PRIMES_5| + + > **说明**:生成RSA非对称密钥时,默认素数为2,PRIMES_2参数可省略。 + +- **ECC密钥生成** + + 支持的非对称密钥生成参数: + + |非对称密钥算法|密钥长度| + |---|---| + |ECC|ECC224| + |ECC|ECC256| + |ECC|ECC384| + |ECC|ECC521| + +### 加解密规格 + +**对称加解密** + +- 支持的对称加密算法: + + |对称加解密算法|分组模式| 字符串参数 | + |---|---|---| + |3DES|ECB|3DES192\|ECB\|[NoPadding\|PKCS5\|PKCS7]| + |3DES|CBC|3DES192\|CBC\|[NoPadding\|PKCS5\|PKCS7]| + |3DES|OFB|3DES192\|OFB\|[NoPadding\|PKCS5\|PKCS7]| + |3DES|CFB|3DES192\|CFB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|ECB|AES[128\|192\|256]\|ECB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CBC|AES[128\|192\|256]\|CBC\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CTR|AES[128\|192\|256]\|CTR\|[NoPadding\|PKCS5\|PKCS7]| + |AES|OFB|AES[128\|192\|256]\|OFB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CFB|AES[128\|192\|256]\|CFB\|[NoPadding\|PKCS5\|PKCS7]| + |AES|GCM|AES[128\|192\|256]\|GCM\|[NoPadding\|PKCS5\|PKCS7]| + |AES|CCM|AES[128\|192\|256]\|CCM\|[NoPadding\|PKCS5\|PKCS7]| + +> **说明:** +> +> 1. []中只能任选一项。 +> 2. “字符串参数”是“对称加解密算法(含密钥长度)”、“分组模式”、“填充模式”拼接而成,用于在创建对称加解密实例时,指定对称加解密算法规格。 + +**非对称RSA加解密** + +RSA加解密时,涉及三种填充模式:NoPadding, PKCS1和PKCS1_OAEP。 +- 使用NoPadding模式时可以指定的参数: + + |非对称密钥类型| 填充模式 | 字符串参数 | + |---|---|---| + |RSA512|NoPadding|RSA512\|NoPadding| + |RSA768|NoPadding|RSA768\|NoPadding| + |RSA1024|NoPadding|RSA1024\|NoPadding| + |RSA2048|NoPadding|RSA2048\|NoPadding| + |RSA3072|NoPadding|RSA3072\|NoPadding| + |RSA4096|NoPadding|RSA4096\|NoPadding| + |RSA8192|NoPadding|RSA8192\|NoPadding| + +- 使用PKCS1模式时可以指定的参数: + + |非对称密钥类型| 填充模式 | 字符串参数 | + |---|---|---| + |RSA512|PKCS1|RSA512\|PKCS1| + |RSA768|PKCS1|RSA768\|PKCS1| + |RSA1024|PKCS1|RSA1024\|PKCS1| + |RSA2048|PKCS1|RSA2048\|PKCS1| + |RSA3072|PKCS1|RSA3072\|PKCS1| + |RSA4096|PKCS1|RSA4096\|PKCS1| + |RSA8192|PKCS1|RSA8192\|PKCS1| + +- 使用PKCS1_OAEP模式时可以指定的参数: + > **说明:** + > + > 1.[]内的参数只能任选一项,非[]内的为固定值; + > 2.使用时请从表格中选择非对称密钥类型、填充模式、摘要、掩码摘要四个数据,用|拼接成字符串。 + > 例如:"RSA2048|PKCS1_OAEP|SHA256|MGF1_SHA256" + + | 非对称密钥类型 | 填充模式 | 摘要 | 掩码摘要 | + |---|---|---|---| + |RSA512|PKCS1_OAEP|MD5| [MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PKCS1_OAEP|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PKCS1_OAEP|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PKCS1_OAEP|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224] + |RSA768|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PKCS1_OAEP|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PKCS1_OAEP|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PKCS1_OAEP|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| + |RSA768|PKCS1_OAEP|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA768|PKCS1_OAEP|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]| + |RSA1024|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PKCS1_OAEP|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PKCS1_OAEP|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PKCS1_OAEP|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PKCS1_OAEP|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PKCS1_OAEP|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| + |RSA2048|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PKCS1_OAEP|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PKCS1_OAEP|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PKCS1_OAEP|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PKCS1_OAEP|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PKCS1_OAEP|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PKCS1_OAEP|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PKCS1_OAEP|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PKCS1_OAEP|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PKCS1_OAEP|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PKCS1_OAEP|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PKCS1_OAEP|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PKCS1_OAEP|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PKCS1_OAEP|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PKCS1_OAEP|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PKCS1_OAEP|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PKCS1_OAEP|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PKCS1_OAEP|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PKCS1_OAEP|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PKCS1_OAEP|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512 ]| + |RSA8192|PKCS1_OAEP|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PKCS1_OAEP|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + + +### 签名验签规格 + +**RSA签名验签** + +RSA签名验签时,涉及两种填充模式:PKCS1和PSS。 +- 使用PKCS1模式时可以指定的参数: + + | 非对称密钥类型 | 填充模式 | 摘要 | 字符串参数 | + |---|---|---|---| + |RSA512|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384]|RSA512\|PKCS1\| [MD5\|SHA1\|SHA224\|SHA256\|SHA384]| + |RSA768|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA768\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA1024|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA1024\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA2048|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA2048\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA3072|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA3072\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA4096|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA4096\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + |RSA8192|PKCS1|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]|RSA8192\|PKCS1\|[MD5\|SHA1\|SHA224\|SHA256\|SHA384\|SHA512]| + +- 使用PSS模式时可以指定的参数: + > **说明:** + > + > 1.[]内的参数只能任选一项,非[]内的为固定值; + > 2.使用时请从表格中选择非对称密钥类型、填充模式、摘要、掩码摘要四个数据,用|拼接成字符串。 + > 例如:"RSA2048|PSS|SHA256|MGF1_SHA256" + + | 非对称密钥类型 | 填充模式 | 摘要 | 掩码摘要 | + |---|---|---|---| + |RSA512|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PSS|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PSS|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA512|PSS|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]|RSA512\|PSS\|SHA256\|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]| + |RSA768|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PSS|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PSS|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA768|PSS|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| + |RSA768|PSS|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256]| + |RSA768|PSS|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224]| + |RSA1024|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA1024|PSS|SHA512| [MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384]| + |RSA2048|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA2048|PSS|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA3072|PSS|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA4096|PSS|SHA512|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|MD5|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA1|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA224|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA256|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA384|[MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + |RSA8192|PSS|SHA512| [MGF1_MD5\|MGF1_SHA1\|MGF1_SHA224\|MGF1_SHA256\|MGF1_SHA384\|MGF1_SHA512]| + +**ECDSA签名验签** + +- 支持的ECDSA参数: + + |非对称密钥算法|支持种类| + |---|---| + |ECC|ECC224| + |ECC|ECC256| + |ECC|ECC384| + |ECC|ECC521| + + |摘要算法|支持种类| + |---|---| + |HASH|SHA1| + |HASH|SHA224| + |HASH|SHA256| + |HASH|SHA384| + |HASH|SHA512| + +### 密钥协商规格 + +**ECDH** + +- 支持的ECDH参数: + + |非对称密钥算法|支持种类| + |---|---| + |ECC|ECC224| + |ECC|ECC256| + |ECC|ECC384| + |ECC|ECC521| + +### MD消息摘要算法规格 +- 加解密算法库框架当前支持的MD算法参数: + + |摘要算法|支持种类| + |---|---| + |HASH|SHA1| + |HASH|SHA224| + |HASH|SHA256| + |HASH|SHA384| + |HASH|SHA512| + |HASH|MD5| + +### HMAC消息认证码算法规格 +- 加解密算法库框架当前支持的HMAC算法参数: + + |摘要算法|支持种类| + |---|---| + |HASH|SHA1| + |HASH|SHA224| + |HASH|SHA256| + |HASH|SHA384| + |HASH|SHA512| diff --git a/zh-cn/application-dev/security/permission-list.md b/zh-cn/application-dev/security/permission-list.md index 37b966efe3f6742dbb62696ae85c4f84674eed4f..67c9e60f427483b52621940585b9842314ff46e8 100644 --- a/zh-cn/application-dev/security/permission-list.md +++ b/zh-cn/application-dev/security/permission-list.md @@ -1144,6 +1144,8 @@ **ACL使能**:TRUE +**申请条件**:使用API version 9以下版本的SDK开发的应用,可以直接申请此权限。使用API version 9及API version 9以上版本的SDK开发的应用,需要先申请权限[ohos.permission.APPROXIMATELY_LOCATION](#ohospermissionapproximately_location),才可申请此权限。 + ## ohos.permission.APPROXIMATELY_LOCATION 允许应用获取设备模糊位置信息。 @@ -1154,6 +1156,8 @@ **ACL使能**:FALSE +**申请条件**:仅供使用API version 9及API version 9以上版本的SDK开发的应用申请。 + ## ohos.permission.MEDIA_LOCATION 允许应用访问用户媒体文件中的地理位置信息。 diff --git a/zh-cn/application-dev/task-management/background-task-overview.md b/zh-cn/application-dev/task-management/background-task-overview.md index 0113cfccdec2c4e7c3fb7a02028e28619c4f4441..c6d963b45c51cd48a520a5baa10fc8734bab19a6 100644 --- a/zh-cn/application-dev/task-management/background-task-overview.md +++ b/zh-cn/application-dev/task-management/background-task-overview.md @@ -57,7 +57,7 @@ OpenHarmony提供了九种后台模式,供需要在后台做长时任务的业 | audioRecording | 音频输入 | 正在运行录音任务 | - | | location | 定位、导航 | 正在运行定位任务 | - | | bluetoothInteraction | 蓝牙传输 | 正在运行蓝牙相关任务 | - | -| multiDeviceConnection | 分布式互联任务 | 正在运行分布式任务 | - | +| multiDeviceConnection | 应用跨设备多端协同 | 正在运行分布式任务 | - | | wifiInteraction | WLAN传输 | 正在运行WLAN相关任务 | System API,仅对System权限应用开放 | | voip | 音视频电话、VOIP | 正在运行通话相关任务 | System API,仅对System权限应用开放 | | taskKeeping | 计算任务 | 正在运行计算任务 | 仅在特定设备生效 | diff --git a/zh-cn/application-dev/task-management/continuous-task-dev-guide.md b/zh-cn/application-dev/task-management/continuous-task-dev-guide.md index 06cc25c42c9f2b4cfa0d55b62c820acad1413156..f3ad8918f3b419f8ebb9ae2bc28c1aa4a9a4aced 100644 --- a/zh-cn/application-dev/task-management/continuous-task-dev-guide.md +++ b/zh-cn/application-dev/task-management/continuous-task-dev-guide.md @@ -42,7 +42,7 @@ 当需要与后台执行的长时任务交互时(如播放音乐等)。可以采用connectAbility()方法启动并连接Service Ability。在获取到服务的代理对象后,与服务进行通信,控制长时任务的申请和取消。 -1、新建Api Version 8的工程后,在工程目录中右键选择“new” -> “Ability” -> “Service Ability” 快速创建Service Ability组件。并在config.json文件中配置长时任务权限ohos.permission.KEEP_BACKGROUND_RUNNING、后台模式类型,其中Ability类型为“service”。 +1、在config.json文件中配置长时任务权限ohos.permission.KEEP_BACKGROUND_RUNNING、同时为需要使用长时任务的Service Ability声明相应的后台模式类型。 ``` "module": { @@ -181,7 +181,7 @@ export default { Stage模型的相关信息参考[Stage开发概述](../application-models/stage-model-development-overview.md)。 -1、新建Api Version 9的工程后,在工程目录中右键选择“New” -> “Ability” 快速创建Ability组件。并在module.json5文件中配置长时任务权限ohos.permission.KEEP_BACKGROUND_RUNNING、后台模式类型。 +1、在module.json5文件中配置长时任务权限ohos.permission.KEEP_BACKGROUND_RUNNING、同时为需要使用长时任务的ability声明相应的后台模式类型。 ``` "module": { @@ -321,7 +321,7 @@ function startContinuousTask() { // 通过wantAgent模块的getWantAgent方法获取WantAgent对象 wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { try { - backgroundTaskManager.startBackgroundRunning(featureAbility.getContext(), + backgroundTaskManager.startBackgroundRunning(mContext, backgroundTaskManager.BackgroundMode.DATA_TRANSFER, wantAgentObj).then(() => { console.info("Operation startBackgroundRunning succeeded"); }).catch((error) => { @@ -335,9 +335,9 @@ function startContinuousTask() { 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) { diff --git a/zh-cn/application-dev/task-management/efficiency-resources-apply-dev-guide.md b/zh-cn/application-dev/task-management/efficiency-resources-apply-dev-guide.md index 885dacbcd1e2ccef1e082f398f270385b22c9cd3..48552a7ddae985547742de550a33860f0baac1af 100644 --- a/zh-cn/application-dev/task-management/efficiency-resources-apply-dev-guide.md +++ b/zh-cn/application-dev/task-management/efficiency-resources-apply-dev-guide.md @@ -6,6 +6,9 @@ 对于需要升级为特权应用的,开发者需要合理评估自己的业务诉求,向应用中心提出申请。 +## 约束与限制 +仅支持系统应用。 + ## 接口说明 **表1** 申请能效资源主要接口 diff --git a/zh-cn/application-dev/tools/aa-tool.md b/zh-cn/application-dev/tools/aa-tool.md index fef305b1cdfde1530a69630e8967c73dc7064fd4..eb3c727c7128072b7d51d3303448fc6ad30b299f 100644 --- a/zh-cn/application-dev/tools/aa-tool.md +++ b/zh-cn/application-dev/tools/aa-tool.md @@ -1,7 +1,11 @@ # aa工具 -Ability assistant(Ability助手,简称为aa),是实现应用及测试用例启动功能的工具,为开发者提供基本的应用调试和测试的能力。通过该工具,开发者可以在hdc shell中,发送命令以执行各种系统操作,例如启动应用组件、强制停止进程、打印应用组件相关信息等。 +Ability assistant(Ability助手,简称为aa),是实现应用及测试用例启动功能的工具,为开发者提供基本的应用调试和测试能力,例如启动应用组件、强制停止进程、打印应用组件相关信息等。 + +> **说明:** +> +> 在使用本工具前,开发者需要先获取[hdc工具](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md),执行hdc shell。 - help @@ -68,7 +72,7 @@ Ability assistant(Ability助手,简称为aa),是实现应用及测试用 | -------- | -------- | -------- | | -h/--help | - | 帮助信息。 | | -a/--all | - | 打印所有mission内的应用组件信息。 | - | -l/--mission-list | type(缺省打印全部) | 打印任务栈信息。
可取值:
- NORMAL
- DEFAULT_STANDARD
- DEFAULT_SINGLE
- LAUNCHER | + | -l/--mission-list | type(缺省打印全部) | 服务侧为了方便管理任务链,内部维护了4种类型的任务链。
可取值:
- NORMAL: 正常启动的任务链(比如A拉起B拉起C, 则对应的任务链是A->B->C)
- DEFAULT_STANDARD: 已经被破坏的任务链中的任务, 启动模式为standard的任务被放到该任务链中, 这里面的任务之间没有关联关系
- DEFAULT_SINGLE: 已经被破坏的任务链中的任务, 启动模式为singleton的任务被放到该任务链中, 这里面的任务之间没有关联关系
- LAUNCHER: launcher的任务链 | | -e/--extension | elementName | 打印扩展组件信息。 | | -u/--userId | UserId | 打印指定UserId的栈信息,需要和其他参数组合使用,例如aa dump -a -u 100、aa dump -d -u 100。 | | -d/--data | - | 打印DataAbility相关信息。 | diff --git a/zh-cn/application-dev/tools/anm-tool.md b/zh-cn/application-dev/tools/anm-tool.md index f91ad97ae854237ac5ec4afbae827f62a23494d3..11cfcb7f4894ba60e2165e6280cbc1598679d32c 100644 --- a/zh-cn/application-dev/tools/anm-tool.md +++ b/zh-cn/application-dev/tools/anm-tool.md @@ -1,6 +1,10 @@ # anm工具 -Advanced Notification Manager(通知管理工具,简称anm)是实现通知打印、设置通知参数等功能的工具,为开发者提供基本的通知调试和测试能力。通过该工具,开发者可以在hdc shell中,发送命令以执行各种系统操作,例如打印已发布通知详细信息、设置通知缓存个数、使能通知等。 +Advanced Notification Manager(通知管理工具,简称anm)是实现通知打印、设置通知参数等功能的工具,为开发者提供基本的通知调试和测试能力,例如打印已发布通知详细信息、设置通知缓存个数、使能通知等。 + +> **说明:** +> +> 在使用本工具前,开发者需要先获取[hdc工具](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md),执行hdc shell。 ### help diff --git a/zh-cn/application-dev/tools/bm-tool.md b/zh-cn/application-dev/tools/bm-tool.md index 6b7fade3819c991b669bb5b3d183f208cdbee0c0..da66b105073487925e953c5a64fa332fa7925469 100644 --- a/zh-cn/application-dev/tools/bm-tool.md +++ b/zh-cn/application-dev/tools/bm-tool.md @@ -1,7 +1,11 @@ # bm工具 -Bundle Manager(包管理工具,简称bm)是实现应用安装、卸载、更新、查询等功能的工具,bm为开发者提供基本的应用安装包的调试能力,开发者可以在hdc shell中,执行bm命令以触发各种系统操作,例如:安装应用,卸载应用,查询安装包信息等。 +Bundle Manager(包管理工具,简称bm)是实现应用安装、卸载、更新、查询等功能的工具,bm为开发者提供基本的应用安装包的调试能力,例如:安装应用,卸载应用,查询安装包信息等。 + +> **说明:** +> +> 在使用本工具前,开发者需要先获取[hdc工具](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md),执行hdc shell。 **表1** bm工具命令列表 diff --git a/zh-cn/application-dev/tools/cem-tool.md b/zh-cn/application-dev/tools/cem-tool.md index a799e27b7c3b482e9eeba092d4c48f5821779a2a..7f7f4b03bef40c2acd13ca5a474abd3478a6fc79 100644 --- a/zh-cn/application-dev/tools/cem-tool.md +++ b/zh-cn/application-dev/tools/cem-tool.md @@ -1,6 +1,10 @@ # cem工具 -Common Event Manager(公共事件管理工具, 简称cem)是实现公共事件信息打印、发布公共事件等功能的工具,为开发者提供基本的公共事件调试和测试能力。通过该工具,开发者可以在hdc shell中,发送命令执行各种系统操作,例如打印所有公共事件订阅者、已发送公共事件和接受者、模拟发布公共事件等。 +Common Event Manager(公共事件管理工具, 简称cem)是实现公共事件信息打印、发布公共事件等功能的工具,为开发者提供基本的公共事件调试和测试能力,例如打印所有公共事件订阅者、已发送公共事件和接受者、模拟发布公共事件等。 + +> **说明:** +> +> 在使用本工具前,开发者需要先获取[hdc工具](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md),执行hdc shell。 ## cem调试助手 diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif index 8d5a07d1ff67011de5d0ec6bc0c2e552db9e5cd0..47730f745cfd341cd6f11c9a3d4ce71d4b2795fb 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif index eb0c760faaf917a6935af461e0094fd8e7b8e85b..903db10d6d7916f42ae2100403e02da2b2cf0fa2 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218419614.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218419614.png index 101f60e44760d98db7a904189f387e2b3557cf32..6cb1dfdc2eedeb82fb0b32df1f2de8c73df08e85 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218419614.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218419614.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218579606.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218579606.png index c8697767f19ae5cc5f7b30c4cbc2a23ffafb0844..42537bbffe87c2972e3130bf5ccc5fc6b055757a 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218579606.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218579606.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218739566.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218739566.png index 4384ea3a2997c4417eee0fbe0e6475c4925b5c36..c5c7e29232e4f468c34faf3f521f594f6ef322bf 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218739566.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001218739566.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif index 24f00c9f1aa6ec431a355f5dd2d88b920607cd05..ab13d6f819a666ded9ffffac99168beafacd97ae 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png index 21d56ef14b92d136e304c4bae6ab8b1f447557bb..6b9e3cb7527e8f1415fd2d32cbc3cb5e12edb241 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif index a6296483cbe2994e36e97d422588f3a9156b56eb..960772dc9536a9e103125503bbb7d4723a6f8c49 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263019457.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263019457.png index dea13c34b80626c7fe1a0036afbe69d5f236910c..ee5931a95991c672e1b4812d9fa62541e2f8a880 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263019457.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263019457.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263139409.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263139409.png index 395631e2ed4572806bd93bcdb8ff86486e0b5bdf..77364d35a2c56de8616a2d7ea77c4977b4b3e2bb 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263139409.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263139409.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png index dc4a266c02708116362da21577d5b1e582a011fd..938ded6d0b38dc838159990880c66c4211dd5aaa 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263339459.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263339459.png index 99e18123d53b88779948b34c6c566005d989358b..97bdd1f5dc3bf6100e12e5d830290cdc0ad678a1 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263339459.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263339459.png differ diff --git a/zh-cn/application-dev/ui/ui-js-animate-background-position-style.md b/zh-cn/application-dev/ui/ui-js-animate-background-position-style.md index 4019f5cd8bd4f6509a0b8904620f6f10112e8578..fe8be536165df05d64993c143ce8e644eda63946 100644 --- a/zh-cn/application-dev/ui/ui-js-animate-background-position-style.md +++ b/zh-cn/application-dev/ui/ui-js-animate-background-position-style.md @@ -28,6 +28,7 @@ .content{ width: 400px; height: 400px; + /* 不建议图片长宽比为1:1 */ background-image: url('common/images/bg-tv.jpg'); background-size: 100%; background-repeat: no-repeat; diff --git a/zh-cn/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md b/zh-cn/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md index 99d794a82fa7e05b7b047dd2625cd77bfccdbd77..a8f930fe603965261612d886b8370df8aa75d2aa 100644 --- a/zh-cn/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md +++ b/zh-cn/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md @@ -596,7 +596,6 @@ export default { /* xxx.css */ .container{ width: 100%; - height: 100%; flex-direction: column; background-color: #F1F3F5; align-items: center; diff --git a/zh-cn/application-dev/ui/ui-js-components-path2d.md b/zh-cn/application-dev/ui/ui-js-components-path2d.md index 0262215a7f8519d6e4ee7721667923af2764e2e5..ca7c525b690623074f106b0e3a1062346fb290b7 100644 --- a/zh-cn/application-dev/ui/ui-js-components-path2d.md +++ b/zh-cn/application-dev/ui/ui-js-components-path2d.md @@ -58,7 +58,7 @@ export default { path.closePath(); // 门 path.moveTo(250, 450); - path.rect(250, 450, 350, 600); + path.rect(250, 450, 100, 600); path.closePath(); // 烟囱 path.moveTo(365, 250); diff --git a/zh-cn/application-dev/ui/ui-js-components-stepper.md b/zh-cn/application-dev/ui/ui-js-components-stepper.md index 0c26fd3b45929d7eb47e09180f86f673937e1359..205a71260fe7214b2ccfeeca86855a064d00a668 100644 --- a/zh-cn/application-dev/ui/ui-js-components-stepper.md +++ b/zh-cn/application-dev/ui/ui-js-components-stepper.md @@ -186,7 +186,7 @@ text{ } ``` -![zh-cn_image_0000001234130975](figures/zh-cn_image_0000001234130975.png) +![zh-cn_image_0000001234130975](figures/zh-cn_image_0000001234130975.PNG) ## 添加事件 diff --git a/zh-cn/application-dev/ui/ui-ts-animation-feature.md b/zh-cn/application-dev/ui/ui-ts-animation-feature.md index bb6a5b8c7dfc4e5e8810f3f9c855b44ae1c275a8..0cf2558762f927042e50ba2f9088d4342d2983a9 100644 --- a/zh-cn/application-dev/ui/ui-ts-animation-feature.md +++ b/zh-cn/application-dev/ui/ui-ts-animation-feature.md @@ -170,9 +170,11 @@ Path() .commands('M162 128.7 a222 222 0 0 1 100.8 374.4 H198 a36 36 0 0 3 -36 -36') .fill(Color.White) + .stroke(Color.Transparent) Path() .commands(this.pathCommands1) .fill('none') + .stroke(Color.Transparent) .linearGradient( { angle: 30, @@ -183,6 +185,7 @@ Path() .commands(this.pathCommands2) .fill('none') + .stroke(Color.Transparent) .linearGradient( { angle: 50, @@ -227,10 +230,10 @@ angle: 180, colors: [['#BDE895', 0.1], ["#95DE7F", 0.6], ["#7AB967", 1]] }) - } + } } ``` - + ![animation-feature](figures/animation-feature.gif) ## 页面转场动画 diff --git a/zh-cn/application-dev/ui/ui-ts-creating-simple-page.md b/zh-cn/application-dev/ui/ui-ts-creating-simple-page.md index 97ced497533ad81bd4bbe4c84de37ce175eb7604..9d97b81f9cdf635bdf9abd14c6389c6fbd3f1b99 100644 --- a/zh-cn/application-dev/ui/ui-ts-creating-simple-page.md +++ b/zh-cn/application-dev/ui/ui-ts-creating-simple-page.md @@ -2,7 +2,7 @@ 在这一小节中,我们将开始食物详情页的开发,学习如何通过容器组件Stack、Flex和基础组件Image、Text,构建用户自定义组件,完成图文并茂的食物介绍。 -在创建页面前,请先创建ArkTS工程,FA模型请参考[创建FA模型的ArkTS工程](../quick-start/start-with-ets-stage.md#创建arkts工程),Stage模型请参考[创建Stage模型的ArkTS工程](../quick-start/start-with-ets-fa.md#创建arkts工程)。 +在创建页面前,请先创建ArkTS工程,Stage模型请参考[创建Stage模型的ArkTS工程](../quick-start/start-with-ets-stage.md#创建arkts工程),FA模型请参考[创建FA模型的ArkTS工程](../quick-start/start-with-ets-fa.md#创建arkts工程)。 ## 构建Stack布局 diff --git a/zh-cn/application-dev/ui/ui-ts-drawing-feature.md b/zh-cn/application-dev/ui/ui-ts-drawing-feature.md index 86f201351613b31444ad6752600088fd570c78a6..909dcf6cd812a7ef61d84de7ddb96847871e04a1 100644 --- a/zh-cn/application-dev/ui/ui-ts-drawing-feature.md +++ b/zh-cn/application-dev/ui/ui-ts-drawing-feature.md @@ -217,10 +217,11 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 ![drawing-feature4](figures/drawing-feature4.png) - 填充颜色为白色。 + 填充颜色为白色,线条颜色为透明。 ```ts .fill(Color.White) + .stroke(Color.Transparent) ``` ```ts @@ -233,6 +234,7 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 Path() .commands('M162 128.7 a222 222 0 0 1 100.8 374.4 H198 a36 36 0 0 3 -36 -36') .fill(Color.White) + .stroke(Color.Transparent) } .height('630px') .width('630px') @@ -256,6 +258,7 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 Path() .commands('M319.5 128.1 c103.5 0 187.5 84 187.5 187.5 v15 a172.5 172.5 0 0 3 -172.5 172.5 H198 a36 36 0 0 3 -13.8 -1 207 207 0 0 0 87 -372 h48.3 z') .fill('none') + .stroke(Corlor.Transparent) .linearGradient( { angle: 30, @@ -276,6 +279,7 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 Path() .commands(this.pathCommands1) .fill('none') + .stroke(Color.Transparent) .linearGradient( { angle: 30, @@ -303,10 +307,12 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 Path() .commands('M162 128.7 a222 222 0 0 1 100.8 374.4 H198 a36 36 0 0 3 -36 -36') .fill(Color.White) + .stroke(Color.Transparent) Path() .commands(this.pathCommands1) .fill('none') + .stroke(Color.Transparent) .linearGradient( { angle: 30, @@ -317,6 +323,7 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 Path() .commands(this.pathCommands2) .fill('none') + .stroke(Color.Transparent) .linearGradient( { angle: 50, @@ -348,33 +355,37 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 @Entry @Component struct Logo { - private pathCommands1:string = 'M319.5 128.1 c103.5 0 187.5 84 187.5 187.5 v15 a172.5 172.5 0 0 3 -172.5 172.5 H198 a36 36 0 0 3 -13.8 -1 207 207 0 0 0 87 -372 h48.3 z' - private pathCommands2:string = 'M270.6 128.1 h48.6 c51.6 0 98.4 21 132.3 54.6 a411 411 0 0 3 -45.6 123 c-25.2 45.6 -56.4 84 -87.6 110.4 a206.1 206.1 0 0 0 -47.7 -288 z' + private pathCommands1: string = 'M319.5 128.1 c103.5 0 187.5 84 187.5 187.5 v15 a172.5 172.5 0 0 3 -172.5 172.5 H198 a36 36 0 0 3 -13.8 -1 207 207 0 0 0 87 -372 h48.3 z' + private pathCommands2: string = 'M270.6 128.1 h48.6 c51.6 0 98.4 21 132.3 54.6 a411 411 0 0 3 -45.6 123 c-25.2 45.6 -56.4 84 -87.6 110.4 a206.1 206.1 0 0 0 -47.7 -288 z' + build() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { Shape() { Path() .commands('M162 128.7 a222 222 0 0 1 100.8 374.4 H198 a36 36 0 0 3 -36 -36') .fill(Color.White) + .stroke(Color.Transparent) Path() .commands(this.pathCommands1) .fill('none') + .stroke(Color.Transparent) .linearGradient( - { - angle: 30, - colors: [["#C4FFA0", 0], ["#ffffff", 1]] - }) + { + angle: 30, + colors: [["#C4FFA0", 0], ["#ffffff", 1]] + }) .clip(new Path().commands(this.pathCommands1)) Path() .commands(this.pathCommands2) .fill('none') + .stroke(Color.Transparent) .linearGradient( - { - angle: 50, - colors: [['#8CC36A', 0.1], ["#B3EB90", 0.4], ["#ffffff", 0.7]] - }) + { + angle: 50, + colors: [['#8CC36A', 0.1], ["#B3EB90", 0.4], ["#ffffff", 0.7]] + }) .clip(new Path().commands(this.pathCommands2)) } .height('630px') @@ -383,22 +394,22 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 Text('Healthy Diet') .fontSize(26) .fontColor(Color.White) - .margin({ top:300 }) + .margin({ top: 300 }) Text('Healthy life comes from a balanced diet') .fontSize(17) .fontColor(Color.White) - .margin({ top:4 }) + .margin({ top: 4 }) } .width('100%') .height('100%') .linearGradient( { angle: 180, - colors: [['#BDE895', 0.1], ["#95DE7F", 0.6], ["#7AB967", 1]] - }) + colors: [['#BDE895', 0.1], ["#95DE7F", 0.6], ["#7AB967", 1]] + }) } } ``` - + ![drawing-feature8](figures/drawing-feature8.png) \ No newline at end of file diff --git a/zh-cn/application-dev/ui/ui-ts-layout-flex.md b/zh-cn/application-dev/ui/ui-ts-layout-flex.md index 688b4351e1aff824c62a91fe763451eb62b2b6af..bf3f2929bdeb2ec2d670edab09f3eb4482aeb55f 100644 --- a/zh-cn/application-dev/ui/ui-ts-layout-flex.md +++ b/zh-cn/application-dev/ui/ui-ts-layout-flex.md @@ -38,7 +38,7 @@ .padding(10) .backgroundColor(0xAFEEEE) ``` - ![zh-cn_image_0000001218579606](figures/zh-cn_image_0000001218579606.png) + ![zh-cn_image_0000001218579606](figures/zh-cn_image_0000001218579606.PNG) - FlexDirection.RowReverse:主轴为水平方向,子组件从终点端沿着FlexDirection. Row相反的方向开始排布。 @@ -54,7 +54,7 @@ .backgroundColor(0xAFEEEE) ``` - ![zh-cn_image_0000001218739566](figures/zh-cn_image_0000001218739566.png) + ![zh-cn_image_0000001218739566](figures/zh-cn_image_0000001218739566.PNG) - FlexDirection.Column:主轴为垂直方向,子组件从起始端沿着垂直方向开始排布。 @@ -70,7 +70,7 @@ .backgroundColor(0xAFEEEE) ``` - ![zh-cn_image_0000001263019457](figures/zh-cn_image_0000001263019457.png) + ![zh-cn_image_0000001263019457](figures/zh-cn_image_0000001263019457.PNG) - FlexDirection.ColumnReverse:主轴为垂直方向,子组件从终点端沿着FlexDirection. Column相反的方向开始排布。 @@ -86,7 +86,7 @@ .backgroundColor(0xAFEEEE) ``` - ![zh-cn_image_0000001263339459](figures/zh-cn_image_0000001263339459.png) + ![zh-cn_image_0000001263339459](figures/zh-cn_image_0000001263339459.PNG) ### 弹性布局换行 @@ -105,7 +105,7 @@ .backgroundColor(0xAFEEEE) ``` - ![zh-cn_image_0000001263139409](figures/zh-cn_image_0000001263139409.png) + ![zh-cn_image_0000001263139409](figures/zh-cn_image_0000001263139409.PNG) - FlexWrap. Wrap:换行,每一行子组件按照主轴方向排列。 @@ -120,7 +120,7 @@ .backgroundColor(0xAFEEEE) ``` - ![zh-cn_image_0000001218419614](figures/zh-cn_image_0000001218419614.png) + ![zh-cn_image_0000001218419614](figures/zh-cn_image_0000001218419614.PNG) - FlexWrap. WrapReverse:换行,每一行子组件按照主轴反方向排列。 @@ -135,7 +135,7 @@ .backgroundColor(0xAFEEEE) ``` - ![zh-cn_image_0000001263259399](figures/zh-cn_image_0000001263259399.png) + ![zh-cn_image_0000001263259399](figures/zh-cn_image_0000001263259399.PNG) ### 弹性布局对齐方式 @@ -356,7 +356,7 @@ Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { //容器 }.width('90%').height(220).backgroundColor(0xAFEEEE) ``` -![](figures/alignself.png) +![alignself](figures/alignself.png) 上例中,Flex容器中alignItems设置交叉轴子组件的对齐方式为居中,子组件自身设置了alignSelf属性的情况,覆盖父组件的alignItem值,表现为alignSelf的定义。 @@ -452,7 +452,7 @@ Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { //容器 - FlexAlign.SpaceEvenly: 子组件各行间距,子组件首尾行与交叉轴两端距离都相等。 ```ts - Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.SpaceAround }) { + Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.SpaceEvenly }) { Text('1').width('30%').height(20).backgroundColor(0xF5DEB3) Text('2').width('60%').height(20).backgroundColor(0xD2B48C) Text('3').width('40%').height(20).backgroundColor(0xD2B48C) @@ -496,7 +496,7 @@ Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { //容器 }.width('90%').height(120).padding(10).backgroundColor(0xAFEEEE) ``` - ![](figures/flexbasis.png) + ![flexbasis](figures/flexbasis.png) - flexGrow: 设置父容器的剩余空间分配给此属性所在组件的比例。用于"瓜分"父组件的剩余空间。 @@ -508,7 +508,7 @@ Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { //容器 .height(100) .backgroundColor(0xF5DEB3) - Text('flexGrow(3)') + Text('flexGrow(2)') .flexGrow(2) .width(100) .height(100) @@ -521,7 +521,7 @@ Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { //容器 }.width(400).height(120).padding(10).backgroundColor(0xAFEEEE) ``` - ![](figures/flexgrow.png) + ![flexgrow](figures/flexgrow.png) 上图中,父容器宽度400vp, 三个子组件原始宽度为100vp,综合300vp,剩余空间100vp根据flexGrow值的占比分配给子组件,未设置flexGrow的子组件不参与“瓜分”。 第一个元素以及第二个元素以2:3分配剩下的100vp。第一个元素为100vp+100vp*2/5=140vp,第二个元素为100vp+100vp*3/5=160vp。 @@ -549,7 +549,7 @@ Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { //容器 }.width(400).height(120).padding(10).backgroundColor(0xAFEEEE) ``` - ![](figures/flexshrink.png) + ![flexshrink](figures/flexshrink.png) ## 场景示例 @@ -584,4 +584,3 @@ struct FlexExample { - [弹性布局(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/FlowLayoutEts) -- [ArkUI常用布局容器对齐方式(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/LayoutAlignmentDemo) diff --git a/zh-cn/application-dev/ui/ui-ts-layout-grid.md b/zh-cn/application-dev/ui/ui-ts-layout-grid.md index 69a9fde64de8d9cb79c0cb40c9f6d6eaba8ba757..28099d42680db276c42ad1f1de0441fa02bca1ea 100644 --- a/zh-cn/application-dev/ui/ui-ts-layout-grid.md +++ b/zh-cn/application-dev/ui/ui-ts-layout-grid.md @@ -8,7 +8,7 @@ Grid用于设置网格布局相关参数,GridItem定义子组件相关特征 2. 支持自定义网格布局行数和列数,以及每行每列尺寸占比。 3. 支持设置网格布局中子组件的行列间距。 4. 支持设置子组件横跨几行或者几列。 - + ## 容器组件Grid设置 @@ -159,7 +159,7 @@ Grid() { .fontSize(16) .textAlign(TextAlign.Center) .textStyle() - }.rowStart(2).rowEnd(3) // 5子组件从第二列到第三列 + }.rowStart(2).rowEnd(3) // 5子组件从第二行到第三行 GridItem() { Text('4') diff --git a/zh-cn/application-dev/ui/ui-ts-layout-mediaquery.md b/zh-cn/application-dev/ui/ui-ts-layout-mediaquery.md index 100c4896116baa774b4f608a2764c356b5feef0c..558384d8d211290640585ad1cdef241d7eb58f07 100644 --- a/zh-cn/application-dev/ui/ui-ts-layout-mediaquery.md +++ b/zh-cn/application-dev/ui/ui-ts-layout-mediaquery.md @@ -90,26 +90,27 @@ listener.on('change', onPortrait) ### 媒体特征(media-feature) -| 类型 | 说明 | -| ----------------- | ---------------------------------------- | -| height | 应用页面显示区域的高度。 | -| min-height | 应用页面显示区域的最小高度。 | -| max-height | 应用页面显示区域的最大高度。 | -| width | 应用页面显示区域的宽度。 | -| min-width | 应用页面显示区域的最小宽度。 | -| max-width | 应用页面显示区域的最大宽度。 | +| 类型 | 说明 | +| ----------------- | ------------------------------------------------------------ | +| height | 应用页面显示区域的高度。 | +| min-height | 应用页面显示区域的最小高度。 | +| max-height | 应用页面显示区域的最大高度。 | +| width | 应用页面显示区域的宽度。 | +| min-width | 应用页面显示区域的最小宽度。 | +| max-width | 应用页面显示区域的最大宽度。 | | resolution | 设备的分辨率,支持dpi,dppx和dpcm单位。其中:
-  dpi表示每英寸中物理像素个数,1dpi≈0.39dpcm;
-  dpcm表示每厘米上的物理像素个数,1dpcm  ≈  2.54dpi;
-  dppx表示每个px中的物理像素数(此单位按96px=1英寸为基准,与页面中的px单位计算方式不同),1dppx  =  96dpi。 | -| min-resolution | 设备的最小分辨率。 | -| max-resolution | 设备的最大分辨率。 | +| min-resolution | 设备的最小分辨率。 | +| max-resolution | 设备的最大分辨率。 | | orientation | 屏幕的方向。
可选值:
-  orientation:  portrait(设备竖屏)
-  orientation:  landscape(设备横屏) | -| device-height | 设备的高度。 | -| min-device-height | 设备的最小高度。 | -| max-device-height | 设备的最大高度。 | -| device-width | 设备的宽度。 | -| min-device-width | 设备的最小宽度。 | -| max-device-width | 设备的最大宽度。 | +| device-height | 设备的高度。 | +| min-device-height | 设备的最小高度。 | +| max-device-height | 设备的最大高度。 | +| device-width | 设备的宽度。 | +| min-device-width | 设备的最小宽度。 | +| max-device-width | 设备的最大宽度。 | +| device-type | 设备的类型。
可选值:default | | round-screen | 屏幕类型,圆形屏幕为true,  非圆形屏幕为  false。 | -| dark-mode | 系统为深色模式时为true,否则为false。 | +| dark-mode | 系统为深色模式时为true,否则为false。 | ## 场景示例 diff --git a/zh-cn/application-dev/webgl/webgl-guidelines.md b/zh-cn/application-dev/webgl/webgl-guidelines.md index 69ae4645ce51af1eb43bc6c90caad7c7ff264ee7..b83472d6d20873741934ed6d01dccbf0d950bc50 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..541283a4a803dc5fb29ac8118eccdfbf75704aec 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; @@ -166,7 +163,7 @@ }); ``` -2. 实现沉浸式效果。有以下三种方式: +2. 实现沉浸式效果。有以下两种方式: - 方式一:调用`setWindowSystemBarEnable`接口,设置导航栏、状态栏不显示,从而达到沉浸式效果。 - 方式二:调用`setWindowLayoutFullScreen`接口,设置应用主窗口为全屏布局;然后调用`setSystemProperties`接口,设置导航栏、状态栏的透明度、背景/文字颜色以及高亮图标等属性,使之保持与主窗口显示协调一致,从而达到沉浸式效果。 diff --git a/zh-cn/application-dev/windowmanager/application-window-stage.md b/zh-cn/application-dev/windowmanager/application-window-stage.md index 004083abdf467635599af9510b44bba54a6a0dc1..2fefb86446754f9232a3b309632aaa89d0ae154e 100644 --- a/zh-cn/application-dev/windowmanager/application-window-stage.md +++ b/zh-cn/application-dev/windowmanager/application-window-stage.md @@ -51,7 +51,7 @@ ## 设置应用主窗口 -在`Stage`模型下,应用主窗口由`Ability`创建并维护生命周期。在`Ability`的`onWindowStageCreate`回调中,通过`WindowStage`获取应用主窗口,即可对其进行属性设置等操作。 +在`Stage`模型下,应用主窗口由`UIAbility`创建并维护生命周期。在`UIAbility`的`onWindowStageCreate`回调中,通过`WindowStage`获取应用主窗口,即可对其进行属性设置等操作。 ### 开发步骤 @@ -66,9 +66,9 @@ 通过`loadContent`接口加载主窗口的目标页面。 ```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.获取应用主窗口。 let windowClass = null; @@ -122,11 +122,11 @@ class MainAbility extends Ability { 当不再需要某些子窗口时,可根据具体实现逻辑,使用`destroyWindow`接口销毁子窗口。 ```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.创建应用子窗口。 windowStage_.createSubWindow("mySubWindow", (err, data) => { @@ -205,7 +205,7 @@ class MainAbility extends Ability { 1. 获取应用主窗口。 通过`getMainWindow`接口获取应用主窗口。 -2. 实现沉浸式效果。有以下三种方式: +2. 实现沉浸式效果。有以下两种方式: - 方式一:调用`setWindowSystemBarEnable`接口,设置导航栏、状态栏不显示,从而达到沉浸式效果。 - 方式二:调用`setWindowLayoutFullScreen`接口,设置应用主窗口为全屏布局;然后调用`setWindowSystemBarProperties`接口,设置导航栏、状态栏的透明度、背景/文字颜色以及高亮图标等属性,使之保持与主窗口显示协调一致,从而达到沉浸式效果。 @@ -213,9 +213,9 @@ class MainAbility extends Ability { 通过`loadContent`接口加载沉浸式窗口的具体内容。 ```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.获取应用主窗口。 let windowClass = null; @@ -295,7 +295,7 @@ class MainAbility extends Ability { "name" : "ohos.permission.SYSTEM_FLOAT_WINDOW", "usedScene": { "abilities": [ - "MainAbility" + "EntryAbility" ], "when":"inuse" } @@ -319,11 +319,11 @@ class MainAbility extends Ability { 当不再需要悬浮窗时,可根据具体实现逻辑,使用`destroyWindow`接口销毁悬浮窗。 ```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. 创建悬浮窗。 let windowClass = null; diff --git a/zh-cn/application-dev/windowmanager/system-window-stage.md b/zh-cn/application-dev/windowmanager/system-window-stage.md index c665a537fd281fac2205334f5711cfbbc41003c2..58011ceea1a651473c615c4f621999128d592a7b 100644 --- a/zh-cn/application-dev/windowmanager/system-window-stage.md +++ b/zh-cn/application-dev/windowmanager/system-window-stage.md @@ -58,12 +58,11 @@ 当不再需要音量条窗口时,可根据具体实现逻辑,使用`hide`接口或`destroyWindow`接口对其进行隐藏或销毁。 ```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.创建音量条窗口。 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; // 创建音量条窗口。 let windowClass = null; diff --git a/zh-cn/design/OpenHarmony-API-governance.md b/zh-cn/design/OpenHarmony-API-governance.md index b56d09d461dd22683fcd66a0b4085fd865fa082d..91b732c41359b76bcffe48821db8b53c40b7e84c 100755 --- a/zh-cn/design/OpenHarmony-API-governance.md +++ b/zh-cn/design/OpenHarmony-API-governance.md @@ -12,7 +12,7 @@ OpenHarmony软件栈中包含了多个角色,因此API也分作多种类型。 - +![](figures/API-Category.png) 不同的API类型其兼容性要求也不一样,具体如下表所述: @@ -60,7 +60,7 @@ OpenHarmony的目标是构建面向万物互联时代的新一代操作系统, ### API评审流程 API评审流程如下: - +![](figures/API-Workflow.png) 主要过程说明: diff --git a/zh-cn/device-dev/device-test/xdevice.md b/zh-cn/device-dev/device-test/xdevice.md index 54662ecf75e2248d40b287edba9ead3fc3f9e491..c870962ca121ad0aca4b65217f55dcefe993a01b 100644 --- a/zh-cn/device-dev/device-test/xdevice.md +++ b/zh-cn/device-dev/device-test/xdevice.md @@ -476,7 +476,7 @@ run指令基本使用方法如下。 type为cmd的com口对应板子上的AT命令串口,用于对设备发送指令,示例中配置为ChA(COM20)串口号。 - L0-1 + ![L0-1](figures/L0-1.PNG) ipcamera设备有两种连接方式,一种是本地串口连接,一种是通过局域网ip连接。 @@ -490,17 +490,17 @@ run指令基本使用方法如下。 2. 配置输出->编辑输出表文件。 - + ![](figures/NFS-1.PNG) 3. 添加路径NFS共享路径(如:D:\HS\NFS_Share_File -public –alldirs),这里要注意ftp的IP地址192.168.1.10为开发板的IP。 - + ![](figures/NFS-2.PNG) 4. 停止NFS服务器->重启运行NFS服务器使刚才添加的共享路径生效。 5. 找到ipcamera设备在PC上面映射的网口:控制面板->网络和Internet->网络共享中心->以太网状态->以太网属性->手动设置IP地址为:192.168.1.11。 - + ![](figures/NFS-3.PNG) 3. 修改根目录中的user_config.xml文件,示例如下。 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/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.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 a49143e89ea9989738df2683bd7c51debe9d0f71..de2478b990ec99ec4eeb16ad5117796ad1baee82 100644 --- a/zh-cn/release-notes/Readme.md +++ b/zh-cn/release-notes/Readme.md @@ -1,6 +1,8 @@ # 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) - [OpenHarmony v3.2 Beta1 (2022-05-31)](OpenHarmony-v3.2-beta1.md) diff --git a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-ability.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-ability.md index 7b9ac761962207cd855dc69af1c5622f2e5a5938..3604e98010fa020703c1ace4535ffb2b07740783 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-ability.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-accessibility.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-accessibility.md index 196923d9263ad1c4510592927242b1f8a7ad7ce0..0b1f2b441ff2108ef7a42fb483b97e62bc39f15e 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-accessibility.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-account.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-account.md index 50e0757f393eef418a7db17a9baa6b025119f238..3251075b33fb18c50e7a037bf1353c98fe3fa785 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-account.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-application.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-application.md index bb33b523cd351e3022e55f0c344d943e6ecaa308..acf7d65e5d1cbf20e0b798fe146101721584a051 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-application.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-arkui.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-arkui.md index 8416155c82eb4569b7fdde83ae0bdcfbadad983e..65826ee30382daa1546b955cfd03283a89af3285 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-arkui.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-battery.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-battery.md index 9c4a25d62d12749610c579bed9ed9d44c9650bcb..5a3dffc2d374610cd40b604908352ca4c9843daf 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-battery.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-bundle.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-bundle.md index 4ad8dbfa9d61a322d90654751e25ed84578d09c7..00bbbfe263124496413e84a40e6483e240cabed2 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-bundle.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-communication.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-communication.md index fe3d7b6f6cb4b56ed3854db3573726b3ed8f3939..bd59bb0e46af98f8ac784c4dc2ea9bcc13e51e17 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-communication.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-compiler-and-runtime.md index 071d3a1616624518f04c5e8d9cc26730f1c35752..fa9429c04a7a1d5b7b830bde0419606bea007e07 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-compiler-and-runtime.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-customization.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-customization.md index 3a20cd0948d85b457e1e14514ed2cedfe4ea4a75..6e9717408cd60102927bae5aef8175b757029258 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-customization.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-dfx.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-dfx.md index 1bad38d6607de642d809d35fea37b6218677cf73..5852c48af019aae39bbfe937f456248ff023b8ef 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-dfx.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-distributed-data.md index 3d1de04c00d28dd2ec60bd3ca33143fa7c8514a2..e2ff6c64d17c327b002b4649a49f472e86501c1f 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-distributed-data.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-distributed-hardware.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-distributed-hardware.md index a51c9cf666c95920991c99d183a8d51046b0ecf2..6893b7a86c19d4f33fec8492f7ce3fc2b3ea827c 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-distributed-hardware.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-file-management.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-file-management.md index e6046286e2909563be52ac0e96cc15cf23b85493..7df264bb91f60f7a636c617a4371a756d71cc943 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-file-management.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-geolocation.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-geolocation.md index 3bdaadbe48dbe969a5e6ddf033fd0b4630a4c7ce..a3ee9ca64cbb86c7ae443a90fddb5519a69b8175 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-geolocation.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-global.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-global.md index 1405d898d5569c8b02b8467e8bf19adf4b287ee0..41a3216b8dd3f37a31e1081ea11ea2f7714a7682 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-global.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-graphic.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-graphic.md new file mode 100644 index 0000000000000000000000000000000000000000..cb6bf067895a789d2fc648d614698548199e8159 --- /dev/null +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-misc.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-misc.md index 7ecb45b6fef335a35b0068b63323f11096d73c80..b3a0099198680800f2d5000bb91d56fd9f0025a8 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-misc.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-multi-modal-input.md index 8e123ccc431a57cc51be14800ae80e8c45441cc9..731ae4c9b560e15bd24a085cbbc89f70551e2463 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-multi-modal-input.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-multimedia.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-multimedia.md index bc91f8b4b4a841517604fb072e912da994c4eadd..cdf86689f62015e10ce17f4141faa98ca3e179a2 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-multimedia.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-notification.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-notification.md index 73aceb883093cacaf20b0532cd17b24e4d6b4ff9..120a4a58a1b5cf5cdace65408071c3236c38b1c8 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-notification.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-resource-scheduler.md index 8fd1ef44294c8505a56627d2f807658dfcdd7ecb..cc74cb2d841696834f98d0f3ef202c2d42b3f4ea 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-resource-scheduler.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-security.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-security.md index 1b13390af56fada68a336f1e0fcd207a888c3141..59d0a0553eaaf2cfe9d459099b64fffcbdb907b6 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-security.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-sensor.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-sensor.md index b633defb952e14bd4a0dae1933c3833868ec5ee4..57ed08773b6f4d84e9fcc0193eb11301a5a804eb 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-sensor.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-start-up.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-start-up.md index 20d25dab9e4cfdf0b475e1e074e9414c5eaff13b..1c53c06941c6f29d7655825636eca6e56977e13d 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-start-up.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-telephony.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-telephony.md index 3c51a0ba2fa536390a9d7204bdac4769b1f0695a..44de06ea042e7b0cb26f508e199d3e18c1185180 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-telephony.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-unitest.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-unitest.md index 617382c1302aa38f51908f5d5722e771a77617e9..f9155d5877925e166b400891052ce423be477409 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-unitest.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-update.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-update.md new file mode 100644 index 0000000000000000000000000000000000000000..393fb1c5af17cf76b3952e0cb619111e02e21703 --- /dev/null +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-usb.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-usb.md index 50aac95a5710c4bdc814d218711e0f03266750f1..41322d47544172cbfa60bf1c8c13b5816fec2d75 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-usb.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-user-iam.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-user-iam.md index ee2502736e821ab02c34252a67017c49b1e3226d..2f1e2fe48062e43e2578e3b54c8f9754588faf28 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-user-iam.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-web.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-web.md index 90420cbdf138c667c8e7b908af29a187ec680a13..2d96410838a893bee3a6175c4de260a93a2ca973 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-web.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202210/js-apidiff-window.md b/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-window.md index 7bfe392f85cd1d52ff717e280df04c1db8706323..ac4aeb1df9c0ddd293ba2727d97ae7a86d529631 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202210/js-apidiff-window.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-ability.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-ability.md index fd2fc2dbc96b550952cb5727d5baeaabf7b463db..d2740c610b0d66913cf8664ea47081f36fe285fd 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-ability.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-account.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-account.md index e8d6e7e6d46508fd9f4e381ce62680c05af67fb0..f0d0b8aab06f7427a3ca1f1c133da5e016b6b546 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-account.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-application.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-application.md index b38ab1b33d00f8e7c10cee024fbad50ec9d8d2fa..d4412e19e3ea48fdc82c85c63754f3229b202714 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-application.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-arkui.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-arkui.md index 6e1aaa86ce3a8eb46711234a2ffe95a81703658c..4565086cc3e5f019d3d074d77ab08b60fa65d6c1 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-arkui.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-bundle.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-bundle.md index 4adb6cdce84055e987561a2c3cbd0808b8e5dd08..ebe280e44bd90109341d2ca81e320118acf879c9 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-bundle.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-communication.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-communication.md index 904e52e35dc3358dd3d6302e1576bd0f526e7b40..704232b9ff04a2094ac622ce6bf9e9fd4c1ace01 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-communication.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-compiler-and-runtime.md index e45ebdd0ba9af31e327f927cdf65dede908a08b2..f5c7efd998354cb0461ac49eec397dd2c3312cea 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-compiler-and-runtime.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-customization.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-customization.md index c4017e53e993ba61bf69b8a4ec742a07dde3389c..0182b59945893a0bc3c65ae133c576672790a8fa 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-customization.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-dfx.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-dfx.md index 43152b9edc40d38e7c7890bb98ccbb59757d3813..4c6dc17be48506ce9532ed6ee9c2da16b74c945c 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-dfx.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-distributed-data.md index 713314ddab05c131e0d6ec150f7235d314560067..488f6d87ea7379cb6f1e52023ceab207b2ef4a0f 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-distributed-data.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-file-management.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-file-management.md index 82055dc4ea3e1b125111f76167fe99dd2fe0bd7a..2d9fb10876d98915f0b1f00817c697a84ec88dd8 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-file-management.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-misc.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-misc.md index 162111b6d0379c2aab193138eb9269df48293ab9..2bf3384673ef46b8ab01b7f2ade4be94ccd0fbd8 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-misc.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-msdp.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-msdp.md index 08b844eb6d58ee05af59bc52b32cbe3f6db14545..b5968a30d6813c858484e505ab4f7970663ccc33 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-msdp.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-multi-modal-input.md index 62864b71bbaedab3a3ce6b89fd766ac531021375..35771dee7a4aa41d2a0ae44c69c2aeca9490e4d0 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-multi-modal-input.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-notification.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-notification.md index 122e3eab5e6312ed007ad30e21e387ca8dd2e197..187d024705db3e8ceb4410e2e48b8993471f1d80 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-notification.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-resource-scheduler.md index 3b9e883b5d03d45eafe24f7128dca70b094465e8..61305be6fe338eb1feee1ee0ae38e909a32d6892 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-resource-scheduler.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-sensor.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-sensor.md index 6f211358114b7212f4f3f9e0b3b5d682b2867b5d..ca6e5e9dce64ec4ca60aa71ed31dd1e24850ff30 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-sensor.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-telephony.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-telephony.md index c934c5d553e2a540f24d345d55e9491d067656ee..9f7edb662a6eb630d579ce167c812bdd6a2dcaa3 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-telephony.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-unitest.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-unitest.md index 19d94ff3432ab3ffcae448f4005be8e2ab4da79f..9829dec124cfe0833c5d9374281182f4baf3534b 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-unitest.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-update.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-update.md index 9e5fc88df932c6ebceee8f45da7a5d5812e36fa0..07334dab4dd25db228b29ed81179e5d2d2c77ab1 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-update.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-usb.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-usb.md index 9496c7172a92d885a04fc227aae5a8ff10cc0ab8..dd8299f46cd710e2c2f909fb23a7235b22cacf7a 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-usb.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-user-iam.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-user-iam.md index f9531084dd6cfbcdd705458b94b5ef5180e19371..5e8ca6139500fee19eb92d84aea8be7c7451b702 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-user-iam.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/changeslogs-202211/js-apidiff-web.md b/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-web.md index 9282e91a28003691c15e4becbc13a7e5dcfbea20..24f748d1ef2f90680902875f54ed8503b8b47984 100644 --- a/zh-cn/release-notes/api-change/changeslogs-202211/js-apidiff-web.md +++ b/zh-cn/release-notes/api-change/changeslogs-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-change/v3.2-beta4/js-apidiff-ability.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-ability.md index ebf368d0778bba1ab2bebb7e3d5976cc2890d6be..70f63bb02b49fada3d974f4e25e4e58d15c4bace 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-ability.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-accessibility.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-accessibility.md index 196923d9263ad1c4510592927242b1f8a7ad7ce0..0b1f2b441ff2108ef7a42fb483b97e62bc39f15e 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-accessibility.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-account.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-account.md index 7f5cd5cb26c4ca19682cdb2cdddfa04576c3cf2a..be54584abbb235339ec1e0e4edec9d96750b6dc9 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-account.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-application.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-application.md index 33d1321a18557647b6c8faf3f8c44c8605a4c709..a628d4131ebfa424fa25049af847f5df8c6be709 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-application.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-arkui.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-arkui.md index 8a9d6b7a134d0a1d73acf9ca261c340a24172d4b..c2200459e446c9dce11fcd90fbaba6e3512890c1 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-arkui.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-battery.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-battery.md index 9c4a25d62d12749610c579bed9ed9d44c9650bcb..fd20de10634918856ec663ab914fd036c23d276d 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-battery.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-bundle.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-bundle.md index 9810f327ef1cec7cee00cf1de94e8d43ef89538c..01c46fd50c145719965163a0d0e9ff7677876f58 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-bundle.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-communication.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-communication.md index 295761c4d91747f5e1f729e831b5b42e45446351..6ef05c0fe4dd06aefa8551280c9812199809fdd8 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-communication.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-compiler-and-runtime.md index 07db32e5642e862ae3bfd7000d6ae10c022e86ee..3cda7bdac5cb5fc629bd22cba93416e4e665ad3d 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-compiler-and-runtime.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-customization.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-customization.md index 23be6883e42d61e3d0d479a13c24623bc12206b9..760d8c9c615cd758b2cbba2b93796b97f1bd99fa 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-customization.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-dfx.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-dfx.md index f70afc64d7c00c1519b27daa284ba7a375d068ce..900f0baeac4f115bb539eec2ef7a0da8dda67869 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-dfx.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-distributed-data.md index 2554c2680fc13dfc42c24146a2b97799014b5383..47ae5cdd520133aa17785202102ba64b9767c013 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-distributed-data.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-distributed-hardware.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-distributed-hardware.md index a51c9cf666c95920991c99d183a8d51046b0ecf2..6893b7a86c19d4f33fec8492f7ce3fc2b3ea827c 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-distributed-hardware.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-file-management.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-file-management.md index 52f674bca1d72264a5520f679a752fd32d245b1b..bfcfdb12a596983eede8903a87d8caa748d0efe4 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-file-management.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-geolocation.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-geolocation.md index 3bdaadbe48dbe969a5e6ddf033fd0b4630a4c7ce..a3ee9ca64cbb86c7ae443a90fddb5519a69b8175 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-geolocation.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-global.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-global.md index 1405d898d5569c8b02b8467e8bf19adf4b287ee0..08048f7af92ed0b979d81aa08023251bef7ce358 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-global.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-misc.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-misc.md index 07429bbc36587eceefd045fcd16def9a82e86979..fa02c7e05a4973fc3f3e6f4f053b62ebebca8dc6 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-misc.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-msdp.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-msdp.md index 08b844eb6d58ee05af59bc52b32cbe3f6db14545..b5968a30d6813c858484e505ab4f7970663ccc33 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-msdp.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-multi-modal-input.md index b15892c0cd7eb18692a182f89c9553564dad4745..929e1ec0cc9e2931ce7ce3e7a95764258c4977e6 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-multi-modal-input.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-multimedia.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-multimedia.md index 04f8f96e82803b8b432f1dae37f5bce86ae47fd2..c47aff2c80bf37bfd2f26a14af0b5d02c3f72efa 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-multimedia.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-notification.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-notification.md index b5cae683259e8b573f2a2a7d237e7fb7856669c6..49811d9382af19e9cecdd9b983883b2d0969aeaf 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-notification.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-resource-scheduler.md index d04552e968d1f5357c375f42aa005ad4dfbcf40c..48ed81fb4c71d2067468834500a3e342d21df0bb 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-resource-scheduler.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-security.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-security.md index 1b13390af56fada68a336f1e0fcd207a888c3141..de7457ee5faa52268e94525b9e2637d7af929eb4 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-security.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-sensor.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-sensor.md index 114398c93017a8548e9ffe9d4435b87443cad225..03de66ebabdf7700d005de363138fe9c7e7cb65e 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-sensor.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-start-up.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-start-up.md index 20d25dab9e4cfdf0b475e1e074e9414c5eaff13b..1c53c06941c6f29d7655825636eca6e56977e13d 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-start-up.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-telephony.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-telephony.md index de7f5113228236e36b583c3666038c58c9a3f049..423c7ed19678ad29d4e27714557c84a0c866a777 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-telephony.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-unitest.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-unitest.md index 1574656c4d37968ff1a4216ad3b3b5bda5423a4b..ff4824c3b5df670b79fb9bc360fcf990f3dd3325 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-unitest.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-update.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-update.md index 9e5fc88df932c6ebceee8f45da7a5d5812e36fa0..07334dab4dd25db228b29ed81179e5d2d2c77ab1 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-update.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-usb.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-usb.md index 56122093d6e636dc6ddbb2f1f0684313b63df68d..d3fd8f26a342a786a39ee1231ed9acbfebafc39c 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-usb.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-user-iam.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-user-iam.md index fe104fe08a3fc9330c1ea3354685ef41ac685497..2d28517db066c0cbc96736d762cf1dc1f405997d 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-user-iam.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-web.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-web.md index 7793291f49b6006bd679d1f30cc1fde107912472..931415d46b4b2403108c5cae8b78f9cea53e053b 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-web.md +++ b/zh-cn/release-notes/api-change/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-change/v3.2-beta4/js-apidiff-window.md b/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-window.md index 7bfe392f85cd1d52ff717e280df04c1db8706323..2b37898d98b0d0f58c3c7c4b5741dd6cdddde010 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta4/js-apidiff-window.md +++ b/zh-cn/release-notes/api-change/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/api-change/v3.2-beta5/js-apidiff-ability.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..d0f42a4d7e49fbc2906c7c1d3feaa2e36f18f129 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-ability.md @@ -0,0 +1,266 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.app.ability.dataUriUtils
类名: dataUriUtils|@ohos.app.ability.dataUriUtils.d.ts| +|新增|NA|模块名: ohos.app.ability.dataUriUtils
类名: dataUriUtils
方法 or 属性: function getId(uri: string): number|@ohos.app.ability.dataUriUtils.d.ts| +|新增|NA|模块名: ohos.app.ability.dataUriUtils
类名: dataUriUtils
方法 or 属性: function attachId(uri: string, id: number): string|@ohos.app.ability.dataUriUtils.d.ts| +|新增|NA|模块名: ohos.app.ability.dataUriUtils
类名: dataUriUtils
方法 or 属性: function deleteId(uri: string): string|@ohos.app.ability.dataUriUtils.d.ts| +|新增|NA|模块名: ohos.app.ability.dataUriUtils
类名: dataUriUtils
方法 or 属性: function updateId(uri: string, id: number): string|@ohos.app.ability.dataUriUtils.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback
方法 or 属性: onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|@ohos.app.ability.EnvironmentCallback.d.ts| +|删除|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法 or 属性:function trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: Callback): void;|NA|@ohos.app.ability.wantAgent.d.ts| +|删除|模块名: ohos.application.Ability
类名: OnReleaseCallBack|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: OnReleaseCallBack
方法 or 属性:(msg: string): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: CalleeCallBack|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: CalleeCallBack
方法 or 属性:(indata: rpc.MessageParcel): rpc.Sequenceable;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Caller|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Caller
方法 or 属性:call(method: string, data: rpc.Sequenceable): Promise;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Caller
方法 or 属性:callWithResult(method: string, data: rpc.Sequenceable): Promise;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Caller
方法 or 属性:release(): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Caller
方法 or 属性:onRelease(callback: OnReleaseCallBack): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Callee|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Callee
方法 or 属性:on(method: string, callback: CalleeCallBack): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Callee
方法 or 属性:off(method: string): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:context: AbilityContext;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:launchWant: Want;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:lastRequestWant: Want;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:callee: Callee;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onCreate(want: Want, param: AbilityConstant.LaunchParam): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onWindowStageCreate(windowStage: window.WindowStage): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onWindowStageDestroy(): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onWindowStageRestore(windowStage: window.WindowStage): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onDestroy(): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onForeground(): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onBackground(): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onContinue(wantParam : {[key: string]: any}): AbilityConstant.OnContinueResult;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onConfigurationUpdated(config: Configuration): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:dump(params: Array): Array;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.Ability
类名: Ability
方法 or 属性:onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: any}): AbilityConstant.OnSaveResult;|NA|@ohos.application.Ability.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: AbilityConstant|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchParam|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchParam
方法 or 属性:launchReason: LaunchReason;|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchParam
方法 or 属性:lastExitReason: LastExitReason;|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchReason|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法 or 属性:UNKNOWN = 0|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法 or 属性:START_ABILITY = 1|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法 or 属性:CALL = 2|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法 or 属性:CONTINUATION = 3|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法 or 属性:APP_RECOVERY = 4|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LastExitReason|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LastExitReason
方法 or 属性:UNKNOWN = 0|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LastExitReason
方法 or 属性:ABILITY_NOT_RESPONDING = 1|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: LastExitReason
方法 or 属性:NORMAL = 2|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnContinueResult|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnContinueResult
方法 or 属性:AGREE = 0|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnContinueResult
方法 or 属性:REJECT = 1|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnContinueResult
方法 or 属性:MISMATCH = 2|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: MemoryLevel|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: MemoryLevel
方法 or 属性:MEMORY_LEVEL_MODERATE = 0|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: MemoryLevel
方法 or 属性:MEMORY_LEVEL_LOW = 1|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: MemoryLevel
方法 or 属性:MEMORY_LEVEL_CRITICAL = 2|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: WindowMode|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: WindowMode
方法 or 属性:WINDOW_MODE_UNDEFINED = 0|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: WindowMode
方法 or 属性:WINDOW_MODE_FULLSCREEN = 1|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: WindowMode
方法 or 属性:WINDOW_MODE_SPLIT_PRIMARY = 100|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: WindowMode
方法 or 属性:WINDOW_MODE_SPLIT_SECONDARY = 101|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: WindowMode
方法 or 属性:WINDOW_MODE_FLOATING = 102|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnSaveResult|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法 or 属性:ALL_AGREE = 0|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法 or 属性:CONTINUATION_REJECT = 1|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法 or 属性:CONTINUATION_MISMATCH = 2|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法 or 属性:RECOVERY_AGREE = 3|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法 or 属性:RECOVERY_REJECT = 4|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法 or 属性:ALL_REJECT|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: StateType|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: StateType
方法 or 属性:CONTINUATION = 0|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityConstant
类名: StateType
方法 or 属性:APP_RECOVERY = 1|NA|@ohos.application.AbilityConstant.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onAbilityCreate(ability: Ability): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onWindowStageCreate(ability: Ability, windowStage: window.WindowStage): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onWindowStageActive(ability: Ability, windowStage: window.WindowStage): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onWindowStageInactive(ability: Ability, windowStage: window.WindowStage): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onWindowStageDestroy(ability: Ability, windowStage: window.WindowStage): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onAbilityDestroy(ability: Ability): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onAbilityForeground(ability: Ability): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onAbilityBackground(ability: Ability): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法 or 属性:onAbilityContinue(ability: Ability): void;|NA|@ohos.application.AbilityLifecycleCallback.d.ts| +|删除|模块名: ohos.application.abilityManager
类名: abilityManager
方法 or 属性:function getExtensionRunningInfos(upperLimit: number): Promise>;|NA|@ohos.application.abilityManager.d.ts| +|删除|模块名: ohos.application.abilityManager
类名: abilityManager
方法 or 属性:function getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback>): void;|NA|@ohos.application.abilityManager.d.ts| +|删除|模块名: ohos.application.abilityManager
类名: abilityManager
方法 or 属性:function getTopAbility(): Promise;|NA|@ohos.application.abilityManager.d.ts| +|删除|模块名: ohos.application.abilityManager
类名: abilityManager
方法 or 属性:function getTopAbility(callback: AsyncCallback): void;|NA|@ohos.application.abilityManager.d.ts| +|删除|模块名: ohos.application.AbilityStage
类名: AbilityStage|NA|@ohos.application.AbilityStage.d.ts| +|删除|模块名: ohos.application.AbilityStage
类名: AbilityStage
方法 or 属性:context: AbilityStageContext;|NA|@ohos.application.AbilityStage.d.ts| +|删除|模块名: ohos.application.AbilityStage
类名: AbilityStage
方法 or 属性:onCreate(): void;|NA|@ohos.application.AbilityStage.d.ts| +|删除|模块名: ohos.application.AbilityStage
类名: AbilityStage
方法 or 属性:onAcceptWant(want: Want): string;|NA|@ohos.application.AbilityStage.d.ts| +|删除|模块名: ohos.application.AbilityStage
类名: AbilityStage
方法 or 属性:onConfigurationUpdated(config: Configuration): void;|NA|@ohos.application.AbilityStage.d.ts| +|删除|模块名: ohos.application.AbilityStage
类名: AbilityStage
方法 or 属性:onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|NA|@ohos.application.AbilityStage.d.ts| +|删除|模块名: ohos.application.appManager
类名: ApplicationState|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ApplicationState
方法 or 属性:STATE_CREATE|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ApplicationState
方法 or 属性:STATE_FOREGROUND|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ApplicationState
方法 or 属性:STATE_ACTIVE|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ApplicationState
方法 or 属性:STATE_BACKGROUND|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ApplicationState
方法 or 属性:STATE_DESTROY|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ProcessState|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ProcessState
方法 or 属性:STATE_CREATE|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ProcessState
方法 or 属性:STATE_FOREGROUND|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ProcessState
方法 or 属性:STATE_ACTIVE|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ProcessState
方法 or 属性:STATE_BACKGROUND|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: ProcessState
方法 or 属性:STATE_DESTROY|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: appManager
方法 or 属性:function registerApplicationStateObserver(observer: ApplicationStateObserver, bundleNameList: Array): number;|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: appManager
方法 or 属性:function getProcessRunningInformation(): Promise>;|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.appManager
类名: appManager
方法 or 属性:function getProcessRunningInformation(callback: AsyncCallback>): void;|NA|@ohos.application.appManager.d.ts| +|删除|模块名: ohos.application.Configuration
类名: Configuration
方法 or 属性:direction?: ConfigurationConstant.Direction;|NA|@ohos.application.Configuration.d.ts| +|删除|模块名: ohos.application.Configuration
类名: Configuration
方法 or 属性:screenDensity?: ConfigurationConstant.ScreenDensity;|NA|@ohos.application.Configuration.d.ts| +|删除|模块名: ohos.application.Configuration
类名: Configuration
方法 or 属性:displayId?: number;|NA|@ohos.application.Configuration.d.ts| +|删除|模块名: ohos.application.Configuration
类名: Configuration
方法 or 属性:hasPointerDevice?: boolean;|NA|@ohos.application.Configuration.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: Direction|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: Direction
方法 or 属性:DIRECTION_NOT_SET = -1|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: Direction
方法 or 属性:DIRECTION_VERTICAL = 0|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: Direction
方法 or 属性:DIRECTION_HORIZONTAL = 1|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity
方法 or 属性:SCREEN_DENSITY_NOT_SET = 0|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity
方法 or 属性:SCREEN_DENSITY_SDPI = 120|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity
方法 or 属性:SCREEN_DENSITY_MDPI = 160|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity
方法 or 属性:SCREEN_DENSITY_LDPI = 240|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity
方法 or 属性:SCREEN_DENSITY_XLDPI = 320|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity
方法 or 属性:SCREEN_DENSITY_XXLDPI = 480|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.ConfigurationConstant
类名: ScreenDensity
方法 or 属性:SCREEN_DENSITY_XXXLDPI = 640|NA|@ohos.application.ConfigurationConstant.d.ts| +|删除|模块名: ohos.application.context
类名: context|NA|@ohos.application.context.d.ts| +|删除|模块名: ohos.application.EnvironmentCallback
类名: EnvironmentCallback|NA|@ohos.application.EnvironmentCallback.d.ts| +|删除|模块名: ohos.application.EnvironmentCallback
类名: EnvironmentCallback
方法 or 属性:onConfigurationUpdated(config: Configuration): void;|NA|@ohos.application.EnvironmentCallback.d.ts| +|删除|模块名: ohos.application.errorManager
类名: errorManager|NA|@ohos.application.errorManager.d.ts| +|删除|模块名: ohos.application.errorManager
类名: errorManager
方法 or 属性:function registerErrorObserver(observer: ErrorObserver): number;|NA|@ohos.application.errorManager.d.ts| +|删除|模块名: ohos.application.errorManager
类名: errorManager
方法 or 属性:function unregisterErrorObserver(observerId: number, callback: AsyncCallback): void;|NA|@ohos.application.errorManager.d.ts| +|删除|模块名: ohos.application.errorManager
类名: errorManager
方法 or 属性:function unregisterErrorObserver(observerId: number): Promise;|NA|@ohos.application.errorManager.d.ts| +|删除|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility|NA|@ohos.application.ExtensionAbility.d.ts| +|删除|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法 or 属性:onConfigurationUpdated(newConfig: Configuration): void;|NA|@ohos.application.ExtensionAbility.d.ts| +|删除|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法 or 属性:onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|NA|@ohos.application.ExtensionAbility.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:context: FormExtensionContext;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onCreate(want: Want): formBindingData.FormBindingData;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onCastToNormal(formId: string): void;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onUpdate(formId: string): void;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onVisibilityChange(newStatus: { [key: string]: number }): void;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onEvent(formId: string, message: string): void;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onDestroy(formId: string): void;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onConfigurationUpdated(config: Configuration): void;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onAcquireFormState?(want: Want): formInfo.FormState;|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.FormExtension
类名: FormExtension
方法 or 属性:onShare?(formId: string): {[key: string]: any};|NA|@ohos.application.FormExtension.d.ts| +|删除|模块名: ohos.application.formHost
类名: formHost
方法 or 属性:function shareForm(formId: string, deviceId: string, callback: AsyncCallback): void;|NA|@ohos.application.formHost.d.ts| +|删除|模块名: ohos.application.formHost
类名: formHost
方法 or 属性:function shareForm(formId: string, deviceId: string): Promise;|NA|@ohos.application.formHost.d.ts| +|删除|模块名: ohos.application.formHost
类名: formHost
方法 or 属性:function notifyFormsPrivacyProtected(formIds: Array, isProtected: boolean, callback: AsyncCallback): void;|NA|@ohos.application.formHost.d.ts| +|删除|模块名: ohos.application.formHost
类名: formHost
方法 or 属性:function notifyFormsPrivacyProtected(formIds: Array, isProtected: boolean): Promise;|NA|@ohos.application.formHost.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormType
方法 or 属性:eTS = 2|NA|@ohos.application.formInfo.d.ts| +|删除|模块名:ohos.application.formInfo
类名:FormParam
方法 or 属性:BUNDLE_NAME_KEY = "ohos.extra.param.key.bundle_name"|NA|@ohos.application.formInfo.d.ts| +|删除|模块名:ohos.application.formInfo
类名:FormParam
方法 or 属性:ABILITY_NAME_KEY = "ohos.extra.param.key.ability_name"|NA|@ohos.application.formInfo.d.ts| +|删除|模块名:ohos.application.formInfo
类名:FormParam
方法 or 属性:DEVICE_ID_KEY = "ohos.extra.param.key.device_id"|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormInfoFilter|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormInfoFilter
方法 or 属性:moduleName?: string;|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormDimension|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormDimension
方法 or 属性:Dimension_1_2 = 1|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormDimension
方法 or 属性:Dimension_2_2|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormDimension
方法 or 属性:Dimension_2_4|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormDimension
方法 or 属性:Dimension_4_4|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: FormDimension
方法 or 属性:Dimension_2_1|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: VisibilityType|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: VisibilityType
方法 or 属性:FORM_VISIBLE = 1|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formInfo
类名: VisibilityType
方法 or 属性:FORM_INVISIBLE|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback>): void;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function getFormsInfo(callback: AsyncCallback>): void;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function getFormsInfo(filter?: formInfo.FormInfoFilter): Promise>;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData,

callback: AsyncCallback): void;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function requestPublishForm(want: Want, callback: AsyncCallback): void;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData): Promise;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function isRequestPublishFormSupported(callback: AsyncCallback): void;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.formProvider
类名: formProvider
方法 or 属性:function isRequestPublishFormSupported(): Promise;|NA|@ohos.application.formProvider.d.ts| +|删除|模块名: ohos.application.missionManager
类名: missionManager
方法 or 属性:function getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback): void;|NA|@ohos.application.missionManager.d.ts| +|删除|模块名: ohos.application.missionManager
类名: missionManager
方法 or 属性:function getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise;|NA|@ohos.application.missionManager.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:context: ServiceExtensionContext;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:onCreate(want: Want): void;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:onDestroy(): void;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:onRequest(want: Want, startId: number): void;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:onConnect(want: Want): rpc.RemoteObject;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:onDisconnect(want: Want): void;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:onReconnect(want: Want): void;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:onConfigurationUpdated(config: Configuration): void;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法 or 属性:dump(params: Array): Array;|NA|@ohos.application.ServiceExtensionAbility.d.ts| +|删除|模块名: ohos.application.StartOptions
类名: StartOptions|NA|@ohos.application.StartOptions.d.ts| +|删除|模块名: ohos.application.StartOptions
类名: StartOptions
方法 or 属性:windowMode?: number;|NA|@ohos.application.StartOptions.d.ts| +|删除|模块名: ohos.application.StartOptions
类名: StartOptions
方法 or 属性:displayId?: number;|NA|@ohos.application.StartOptions.d.ts| +|删除|模块名: ohos.application.Want
类名: Want
方法 or 属性:moduleName?: string;|NA|@ohos.application.Want.d.ts| +|删除|模块名: ohos.wantAgent
类名: wantAgent
方法 or 属性:function trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: AsyncCallback): void;|NA|@ohos.wantAgent.d.ts| +|删除|模块名: ohos.wantAgent
类名: wantAgent
方法 or 属性:function getOperationType(agent: WantAgent, callback: AsyncCallback): void;|NA|@ohos.wantAgent.d.ts| +|删除|模块名: ohos.wantAgent
类名: wantAgent
方法 or 属性:function getOperationType(agent: WantAgent): Promise;|NA|@ohos.wantAgent.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:abilityInfo: AbilityInfo;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:currentHapModuleInfo: HapModuleInfo;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:config: Configuration;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbility(want: Want, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbility(want: Want, options: StartOptions, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbility(want: Want, options?: StartOptions): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityByCall(want: Want): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityForResult(want: Want, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityForResult(want: Want, options?: StartOptions): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startServiceExtensionAbility(want: Want, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startServiceExtensionAbility(want: Want): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:stopServiceExtensionAbility(want: Want, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:stopServiceExtensionAbility(want: Want): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:terminateSelf(callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:terminateSelf(): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:terminateSelfWithResult(parameter: AbilityResult): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:connectAbility(want: Want, options: ConnectOptions): number;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:connectAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:disconnectAbility(connection: number, callback:AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:disconnectAbility(connection: number): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:disconnectServiceExtensionAbility(connection: number, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:disconnectServiceExtensionAbility(connection: number): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:setMissionLabel(label: string, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:setMissionLabel(label: string): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:setMissionIcon(icon: image.PixelMap, callback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:setMissionIcon(icon: image.PixelMap): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:requestPermissionsFromUser(permissions: Array, requestCallback: AsyncCallback): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:requestPermissionsFromUser(permissions: Array): Promise;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:restoreWindowStage(localStorage: LocalStorage): void;|NA|AbilityContext.d.ts| +|删除|模块名: AbilityContext
类名: AbilityContext
方法 or 属性:isTerminating(): boolean;|NA|AbilityContext.d.ts| +|删除|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性:registerAbilityLifecycleCallback(callback: AbilityLifecycleCallback): number;|NA|ApplicationContext.d.ts| +|删除|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性:unregisterAbilityLifecycleCallback(callbackId: number, callback: AsyncCallback): void;|NA|ApplicationContext.d.ts| +|删除|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性:unregisterAbilityLifecycleCallback(callbackId: number): Promise;|NA|ApplicationContext.d.ts| +|删除|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性:registerEnvironmentCallback(callback: EnvironmentCallback): number;|NA|ApplicationContext.d.ts| +|删除|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性:unregisterEnvironmentCallback(callbackId: number, callback: AsyncCallback): void;|NA|ApplicationContext.d.ts| +|删除|模块名: ApplicationContext
类名: ApplicationContext
方法 or 属性:unregisterEnvironmentCallback(callbackId: number): Promise;|NA|ApplicationContext.d.ts| +|删除|模块名: PermissionRequestResult
类名: PermissionRequestResult|NA|PermissionRequestResult.d.ts| +|删除|模块名: PermissionRequestResult
类名: PermissionRequestResult
方法 or 属性:permissions: Array;|NA|PermissionRequestResult.d.ts| +|删除|模块名: PermissionRequestResult
类名: PermissionRequestResult
方法 or 属性:authResults: Array;|NA|PermissionRequestResult.d.ts| +|删除|模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法 or 属性:connectAbility(want: Want, options: ConnectOptions): number;|NA|ServiceExtensionContext.d.ts| +|删除|模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法 or 属性:connectAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number;|NA|ServiceExtensionContext.d.ts| +|删除|模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法 or 属性:disconnectAbility(connection: number, callback:AsyncCallback): void;|NA|ServiceExtensionContext.d.ts| +|删除|模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法 or 属性:disconnectAbility(connection: number): Promise;|NA|ServiceExtensionContext.d.ts| +|删除|模块名:UIAbilityContext
类名:UIAbilityContext
方法 or 属性:requestPermissionsFromUser(permissions: Array, requestCallback: AsyncCallback): void;|NA|UIAbilityContext.d.ts| +|删除|模块名:UIAbilityContext
类名:UIAbilityContext
方法 or 属性:requestPermissionsFromUser(permissions: Array): Promise;|NA|UIAbilityContext.d.ts| +|访问级别有变化|类名:FormParam
方法 or 属性:IDENTITY_KEY = "ohos.extra.param.key.form_identity"
访问级别:公开API|类名:FormParam
方法 or 属性:IDENTITY_KEY = "ohos.extra.param.key.form_identity"
访问级别:系统API|@ohos.application.formInfo.d.ts| +|废弃版本有变化|类名:dataUriUtils
废弃版本:N/A|类名:dataUriUtils
废弃版本:9
代替接口:@ohos.app.ability.dataUriUtils.d.ts |@ohos.ability.dataUriUtils.d.ts| +|废弃版本有变化|类名:Context
方法 or 属性:setShowOnLockScreen(show: boolean, callback: AsyncCallback): void
废弃版本:N/A|类名:Context
方法 or 属性:setShowOnLockScreen(show: boolean, callback: AsyncCallback): void
废弃版本:9
代替接口:ohos.window|context.d.ts| +|废弃版本有变化|类名:Context
方法 or 属性:setShowOnLockScreen(show: boolean): Promise;
废弃版本:N/A|类名:Context
方法 or 属性:setShowOnLockScreen(show: boolean): Promise;
废弃版本:9|context.d.ts| +|起始版本有变化|类名:FormParam
方法 or 属性:IDENTITY_KEY = "ohos.extra.param.key.form_identity"
起始版本:9|类名:FormParam
方法 or 属性:IDENTITY_KEY = "ohos.extra.param.key.form_identity"
起始版本:8|@ohos.application.formInfo.d.ts| +|新增(权限)|类名:ServiceExtensionContext
方法 or 属性:startAbilityByCall(want: Want): Promise;
权限:N/A|类名:ServiceExtensionContext
方法 or 属性:startAbilityByCall(want: Want): Promise;
权限:ohos.permission.ABILITY_BACKGROUND_COMMUNICATION|ServiceExtensionContext.d.ts| +|新增(权限)|类名:UIAbilityContext
方法 or 属性:startAbilityByCall(want: Want): Promise;
权限:N/A|类名:UIAbilityContext
方法 or 属性:startAbilityByCall(want: Want): Promise;
权限:ohos.permission.ABILITY_BACKGROUND_COMMUNICATION|UIAbilityContext.d.ts| +|访问级别有变化|类名:FormParam
方法 or 属性:IDENTITY_KEY = "ohos.extra.param.key.form_identity"
访问级别:公开API|类名:FormParam
方法 or 属性:IDENTITY_KEY = "ohos.extra.param.key.form_identity"
访问级别:系统API|@ohos.application.formInfo.d.ts| +|函数有变化|类名:ServiceExtensionAbility
方法 or 属性:onConnect(want: Want): rpc.RemoteObject;
|类名:ServiceExtensionAbility
方法 or 属性:onConnect(want: Want): rpc.RemoteObject \| Promise;
|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|函数有变化|类名:ServiceExtensionAbility
方法 or 属性:onDisconnect(want: Want): void;
|类名:ServiceExtensionAbility
方法 or 属性:onDisconnect(want: Want): void \| Promise;
|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|函数有变化|类名:UIAbility
方法 or 属性:onDestroy(): void;
|类名:UIAbility
方法 or 属性:onDestroy(): void \| Promise;
|@ohos.app.ability.UIAbility.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-account.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-account.md new file mode 100644 index 0000000000000000000000000000000000000000..24eb94a7cd981534f5103a41bec8784771a3300a --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-account.md @@ -0,0 +1,16 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.account.osAccount
类名: InputerManager|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: InputerManager
方法 or 属性: static registerInputer(authType: AuthType, inputer: IInputer): void;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: InputerManager
方法 or 属性: static unregisterInputer(authType: AuthType): void;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: DomainPlugin|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: DomainPlugin
方法 or 属性: auth(domainAccountInfo: DomainAccountInfo, credential: Uint8Array, callback: IUserAuthCallback): void;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: DomainAccountManager|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: DomainAccountManager
方法 or 属性: static registerPlugin(plugin: DomainPlugin): void;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: DomainAccountManager
方法 or 属性: static unregisterPlugin(): void;|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: AuthType
方法 or 属性: DOMAIN = 1024|@ohos.account.osAccount.d.ts| +|新增|NA|模块名: ohos.account.osAccount
类名: AuthSubType
方法 or 属性: DOMAIN_MIXED = 10240001|@ohos.account.osAccount.d.ts| +|删除(权限)|类名:AppAccountManager
方法 or 属性:getAllAccounts(callback: AsyncCallback>): void;
权限:ohos.permission.GET_ALL_APP_ACCOUNTS|类名:AppAccountManager
方法 or 属性:getAllAccounts(callback: AsyncCallback>): void;
权限:N/A|@ohos.account.appAccount.d.ts| +|删除(权限)|类名:AppAccountManager
方法 or 属性:getAllAccounts(): Promise>;
权限:ohos.permission.GET_ALL_APP_ACCOUNTS|类名:AppAccountManager
方法 or 属性:getAllAccounts(): Promise>;
权限:N/A|@ohos.account.appAccount.d.ts| +|删除(权限)|类名:AppAccountManager
方法 or 属性:getAccountsByOwner(owner: string, callback: AsyncCallback>): void;
权限:ohos.permission.GET_ALL_APP_ACCOUNTS|类名:AppAccountManager
方法 or 属性:getAccountsByOwner(owner: string, callback: AsyncCallback>): void;
权限:N/A|@ohos.account.appAccount.d.ts| +|删除(权限)|类名:AppAccountManager
方法 or 属性:getAccountsByOwner(owner: string): Promise>;
权限:ohos.permission.GET_ALL_APP_ACCOUNTS|类名:AppAccountManager
方法 or 属性:getAccountsByOwner(owner: string): Promise>;
权限:N/A|@ohos.account.appAccount.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-application.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-application.md new file mode 100644 index 0000000000000000000000000000000000000000..7362e4523e448120b280303a3babe029c428310b --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-application.md @@ -0,0 +1,17 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|model有变化|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback): void;
model:N/A|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback): void;
model:@FAModelOnly|@ohos.settings.d.ts| +|model有变化|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise;
model:N/A|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise;
model:@FAModelOnly|@ohos.settings.d.ts| +|model有变化|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback): void;
model:N/A|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback): void;
model:@FAModelOnly|@ohos.settings.d.ts| +|model有变化|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise;
model:N/A|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise;
model:@FAModelOnly|@ohos.settings.d.ts| +|model有变化|类名:settings
方法 or 属性:function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;
model:N/A|类名:settings
方法 or 属性:function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;
model:@FAModelOnly|@ohos.settings.d.ts| +|model有变化|类名:settings
方法 or 属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;
model:N/A|类名:settings
方法 or 属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;
model:@FAModelOnly|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function getURI(name: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:settings
方法 or 属性:function getURI(name: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:N/A|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function getURI(name: string): Promise;
废弃版本:N/A|类名:settings
方法 or 属性:function getURI(name: string): Promise;
废弃版本:9|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:N/A|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise;
废弃版本:N/A|类名:settings
方法 or 属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise;
废弃版本:9|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback): void;
废弃版本:N/A|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback): void;
废弃版本:9
代替接口:N/A|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise;
废弃版本:N/A|类名:settings
方法 or 属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise;
废弃版本:9|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;
废弃版本:N/A|类名:settings
方法 or 属性:function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;
废弃版本:9
代替接口:N/A|@ohos.settings.d.ts| +|废弃版本有变化|类名:settings
方法 or 属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;
废弃版本:N/A|类名:settings
方法 or 属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;
废弃版本:9
代替接口:N/A|@ohos.settings.d.ts| +|新增(权限)|类名:settings
方法 or 属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;
权限:N/A|类名:settings
方法 or 属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;
权限:ohos.permission.MANAGE_SECURE_SETTINGS|@ohos.settings.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-arkui.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..58f2be2fe438016e5f3c1e1ff3ebacf8444f6294 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-arkui.md @@ -0,0 +1,169 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性: owner: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性: want: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性: name: string;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性: data: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性: extraData: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: PushParameterForStage
方法 or 属性: jsonPath?: string;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性: owner: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性: want: Want;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性: name: string;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性: data: KVObject;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: RequestParameterForStage
方法 or 属性: jsonPath?: string;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: pluginComponentManager
方法 or 属性: function push(param: PushParameterForStage, callback: AsyncCallback): void;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: ohos.pluginComponent
类名: pluginComponentManager
方法 or 属性: function request(param: RequestParameterForStage, callback: AsyncCallback): void;|@ohos.pluginComponent.d.ts| +|新增|NA|模块名: common
类名: SourceTool|common.d.ts| +|新增|NA|模块名: common
类名: SourceTool
方法 or 属性: Unknown|common.d.ts| +|新增|NA|模块名: common
类名: SourceTool
方法 or 属性: FINGER|common.d.ts| +|新增|NA|模块名: common
类名: SourceTool
方法 or 属性: PEN|common.d.ts| +|新增|NA|模块名: common
类名: BaseEvent
方法 or 属性: pressure: number;|common.d.ts| +|新增|NA|模块名: common
类名: BaseEvent
方法 or 属性: tiltX: number;|common.d.ts| +|新增|NA|模块名: common
类名: BaseEvent
方法 or 属性: tiltY: number;|common.d.ts| +|新增|NA|模块名: common
类名: BaseEvent
方法 or 属性: sourceTool: SourceTool;|common.d.ts| +|新增|NA|类名:Scroller
方法or属性:scrollPage(value: { next: boolean });|scroll.d.ts| +|新增|NA|模块名: swiper
类名: SwiperAttribute
方法 or 属性: onAnimationStart(event: (index: number) => void): SwiperAttribute;|swiper.d.ts| +|新增|NA|模块名: swiper
类名: SwiperAttribute
方法 or 属性: onAnimationEnd(event: (index: number) => void): SwiperAttribute;|swiper.d.ts| +|新增|NA|模块名: web
类名: WebDarkMode|web.d.ts| +|新增|NA|类名:WebDarkMode
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: WebDarkMode
方法 or 属性:Off|web.d.ts| +|新增|NA|类名:WebDarkMode
方法or属性:Off|web.d.ts| +|新增|NA|模块名: web
类名: WebDarkMode
方法 or 属性:On|web.d.ts| +|新增|NA|类名:WebDarkMode
方法or属性:On|web.d.ts| +|新增|NA|模块名: web
类名: WebDarkMode
方法 or 属性:Auto|web.d.ts| +|新增|NA|类名:WebDarkMode
方法or属性:Auto|web.d.ts| +|新增|NA|模块名: web
类名: DataResubmissionHandler|web.d.ts| +|新增|NA|类名:DataResubmissionHandler
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: DataResubmissionHandler
方法 or 属性:resend(): void;|web.d.ts| +|新增|NA|类名:DataResubmissionHandler
方法or属性:resend(): void;|web.d.ts| +|新增|NA|模块名: web
类名: DataResubmissionHandler
方法 or 属性:cancel(): void;|web.d.ts| +|新增|NA|类名:DataResubmissionHandler
方法or属性:cancel(): void;|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuSourceType|web.d.ts| +|新增|NA|类名:ContextMenuSourceType
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuSourceType
方法 or 属性:None|web.d.ts| +|新增|NA|类名:ContextMenuSourceType
方法or属性:None|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuSourceType
方法 or 属性:Mouse|web.d.ts| +|新增|NA|类名:ContextMenuSourceType
方法or属性:Mouse|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuSourceType
方法 or 属性:LongPress|web.d.ts| +|新增|NA|类名:ContextMenuSourceType
方法or属性:LongPress|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuMediaType|web.d.ts| +|新增|NA|类名:ContextMenuMediaType
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuMediaType
方法 or 属性:None|web.d.ts| +|新增|NA|类名:ContextMenuMediaType
方法or属性:None|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuMediaType
方法 or 属性:Image|web.d.ts| +|新增|NA|类名:ContextMenuMediaType
方法or属性:Image|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuInputFieldType|web.d.ts| +|新增|NA|类名:ContextMenuInputFieldType
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuInputFieldType
方法 or 属性:None|web.d.ts| +|新增|NA|类名:ContextMenuInputFieldType
方法or属性:None|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuInputFieldType
方法 or 属性:PlainText|web.d.ts| +|新增|NA|类名:ContextMenuInputFieldType
方法or属性:PlainText|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuInputFieldType
方法 or 属性:Password|web.d.ts| +|新增|NA|类名:ContextMenuInputFieldType
方法or属性:Password|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuInputFieldType
方法 or 属性:Number|web.d.ts| +|新增|NA|类名:ContextMenuInputFieldType
方法or属性:Number|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuInputFieldType
方法 or 属性:Telephone|web.d.ts| +|新增|NA|类名:ContextMenuInputFieldType
方法or属性:Telephone|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuInputFieldType
方法 or 属性:Other|web.d.ts| +|新增|NA|类名:ContextMenuInputFieldType
方法or属性:Other|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuEditStateFlags|web.d.ts| +|新增|NA|类名:ContextMenuEditStateFlags
方法or属性:|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuEditStateFlags
方法 or 属性:NONE = 0|web.d.ts| +|新增|NA|类名:ContextMenuEditStateFlags
方法or属性:NONE = 0|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuEditStateFlags
方法 or 属性:CAN_CUT = 1 << 0|web.d.ts| +|新增|NA|类名:ContextMenuEditStateFlags
方法or属性:CAN_CUT = 1 << 0|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuEditStateFlags
方法 or 属性:CAN_COPY = 1 << 1|web.d.ts| +|新增|NA|类名:ContextMenuEditStateFlags
方法or属性:CAN_COPY = 1 << 1|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuEditStateFlags
方法 or 属性:CAN_PASTE = 1 << 2|web.d.ts| +|新增|NA|类名:ContextMenuEditStateFlags
方法or属性:CAN_PASTE = 1 << 2|web.d.ts| +|新增|NA|模块名: web
类名: ContextMenuEditStateFlags
方法 or 属性:CAN_SELECT_ALL = 1 << 3|web.d.ts| +|新增|NA|类名:ContextMenuEditStateFlags
方法or属性:CAN_SELECT_ALL = 1 << 3|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getUnfilteredLinkUrl(): string;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getMediaType(): ContextMenuMediaType;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getSelectionText(): string;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getSourceType(): ContextMenuSourceType;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getInputFieldType(): ContextMenuInputFieldType;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:isEditable(): boolean;|web.d.ts| +|新增|NA|类名:WebContextMenuParam
方法or属性:getEditStateFlags(): number;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult
方法 or 属性:copy(): void;|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:copy(): void;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult
方法 or 属性:paste(): void;|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:paste(): void;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult
方法 or 属性:cut(): void;|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:cut(): void;|web.d.ts| +|新增|NA|模块名: web
类名: WebContextMenuResult
方法 or 属性:selectAll(): void;|web.d.ts| +|新增|NA|类名:WebContextMenuResult
方法or属性:selectAll(): void;|web.d.ts| +|新增|NA|模块名: web
类名: WebResourceRequest
方法 or 属性:getRequestMethod(): string;|web.d.ts| +|新增|NA|类名:WebResourceRequest
方法or属性:getRequestMethod(): string;|web.d.ts| +|新增|NA|类名:WebResourceResponse
方法or属性:setResponseIsReady(IsReady: boolean);|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:darkMode(mode: WebDarkMode): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:darkMode(mode: WebDarkMode): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:forceDarkAccess(access: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:forceDarkAccess(access: boolean): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:onInterceptKeyEvent(callback: (event: KeyEvent) => boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onInterceptKeyEvent(callback: (event: KeyEvent) => boolean): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:webStandardFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webStandardFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:webSerifFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webSerifFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:webSansSerifFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webSansSerifFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:webFixedFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webFixedFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:webFantasyFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webFantasyFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:webCursiveFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:webCursiveFont(family: string): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:defaultFixedFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:defaultFixedFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:defaultFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:defaultFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:minFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:minFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:minLogicalFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:minLogicalFontSize(size: number): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:blockNetwork(block: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:blockNetwork(block: boolean): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:horizontalScrollBarAccess(horizontalScrollBar: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:horizontalScrollBarAccess(horizontalScrollBar: boolean): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:verticalScrollBarAccess(verticalScrollBar: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:verticalScrollBarAccess(verticalScrollBar: boolean): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:onTouchIconUrlReceived(callback: (event: {url: string,
precomposed: boolean}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onTouchIconUrlReceived(callback: (event: {url: string,
precomposed: boolean}) => void): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:onFaviconReceived(callback: (event: {favicon: PixelMap}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onFaviconReceived(callback: (event: {favicon: PixelMap}) => void): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:onPageVisible(callback: (event: {url: string}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onPageVisible(callback: (event: {url: string}) => void): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:onDataResubmitted(callback: (event: {handler: DataResubmissionHandler}) => void): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:onDataResubmitted(callback: (event: {handler: DataResubmissionHandler}) => void): WebAttribute;|web.d.ts| +|新增|NA|模块名: web
类名: WebAttribute
方法 or 属性:pinchSmooth(isEnabled: boolean): WebAttribute;|web.d.ts| +|新增|NA|类名:WebAttribute
方法or属性:pinchSmooth(isEnabled: boolean): WebAttribute;|web.d.ts| +|删除|模块名:web
类名:WebContextMenuParam
方法 or 属性:getUnfilterendLinkUrl(): string;|NA|web.d.ts| +|访问级别有变化|类名:SubscribedAbstractProperty
访问级别:系统API|类名:SubscribedAbstractProperty
访问级别:公开API|common_ts_ets_api.d.ts| +|访问级别有变化|类名:SubscribedAbstractProperty
方法 or 属性:abstract get(): T;
访问级别:系统API|类名:SubscribedAbstractProperty
方法 or 属性:abstract get(): T;
访问级别:公开API|common_ts_ets_api.d.ts| +|访问级别有变化|类名:SubscribedAbstractProperty
方法 or 属性:abstract set(newValue: T): void;
访问级别:系统API|类名:SubscribedAbstractProperty
方法 or 属性:abstract set(newValue: T): void;
访问级别:公开API|common_ts_ets_api.d.ts| +|废弃版本有变化|类名:Edge
方法 or 属性:Center
废弃版本:N/A|类名:Edge
方法 or 属性:Center
废弃版本:9
代替接口:N/A|enums.d.ts| +|废弃版本有变化|类名:Edge
方法 or 属性:Baseline
废弃版本:N/A|类名:Edge
方法 or 属性:Baseline
废弃版本:9
代替接口:N/A|enums.d.ts| +|废弃版本有变化|类名:Edge
方法 or 属性:Middle
废弃版本:N/A|类名:Edge
方法 or 属性:Middle
废弃版本:9
代替接口:N/A|enums.d.ts| +|废弃版本有变化|类名:ImageAnimatorAttribute
方法 or 属性:preDecode(value: number): ImageAnimatorAttribute;
废弃版本:N/A|类名:ImageAnimatorAttribute
方法 or 属性:preDecode(value: number): ImageAnimatorAttribute;
废弃版本:9
代替接口:N/A|image_animator.d.ts| +|废弃版本有变化|类名:ListAttribute
方法 or 属性:editMode(value: boolean): ListAttribute;
废弃版本:N/A|类名:ListAttribute
方法 or 属性:editMode(value: boolean): ListAttribute;
废弃版本:9
代替接口:N/A|list.d.ts| +|废弃版本有变化|类名:ListAttribute
方法 or 属性:onItemDelete(event: (index: number) => boolean): ListAttribute;
废弃版本:N/A|类名:ListAttribute
方法 or 属性:onItemDelete(event: (index: number) => boolean): ListAttribute;
废弃版本:9
代替接口:N/A|list.d.ts| +|废弃版本有变化|类名:EditMode
废弃版本:N/A|类名:EditMode
废弃版本:9
代替接口:N/A|list_item.d.ts| +|废弃版本有变化|类名:ListItemAttribute
方法 or 属性:editable(value: boolean \| EditMode): ListItemAttribute;
废弃版本:N/A|类名:ListItemAttribute
方法 or 属性:editable(value: boolean \| EditMode): ListItemAttribute;
废弃版本:9
代替接口:N/A|list_item.d.ts| +|废弃版本有变化|类名:ScrollDirection
方法 or 属性:Free
废弃版本:N/A|类名:ScrollDirection
方法 or 属性:Free
废弃版本:9
代替接口:N/A|scroll.d.ts| +|废弃版本有变化|类名:Scroller
方法 or 属性:scrollPage(value: { next: boolean; direction?: Axis });
废弃版本:N/A|类名:Scroller
方法 or 属性:scrollPage(value: { next: boolean; direction?: Axis });
废弃版本:9
代替接口:N/A|scroll.d.ts| +|废弃版本有变化|类名:SliderAttribute
方法 or 属性:minLabel(value: string): SliderAttribute;
废弃版本:N/A|类名:SliderAttribute
方法 or 属性:minLabel(value: string): SliderAttribute;
废弃版本:9
代替接口:min |slider.d.ts| +|废弃版本有变化|类名:SliderAttribute
方法 or 属性:maxLabel(value: string): SliderAttribute;
废弃版本:N/A|类名:SliderAttribute
方法 or 属性:maxLabel(value: string): SliderAttribute;
废弃版本:9
代替接口:max |slider.d.ts| +|起始版本有变化|类名:SubscribedAbstractProperty
起始版本:7|类名:SubscribedAbstractProperty
起始版本:9|common_ts_ets_api.d.ts| +|起始版本有变化|类名:SubscribedAbstractProperty
方法 or 属性:abstract get(): T;
起始版本:7|类名:SubscribedAbstractProperty
方法 or 属性:abstract get(): T;
起始版本:9|common_ts_ets_api.d.ts| +|起始版本有变化|类名:SubscribedAbstractProperty
方法 or 属性:abstract set(newValue: T): void;
起始版本:7|类名:SubscribedAbstractProperty
方法 or 属性:abstract set(newValue: T): void;
起始版本:9|common_ts_ets_api.d.ts| +|起始版本有变化|类名:NavigationAttribute
方法 or 属性:title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;
起始版本:8|类名:NavigationAttribute
方法 or 属性:title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;
起始版本:9|navigation.d.ts| +|访问级别有变化|类名:SubscribedAbstractProperty
访问级别:系统API|类名:SubscribedAbstractProperty
访问级别:公开API|common_ts_ets_api.d.ts| +|访问级别有变化|类名:SubscribedAbstractProperty
方法 or 属性:abstract get(): T;
访问级别:系统API|类名:SubscribedAbstractProperty
方法 or 属性:abstract get(): T;
访问级别:公开API|common_ts_ets_api.d.ts| +|访问级别有变化|类名:SubscribedAbstractProperty
方法 or 属性:abstract set(newValue: T): void;
访问级别:系统API|类名:SubscribedAbstractProperty
方法 or 属性:abstract set(newValue: T): void;
访问级别:公开API|common_ts_ets_api.d.ts| +|函数有变化|类名:AbilityComponentInterface
方法 or 属性:(value: {want: import('../api/@ohos.application.Want').default}): AbilityComponentAttribute;
|类名:AbilityComponentInterface
方法 or 属性:(value: {want: import('../api/@ohos.app.ability.Want').default}): AbilityComponentAttribute;
|ability_component.d.ts| +|函数有变化|类名:FormComponentInterface
方法 or 属性:(value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.application.Want').default;
}): FormComponentAttribute;
|类名:FormComponentInterface
方法 or 属性:(value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.app.ability.Want').default;
}): FormComponentAttribute;
|form_component.d.ts| +|函数有变化|类名:ControllerHandler
方法 or 属性:setWebController(controller: WebController): void;
|类名:ControllerHandler
方法 or 属性:setWebController(controller: WebviewController): void;
|web.d.ts| +|函数有变化|类名:WebResourceResponse
方法 or 属性:setResponseData(data: string);
|类名:WebResourceResponse
方法 or 属性:setResponseData(data: string \| number);
|web.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-battery.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-battery.md new file mode 100644 index 0000000000000000000000000000000000000000..520afe4ea68445a6673eb5da68907847ded7c02b --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-battery.md @@ -0,0 +1,3 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|删除(权限)|类名:power
方法 or 属性:function getPowerMode(): DevicePowerMode;
权限:ohos.permission.POWER_OPTIMIZATION|类名:power
方法 or 属性:function getPowerMode(): DevicePowerMode;
权限:N/A|@ohos.power.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-bundle.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-bundle.md new file mode 100644 index 0000000000000000000000000000000000000000..2177331e7be6ecb47b345162442dc3bb38cea69f --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-bundle.md @@ -0,0 +1,24 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback): void;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementName: ElementName): Promise;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementNames: Array, callback: AsyncCallback>): void;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementNames: Array): Promise>;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementName: ElementName, locale: string, callback: AsyncCallback): void;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementName: ElementName, locale: string): Promise;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementNames: Array, locale: string, callback: AsyncCallback>): void;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundleManager
类名: distributedBundleManager
方法 or 属性: function getRemoteAbilityInfo(elementNames: Array, locale: string): Promise>;|@ohos.bundle.distributedBundleManager.d.ts| +|新增|NA|类名:BundleInstaller
方法or属性:install(hapFilePaths: Array, installParam?: InstallParam) : Promise;|@ohos.bundle.installer.d.ts| +|新增|NA|类名:BundleInstaller
方法or属性:uninstall(bundleName: string, installParam?: InstallParam) : Promise;|@ohos.bundle.installer.d.ts| +|新增|NA|类名:BundleInstaller
方法or属性:recover(bundleName: string, installParam?: InstallParam) : Promise;|@ohos.bundle.installer.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback): void;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName): Promise;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementNames: Array, callback: AsyncCallback>): void;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementNames: Array): Promise>;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName, locale: string, callback: AsyncCallback): void;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementName: ElementName, locale: string): Promise;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementNames: Array, locale: string, callback: AsyncCallback>): void;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法 or 属性:function getRemoteAbilityInfo(elementNames: Array, locale: string): Promise>;|NA|@ohos.bundle.distributedBundle.d.ts| +|删除|模块名: hapModuleInfo
类名: HapModuleInfo
方法 or 属性:readonly moduleSourceDir: string;|NA|hapModuleInfo.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-communication.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-communication.md new file mode 100644 index 0000000000000000000000000000000000000000..17062b6407de9c72d7c42a7b495e4775cd0195b5 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-communication.md @@ -0,0 +1,131 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:connectedTag
方法or属性:function initialize(): void;|@ohos.connectedTag.d.ts| +|新增|NA|类名:connectedTag
方法or属性:function uninitialize(): void;|@ohos.connectedTag.d.ts| +|新增|NA|类名:connectedTag
方法or属性:function read(): Promise;|@ohos.connectedTag.d.ts| +|新增|NA|类名:connectedTag
方法or属性:function read(callback: AsyncCallback): void;|@ohos.connectedTag.d.ts| +|新增|NA|类名:connectedTag
方法or属性:function write(data: number[]): Promise;|@ohos.connectedTag.d.ts| +|新增|NA|类名:connectedTag
方法or属性:function write(data: number[], callback: AsyncCallback): void;|@ohos.connectedTag.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function isSharingSupported(callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function isSharingSupported(): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function isSharing(callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function isSharing(): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function startSharing(type: SharingIfaceType, callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function startSharing(type: SharingIfaceType): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function stopSharing(type: SharingIfaceType, callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function stopSharing(type: SharingIfaceType): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getStatsRxBytes(callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getStatsRxBytes(): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getStatsTxBytes(callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getStatsTxBytes(): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getStatsTotalBytes(callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getStatsTotalBytes(): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getSharingIfaces(state: SharingIfaceState, callback: AsyncCallback>): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getSharingIfaces(state: SharingIfaceState): Promise>;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getSharingState(type: SharingIfaceType, callback: AsyncCallback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getSharingState(type: SharingIfaceType): Promise;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getSharableRegexes(type: SharingIfaceType, callback: AsyncCallback>): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function getSharableRegexes(type: SharingIfaceType): Promise>;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function on(type: 'sharingStateChange', callback: Callback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function off(type: 'sharingStateChange', callback?: Callback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function on(type: 'interfaceSharingStateChange', callback: Callback<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function off(type: 'interfaceSharingStateChange', callback?: Callback<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function on(type: 'sharingUpstreamChange', callback: Callback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: sharing
方法 or 属性: function off(type: 'sharingUpstreamChange', callback?: Callback): void;|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceState|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceState
方法 or 属性: SHARING_NIC_SERVING = 1|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceState
方法 or 属性: SHARING_NIC_CAN_SERVER = 2|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceState
方法 or 属性: SHARING_NIC_ERROR = 3|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceType|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceType
方法 or 属性: SHARING_WIFI = 0|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceType
方法 or 属性: SHARING_USB = 1|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.net.sharing
类名: SharingIfaceType
方法 or 属性: SHARING_BLUETOOTH = 2|@ohos.net.sharing.d.ts| +|新增|NA|模块名: ohos.nfc.cardEmulation
类名: CardType|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:CardType
方法or属性:|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|模块名: ohos.nfc.cardEmulation
类名: CardType
方法 or 属性:PAYMENT = "payment"|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:CardType
方法or属性:PAYMENT = "payment"|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|模块名: ohos.nfc.cardEmulation
类名: CardType
方法 or 属性:OTHER = "other"|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:CardType
方法or属性:OTHER = "other"|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:cardEmulation
方法or属性:function hasHceCapability(): boolean;|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:cardEmulation
方法or属性:function isDefaultService(elementName: ElementName, type: CardType): boolean;|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:HceService
方法or属性:start(elementName: ElementName, aidList: string[]): void|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:HceService
方法or属性:stop(elementName: ElementName): void|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:HceService
方法or属性:transmit(response: number[]): Promise;|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:HceService
方法or属性:transmit(response: number[], callback: AsyncCallback): void;|@ohos.nfc.cardEmulation.d.ts| +|新增|NA|类名:nfcController
方法or属性:function enableNfc(): void|@ohos.nfc.controller.d.ts| +|新增|NA|类名:nfcController
方法or属性:function disableNfc(): void|@ohos.nfc.controller.d.ts| +|新增|NA|类名:tag
方法or属性:function getNfcA(tagInfo: TagInfo): NfcATag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getNfcB(tagInfo: TagInfo): NfcBTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getNfcF(tagInfo: TagInfo): NfcFTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:tag
方法or属性:function getNfcV(tagInfo: TagInfo): NfcVTag|@ohos.nfc.tag.d.ts| +|新增|NA|类名:wifiManager
方法or属性:function p2pCancelConnect(): void;|@ohos.wifiManager.d.ts| +|新增|NA|类名:TagSession
方法or属性:connect(): void;|tagSession.d.ts| +|新增|NA|类名:TagSession
方法or属性:resetConnection(): void;|tagSession.d.ts| +|新增|NA|类名:TagSession
方法or属性:isConnected(): boolean;|tagSession.d.ts| +|新增|NA|类名:TagSession
方法or属性:setTimeout(timeout: number): void;|tagSession.d.ts| +|新增|NA|类名:TagSession
方法or属性:getTimeout(): number;|tagSession.d.ts| +|新增|NA|类名:TagSession
方法or属性:transmit(data: number[]): Promise;|tagSession.d.ts| +|新增|NA|类名:TagSession
方法or属性:transmit(data: number[], callback: AsyncCallback): void;|tagSession.d.ts| +|新增|NA|类名:TagSession
方法or属性:getMaxTransmitSize(): number;|tagSession.d.ts| +|删除|模块名:ohos.wifiManager
类名:wifiManager
方法 or 属性:function p2pDisconnect(): void;|NA|@ohos.wifiManager.d.ts| +|废弃版本有变化|类名:connectedTag
方法 or 属性:function init(): boolean;
废弃版本:N/A|类名:connectedTag
方法 or 属性:function init(): boolean;
废弃版本:9
代替接口:ohos.connectedTag/connectedTag|@ohos.connectedTag.d.ts| +|废弃版本有变化|类名:connectedTag
方法 or 属性:function uninit(): boolean;
废弃版本:N/A|类名:connectedTag
方法 or 属性:function uninit(): boolean;
废弃版本:9
代替接口:ohos.connectedTag/connectedTag|@ohos.connectedTag.d.ts| +|废弃版本有变化|类名:connectedTag
方法 or 属性:function readNdefTag(): Promise;
废弃版本:N/A|类名:connectedTag
方法 or 属性:function readNdefTag(): Promise;
废弃版本:9
代替接口:ohos.connectedTag/connectedTag|@ohos.connectedTag.d.ts| +|废弃版本有变化|类名:connectedTag
方法 or 属性:function readNdefTag(callback: AsyncCallback): void;
废弃版本:N/A|类名:connectedTag
方法 or 属性:function readNdefTag(callback: AsyncCallback): void;
废弃版本:9|@ohos.connectedTag.d.ts| +|废弃版本有变化|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string): Promise;
废弃版本:N/A|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string): Promise;
废弃版本:9
代替接口:ohos.connectedTag/connectedTag|@ohos.connectedTag.d.ts| +|废弃版本有变化|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.connectedTag.d.ts| +|废弃版本有变化|类名:FeatureType
废弃版本:N/A|类名:FeatureType
废弃版本:9
代替接口:ohos.nfc.cardEmulation/cardEmulation|@ohos.nfc.cardEmulation.d.ts| +|废弃版本有变化|类名:cardEmulation
方法 or 属性:function isSupported(feature: number): boolean;
废弃版本:N/A|类名:cardEmulation
方法 or 属性:function isSupported(feature: number): boolean;
废弃版本:9
代替接口:ohos.nfc.cardEmulation/cardEmulation|@ohos.nfc.cardEmulation.d.ts| +|废弃版本有变化|类名:HceService
方法 or 属性:startHCE(aidList: string[]): boolean;
废弃版本:N/A|类名:HceService
方法 or 属性:startHCE(aidList: string[]): boolean;
废弃版本:9
代替接口:ohos.nfc.cardEmulation/cardEmulation.HceService|@ohos.nfc.cardEmulation.d.ts| +|废弃版本有变化|类名:HceService
方法 or 属性:stopHCE(): boolean;
废弃版本:N/A|类名:HceService
方法 or 属性:stopHCE(): boolean;
废弃版本:9
代替接口:ohos.nfc.cardEmulation/cardEmulation.HceService|@ohos.nfc.cardEmulation.d.ts| +|废弃版本有变化|类名:HceService
方法 or 属性:sendResponse(responseApdu: number[]): void;
废弃版本:N/A|类名:HceService
方法 or 属性:sendResponse(responseApdu: number[]): void;
废弃版本:9
代替接口:ohos.nfc.cardEmulation/cardEmulation.HceService|@ohos.nfc.cardEmulation.d.ts| +|废弃版本有变化|类名:nfcController
方法 or 属性:function isNfcAvailable(): boolean
废弃版本:N/A|类名:nfcController
方法 or 属性:function isNfcAvailable(): boolean
废弃版本:9
代替接口:global|@ohos.nfc.controller.d.ts| +|废弃版本有变化|类名:nfcController
方法 or 属性:function openNfc(): boolean
废弃版本:N/A|类名:nfcController
方法 or 属性:function openNfc(): boolean
废弃版本:9
代替接口:@ohos.nfc.controller.nfcController|@ohos.nfc.controller.d.ts| +|废弃版本有变化|类名:nfcController
方法 or 属性:function closeNfc(): boolean
废弃版本:N/A|类名:nfcController
方法 or 属性:function closeNfc(): boolean
废弃版本:9
代替接口:@ohos.nfc.controller.nfcController|@ohos.nfc.controller.d.ts| +|废弃版本有变化|类名:tag
方法 or 属性:function getNfcATag(tagInfo: TagInfo): NfcATag
废弃版本:N/A|类名:tag
方法 or 属性:function getNfcATag(tagInfo: TagInfo): NfcATag
废弃版本:9
代替接口:ohos.nfc.tag/tag|@ohos.nfc.tag.d.ts| +|废弃版本有变化|类名:tag
方法 or 属性:function getNfcBTag(tagInfo: TagInfo): NfcBTag
废弃版本:N/A|类名:tag
方法 or 属性:function getNfcBTag(tagInfo: TagInfo): NfcBTag
废弃版本:9
代替接口:ohos.nfc.tag/tag|@ohos.nfc.tag.d.ts| +|废弃版本有变化|类名:tag
方法 or 属性:function getNfcFTag(tagInfo: TagInfo): NfcFTag
废弃版本:N/A|类名:tag
方法 or 属性:function getNfcFTag(tagInfo: TagInfo): NfcFTag
废弃版本:9
代替接口:ohos.nfc.tag/tag|@ohos.nfc.tag.d.ts| +|废弃版本有变化|类名:tag
方法 or 属性:function getNfcVTag(tagInfo: TagInfo): NfcVTag
废弃版本:N/A|类名:tag
方法 or 属性:function getNfcVTag(tagInfo: TagInfo): NfcVTag
废弃版本:9
代替接口:ohos.nfc.tag/tag|@ohos.nfc.tag.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:getTagInfo(): tag.TagInfo;
废弃版本:N/A|类名:TagSession
方法 or 属性:getTagInfo(): tag.TagInfo;
废弃版本:9
代替接口:ohos.nfc.tag/tag|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:connectTag(): boolean;
废弃版本:N/A|类名:TagSession
方法 or 属性:connectTag(): boolean;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:reset(): void;
废弃版本:N/A|类名:TagSession
方法 or 属性:reset(): void;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:isTagConnected(): boolean;
废弃版本:N/A|类名:TagSession
方法 or 属性:isTagConnected(): boolean;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:setSendDataTimeout(timeout: number): boolean;
废弃版本:N/A|类名:TagSession
方法 or 属性:setSendDataTimeout(timeout: number): boolean;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:getSendDataTimeout(): number;
废弃版本:N/A|类名:TagSession
方法 or 属性:getSendDataTimeout(): number;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:sendData(data: number[]): Promise;
废弃版本:N/A|类名:TagSession
方法 or 属性:sendData(data: number[]): Promise;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:sendData(data: number[], callback: AsyncCallback): void;
废弃版本:N/A|类名:TagSession
方法 or 属性:sendData(data: number[], callback: AsyncCallback): void;
废弃版本:9|tagSession.d.ts| +|废弃版本有变化|类名:TagSession
方法 or 属性:getMaxSendLength(): number;
废弃版本:N/A|类名:TagSession
方法 or 属性:getMaxSendLength(): number;
废弃版本:9
代替接口:tagSession.TagSession|tagSession.d.ts| +|起始版本有变化|类名:FeatureType
起始版本:N/A|类名:FeatureType
起始版本:6|@ohos.nfc.cardEmulation.d.ts| +|权限有变化|类名:A2dpSourceProfile
方法 or 属性:connect(device: string): boolean;
权限:permission ohos.permission.DISCOVER_BLUETOOTH|类名:A2dpSourceProfile
方法 or 属性:connect(device: string): boolean;
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:A2dpSourceProfile
方法 or 属性:disconnect(device: string): boolean;
权限:permission ohos.permission.DISCOVER_BLUETOOTH|类名:A2dpSourceProfile
方法 or 属性:disconnect(device: string): boolean;
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:connect(device: string): boolean;
权限:permission ohos.permission.DISCOVER_BLUETOOTH|类名:HandsFreeAudioGatewayProfile
方法 or 属性:connect(device: string): boolean;
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:HandsFreeAudioGatewayProfile
方法 or 属性:disconnect(device: string): boolean;
权限:permission ohos.permission.DISCOVER_BLUETOOTH|类名:HandsFreeAudioGatewayProfile
方法 or 属性:disconnect(device: string): boolean;
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:HidHostProfile
方法 or 属性:connect(device: string): boolean;
权限:permission ohos.permission.DISCOVER_BLUETOOTH|类名:HidHostProfile
方法 or 属性:connect(device: string): boolean;
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:HidHostProfile
方法 or 属性:disconnect(device: string): boolean;
权限:permission ohos.permission.DISCOVER_BLUETOOTH|类名:HidHostProfile
方法 or 属性:disconnect(device: string): boolean;
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:PanProfile
方法 or 属性:disconnect(device: string): boolean;
权限:permission ohos.permission.USE_BLUETOOTH|类名:PanProfile
方法 or 属性:disconnect(device: string): boolean;
权限:ohos.permission.USE_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:PanProfile
方法 or 属性:setTethering(enable: boolean): void;
权限:permission ohos.permission.DISCOVER_BLUETOOTH|类名:PanProfile
方法 or 属性:setTethering(enable: boolean): void;
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function init(): boolean;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function init(): boolean;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function uninit(): boolean;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function uninit(): boolean;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function readNdefTag(): Promise;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function readNdefTag(): Promise;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function readNdefTag(callback: AsyncCallback): void;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function readNdefTag(callback: AsyncCallback): void;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string): Promise;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string): Promise;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string, callback: AsyncCallback): void;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function writeNdefTag(data: string, callback: AsyncCallback): void;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function on(type: "notify", callback: Callback): void;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function on(type: "notify", callback: Callback): void;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|权限有变化|类名:connectedTag
方法 or 属性:function off(type: "notify", callback?:Callback): void;
权限:s ohos.permission.NFC_TAG|类名:connectedTag
方法 or 属性:function off(type: "notify", callback?:Callback): void;
权限:ohos.permission.NFC_TAG|@ohos.connectedTag.d.ts| +|删除(权限)|类名:tag
方法 or 属性:function getNfcATag(tagInfo: TagInfo): NfcATag
权限:ohos.permission.NFC_TAG|类名:tag
方法 or 属性:function getNfcATag(tagInfo: TagInfo): NfcATag
权限:N/A|@ohos.nfc.tag.d.ts| +|删除(权限)|类名:tag
方法 or 属性:function getNfcBTag(tagInfo: TagInfo): NfcBTag
权限:ohos.permission.NFC_TAG|类名:tag
方法 or 属性:function getNfcBTag(tagInfo: TagInfo): NfcBTag
权限:N/A|@ohos.nfc.tag.d.ts| +|删除(权限)|类名:tag
方法 or 属性:function getNfcFTag(tagInfo: TagInfo): NfcFTag
权限:ohos.permission.NFC_TAG|类名:tag
方法 or 属性:function getNfcFTag(tagInfo: TagInfo): NfcFTag
权限:N/A|@ohos.nfc.tag.d.ts| +|删除(权限)|类名:tag
方法 or 属性:function getNfcVTag(tagInfo: TagInfo): NfcVTag
权限:ohos.permission.NFC_TAG|类名:tag
方法 or 属性:function getNfcVTag(tagInfo: TagInfo): NfcVTag
权限:N/A|@ohos.nfc.tag.d.ts| +|删除(权限)|类名:NfcATag
方法 or 属性:getSak(): number;
权限:ohos.permission.NFC_TAG|类名:NfcATag
方法 or 属性:getSak(): number;
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:NfcATag
方法 or 属性:getAtqa(): number[];
权限:ohos.permission.NFC_TAG|类名:NfcATag
方法 or 属性:getAtqa(): number[];
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:NfcBTag
方法 or 属性:getRespAppData(): number[];
权限:ohos.permission.NFC_TAG|类名:NfcBTag
方法 or 属性:getRespAppData(): number[];
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:NfcBTag
方法 or 属性:getRespProtocol(): number[];
权限:ohos.permission.NFC_TAG|类名:NfcBTag
方法 or 属性:getRespProtocol(): number[];
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:NfcFTag
方法 or 属性:getSystemCode(): number[];
权限:ohos.permission.NFC_TAG|类名:NfcFTag
方法 or 属性:getSystemCode(): number[];
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:NfcFTag
方法 or 属性:getPmm(): number[];
权限:ohos.permission.NFC_TAG|类名:NfcFTag
方法 or 属性:getPmm(): number[];
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:NfcVTag
方法 or 属性:getResponseFlags(): number;
权限:ohos.permission.NFC_TAG|类名:NfcVTag
方法 or 属性:getResponseFlags(): number;
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:NfcVTag
方法 or 属性:getDsfId(): number;
权限:ohos.permission.NFC_TAG|类名:NfcVTag
方法 or 属性:getDsfId(): number;
权限:N/A|nfctech.d.ts| +|删除(权限)|类名:TagSession
方法 or 属性:isTagConnected(): boolean;
权限:ohos.permission.NFC_TAG|类名:TagSession
方法 or 属性:isTagConnected(): boolean;
权限:N/A|tagSession.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function hasDefaultNet(callback: AsyncCallback): void;
权限:N/A|类名:connection
方法 or 属性:function hasDefaultNet(callback: AsyncCallback): void;
权限:ohos.permission.GET_NETWORK_INFO|@ohos.net.connection.d.ts| +|新增(权限)|类名:connection
方法 or 属性:function hasDefaultNet(): Promise;
权限:N/A|类名:connection
方法 or 属性:function hasDefaultNet(): Promise;
权限:ohos.permission.GET_NETWORK_INFO|@ohos.net.connection.d.ts| +|函数有变化|类名:wifiManager
方法 or 属性:function disconnect(): boolean;
|类名:wifiManager
方法 or 属性:function disconnect(): void;
|@ohos.wifiManager.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-compiler-and-runtime.md new file mode 100644 index 0000000000000000000000000000000000000000..0e6027422483ae35d58d96d0f8597a41d08f5e16 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-compiler-and-runtime.md @@ -0,0 +1,25 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.taskpool
类名: taskpool|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Priority|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Priority
方法 or 属性: HIGH|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Priority
方法 or 属性: MEDIUM|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Priority
方法 or 属性: LOW|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Task|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Task
方法 or 属性: constructor(func: Function, ...args: unknown[]);|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Task
方法 or 属性: function: Function;|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: Task
方法 or 属性: arguments?: unknown[];|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: taskpool
方法 or 属性: function execute(func: Function, ...args: unknown[]): Promise;|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: taskpool
方法 or 属性: function execute(task: Task, priority?: Priority): Promise;|@ohos.taskpool.d.ts| +|新增|NA|模块名: ohos.taskpool
类名: taskpool
方法 or 属性: function cancel(task: Task): void;|@ohos.taskpool.d.ts| +|新增|NA|类名:URLParams
方法or属性:constructor(init?: string[][] \| Record \| string \| URLParams);|@ohos.url.d.ts| +|新增|NA|类名:URL
方法or属性:readonly params: URLParams;|@ohos.url.d.ts| +|废弃版本有变化|类名:URL
方法 or 属性:readonly searchParams: URLSearchParams;
废弃版本:N/A|类名:URL
方法 or 属性:readonly searchParams: URLSearchParams;
废弃版本:9
代替接口:ohos.url.URL.params |@ohos.url.d.ts| +|废弃版本有变化|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
废弃版本:N/A|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
废弃版本:9
代替接口:ohos.worker.workerPort |@ohos.worker.d.ts| +|起始版本有变化|类名:URL
方法 or 属性:static parseURL(url: string, base?: string \| URL): URL;
起始版本:N/A|类名:URL
方法 or 属性:static parseURL(url: string, base?: string \| URL): URL;
起始版本:9|@ohos.url.d.ts| +|起始版本有变化|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
起始版本:N/A|类名:worker
方法 or 属性:const parentPort: DedicatedWorkerGlobalScope;
起始版本:7|@ohos.worker.d.ts| +|起始版本有变化|类名:worker
方法 or 属性:const workerPort: ThreadWorkerGlobalScope;
起始版本:N/A|类名:worker
方法 or 属性:const workerPort: ThreadWorkerGlobalScope;
起始版本:9|@ohos.worker.d.ts| +|函数有变化|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
|@ohos.worker.d.ts| +|函数有变化|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
|类名:DedicatedWorkerGlobalScope
方法 or 属性:onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;
|@ohos.worker.d.ts| +|函数有变化|类名:Worker
方法 or 属性:onmessage?: (event: MessageEvent) => void;
|类名:Worker
方法 or 属性:onmessage?: (event: MessageEvent) => void;
|@ohos.worker.d.ts| +|函数有变化|类名:Worker
方法 or 属性:onmessageerror?: (event: MessageEvent) => void;
|类名:Worker
方法 or 属性:onmessageerror?: (event: MessageEvent) => void;
|@ohos.worker.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-distributed-data.md new file mode 100644 index 0000000000000000000000000000000000000000..eedbe69ffc7a24c473306da37db7d682faa81c75 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-distributed-data.md @@ -0,0 +1,309 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:distributedKVStore
方法or属性:function createKVManager(config: KVManagerConfig): KVManager;|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: relationalStore|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: relationalStore
方法 or 属性: type ValuesBucket = { [key:string]: ValueType \| Uint8Array \| null;}|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: relationalStore
方法 or 属性: function getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: relationalStore
方法 or 属性: function getRdbStore(context: Context, config: StoreConfig): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: relationalStore
方法 or 属性: function deleteRdbStore(context: Context, name: string, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: relationalStore
方法 or 属性: function deleteRdbStore(context: Context, name: string): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SyncMode|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SyncMode
方法 or 属性: SYNC_MODE_PUSH = 0|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SyncMode
方法 or 属性: SYNC_MODE_PULL = 1|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SubscribeType|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SubscribeType
方法 or 属性: SUBSCRIBE_TYPE_REMOTE = 0|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SecurityLevel|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SecurityLevel
方法 or 属性: S1 = 1|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SecurityLevel
方法 or 属性: S2 = 2|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SecurityLevel
方法 or 属性: S3 = 3|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: SecurityLevel
方法 or 属性: S4 = 4|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: insert(table: string, values: ValuesBucket, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: insert(table: string, values: ValuesBucket): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: batchInsert(table: string, values: Array, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: batchInsert(table: string, values: Array): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: update(values: ValuesBucket, predicates: RdbPredicates): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: delete(predicates: RdbPredicates, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: delete(predicates: RdbPredicates): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: delete(table: string, predicates: dataSharePredicates.DataSharePredicates): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: query(predicates: RdbPredicates, columns: Array, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: query(predicates: RdbPredicates, columns ?: Array): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns ?: Array): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: Array, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: Array): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: querySql(sql: string, bindArgs ?: Array): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: executeSql(sql: string, bindArgs ?: Array): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: beginTransaction(): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: commit(): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: rollBack(): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: backup(destName: string, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: backup(destName: string): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: restore(srcName: string, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: restore(srcName: string): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: setDistributedTables(tables: Array, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: setDistributedTables(tables: Array): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: obtainDistributedTableName(device: string, table: string, callback: AsyncCallback): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: obtainDistributedTableName(device: string, table: string): Promise;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback>): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: sync(mode: SyncMode, predicates: RdbPredicates): Promise>;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: on(event: 'dataChange', type: SubscribeType, observer: Callback>): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbStore
方法 or 属性: off(event: 'dataChange', type: SubscribeType, observer: Callback>): void;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: StoreConfig|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: StoreConfig
方法 or 属性: name: string;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: StoreConfig
方法 or 属性: securityLevel: SecurityLevel;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: StoreConfig
方法 or 属性: encrypt ?: boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: constructor(name: string)|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: inDevices(devices: Array): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: inAllDevices(): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: equalTo(field: string, value: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: notEqualTo(field: string, value: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: beginWrap(): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: endWrap(): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: or(): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: and(): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: contains(field: string, value: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: beginsWith(field: string, value: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: endsWith(field: string, value: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: isNull(field: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: isNotNull(field: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: like(field: string, value: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: glob(field: string, value: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: between(field: string, low: ValueType, high: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: notBetween(field: string, low: ValueType, high: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: greaterThan(field: string, value: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: lessThan(field: string, value: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: lessThanOrEqualTo(field: string, value: ValueType): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: orderByAsc(field: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: orderByDesc(field: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: distinct(): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: limitAs(value: number): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: offsetAs(rowOffset: number): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: groupBy(fields: Array): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: indexedBy(field: string): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: in(field: string, value: Array): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: RdbPredicates
方法 or 属性: notIn(field: string, value: Array): RdbPredicates;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: columnNames: Array;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: columnCount: number;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: rowCount: number;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: rowIndex: number;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: isAtFirstRow: boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: isAtLastRow: boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: isEnded: boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: isStarted: boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: isClosed: boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: getColumnIndex(columnName: string): number;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: getColumnName(columnIndex: number): string;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: goTo(offset: number): boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: goToRow(position: number): boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: goToFirstRow(): boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: goToLastRow(): boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: goToNextRow(): boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: goToPreviousRow(): boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: getBlob(columnIndex: number): Uint8Array;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: getString(columnIndex: number): string;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: getLong(columnIndex: number): number;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: getDouble(columnIndex: number): number;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: isColumnNull(columnIndex: number): boolean;|@ohos.data.relationalStore.d.ts| +|新增|NA|模块名: ohos.data.relationalStore
类名: ResultSet
方法 or 属性: close(): void;|@ohos.data.relationalStore.d.ts| +|model有变化|类名:dataSharePredicates
model:N/A|类名:dataSharePredicates
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
model:N/A|类名:DataSharePredicates
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:equalTo(field: string, value: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:equalTo(field: string, value: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:notEqualTo(field: string, value: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:notEqualTo(field: string, value: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:beginWrap(): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:beginWrap(): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:endWrap(): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:endWrap(): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:or(): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:or(): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:and(): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:and(): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:contains(field: string, value: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:contains(field: string, value: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:beginsWith(field: string, value: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:beginsWith(field: string, value: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:endsWith(field: string, value: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:endsWith(field: string, value: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:isNull(field: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:isNull(field: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:isNotNull(field: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:isNotNull(field: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:like(field: string, value: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:like(field: string, value: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:unlike(field: string, value: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:unlike(field: string, value: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:glob(field: string, value: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:glob(field: string, value: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:between(field: string, low: ValueType, high: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:between(field: string, low: ValueType, high: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:notBetween(field: string, low: ValueType, high: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:notBetween(field: string, low: ValueType, high: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:greaterThan(field: string, value: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:greaterThan(field: string, value: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:lessThan(field: string, value: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:lessThan(field: string, value: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:greaterThanOrEqualTo(field: string, value: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:greaterThanOrEqualTo(field: string, value: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:lessThanOrEqualTo(field: string, value: ValueType): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:lessThanOrEqualTo(field: string, value: ValueType): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:orderByAsc(field: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:orderByAsc(field: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:orderByDesc(field: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:orderByDesc(field: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:distinct(): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:distinct(): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:limit(total: number, offset: number): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:limit(total: number, offset: number): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:groupBy(fields: Array): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:groupBy(fields: Array): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:indexedBy(field: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:indexedBy(field: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:in(field: string, value: Array): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:in(field: string, value: Array): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:notIn(field: string, value: Array): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:notIn(field: string, value: Array): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:prefixKey(prefix: string): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:prefixKey(prefix: string): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataSharePredicates
方法 or 属性:inKeys(keys: Array): DataSharePredicates;
model:N/A|类名:DataSharePredicates
方法 or 属性:inKeys(keys: Array): DataSharePredicates;
model:@StageModelOnly|@ohos.data.dataSharePredicates.d.ts| +|model有变化|类名:DataType
model:N/A|类名:DataType
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataType
方法 or 属性:TYPE_NULL = 0
model:N/A|类名:DataType
方法 or 属性:TYPE_NULL = 0
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataType
方法 or 属性:TYPE_LONG = 1
model:N/A|类名:DataType
方法 or 属性:TYPE_LONG = 1
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataType
方法 or 属性:TYPE_DOUBLE = 2
model:N/A|类名:DataType
方法 or 属性:TYPE_DOUBLE = 2
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataType
方法 or 属性:TYPE_STRING = 3
model:N/A|类名:DataType
方法 or 属性:TYPE_STRING = 3
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataType
方法 or 属性:TYPE_BLOB = 4
model:N/A|类名:DataType
方法 or 属性:TYPE_BLOB = 4
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
model:N/A|类名:DataShareResultSet
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:columnNames: Array;
model:N/A|类名:DataShareResultSet
方法 or 属性:columnNames: Array;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:columnCount: number;
model:N/A|类名:DataShareResultSet
方法 or 属性:columnCount: number;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:rowCount: number;
model:N/A|类名:DataShareResultSet
方法 or 属性:rowCount: number;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:isClosed: boolean;
model:N/A|类名:DataShareResultSet
方法 or 属性:isClosed: boolean;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:goToFirstRow(): boolean;
model:N/A|类名:DataShareResultSet
方法 or 属性:goToFirstRow(): boolean;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:goToLastRow(): boolean;
model:N/A|类名:DataShareResultSet
方法 or 属性:goToLastRow(): boolean;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:goToNextRow(): boolean;
model:N/A|类名:DataShareResultSet
方法 or 属性:goToNextRow(): boolean;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:goToPreviousRow(): boolean;
model:N/A|类名:DataShareResultSet
方法 or 属性:goToPreviousRow(): boolean;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:goTo(offset: number): boolean;
model:N/A|类名:DataShareResultSet
方法 or 属性:goTo(offset: number): boolean;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:goToRow(position: number): boolean;
model:N/A|类名:DataShareResultSet
方法 or 属性:goToRow(position: number): boolean;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:getBlob(columnIndex: number): Uint8Array;
model:N/A|类名:DataShareResultSet
方法 or 属性:getBlob(columnIndex: number): Uint8Array;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:getString(columnIndex: number): string;
model:N/A|类名:DataShareResultSet
方法 or 属性:getString(columnIndex: number): string;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:getLong(columnIndex: number): number;
model:N/A|类名:DataShareResultSet
方法 or 属性:getLong(columnIndex: number): number;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:getDouble(columnIndex: number): number;
model:N/A|类名:DataShareResultSet
方法 or 属性:getDouble(columnIndex: number): number;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:close(): void;
model:N/A|类名:DataShareResultSet
方法 or 属性:close(): void;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:getColumnIndex(columnName: string): number;
model:N/A|类名:DataShareResultSet
方法 or 属性:getColumnIndex(columnName: string): number;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:getColumnName(columnIndex: number): string;
model:N/A|类名:DataShareResultSet
方法 or 属性:getColumnName(columnIndex: number): string;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:DataShareResultSet
方法 or 属性:getDataType(columnIndex: number): DataType;
model:N/A|类名:DataShareResultSet
方法 or 属性:getDataType(columnIndex: number): DataType;
model:@StageModelOnly|@ohos.data.DataShareResultSet.d.ts| +|model有变化|类名:SingleKVStore
方法 or 属性:putBatch(value: Array, callback: AsyncCallback): void;
model:N/A|类名:SingleKVStore
方法 or 属性:putBatch(value: Array, callback: AsyncCallback): void;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:SingleKVStore
方法 or 属性:putBatch(value: Array): Promise;
model:N/A|类名:SingleKVStore
方法 or 属性:putBatch(value: Array): Promise;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:SingleKVStore
方法 or 属性:delete(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback);
model:N/A|类名:SingleKVStore
方法 or 属性:delete(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback);
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:SingleKVStore
方法 or 属性:delete(predicates: dataSharePredicates.DataSharePredicates): Promise;
model:N/A|类名:SingleKVStore
方法 or 属性:delete(predicates: dataSharePredicates.DataSharePredicates): Promise;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:SingleKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
model:N/A|类名:SingleKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:SingleKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise;
model:N/A|类名:SingleKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
model:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise;
model:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
model:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|model有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
model:N/A|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
model:@StageModelOnly|@ohos.data.distributedKVStore.d.ts| +|访问级别有变化|类名:dataSharePredicates
访问级别:公开API|类名:dataSharePredicates
访问级别:系统API|@ohos.data.dataSharePredicates.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:type ValuesBucket = { [key:string]: ValueType \| Uint8Array \| null;
}
废弃版本:N/A|类名:rdb
方法 or 属性:type ValuesBucket = { [key:string]: ValueType \| Uint8Array \| null;
}
废弃版本:9
代替接口:ohos.data.relationalStore.ValuesBucket |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:rdb
方法 or 属性:function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.getRdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number): Promise;
废弃版本:N/A|类名:rdb
方法 or 属性:function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number): Promise;
废弃版本:9
代替接口:N/A|@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function deleteRdbStoreV9(context: Context, name: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:rdb
方法 or 属性:function deleteRdbStoreV9(context: Context, name: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.getRdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:rdb
方法 or 属性:function deleteRdbStoreV9(context: Context, name: string): Promise;
废弃版本:N/A|类名:rdb
方法 or 属性:function deleteRdbStoreV9(context: Context, name: string): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.getRdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SyncMode
废弃版本:N/A|类名:SyncMode
废弃版本:9
代替接口:ohos.data.relationalStore.SyncMode |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SyncMode
方法 or 属性:SYNC_MODE_PUSH = 0
废弃版本:N/A|类名:SyncMode
方法 or 属性:SYNC_MODE_PUSH = 0
废弃版本:9
代替接口:ohos.data.relationalStore.SyncMode.SYNC_MODE_PUSH |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SyncMode
方法 or 属性:SYNC_MODE_PULL = 1
废弃版本:N/A|类名:SyncMode
方法 or 属性:SYNC_MODE_PULL = 1
废弃版本:9
代替接口:ohos.data.relationalStore.SyncMode.SYNC_MODE_PULL |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SubscribeType
废弃版本:N/A|类名:SubscribeType
废弃版本:9
代替接口:ohos.data.relationalStore.SubscribeType |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_REMOTE = 0
废弃版本:N/A|类名:SubscribeType
方法 or 属性:SUBSCRIBE_TYPE_REMOTE = 0
废弃版本:9
代替接口:ohos.data.relationalStore.SubscribeType.SUBSCRIBE_TYPE_REMOTE |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SecurityLevel
废弃版本:N/A|类名:SecurityLevel
废弃版本:9
代替接口:ohos.data.relationalStore.SecurityLevel |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S1 = 1
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S1 = 1
废弃版本:9
代替接口:ohos.data.relationalStore.SubscribeType.SecurityLevel.S1 |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S2 = 2
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S2 = 2
废弃版本:9
代替接口:ohos.data.relationalStore.SubscribeType.SecurityLevel.S2 |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S3 = 3
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S3 = 3
废弃版本:9
代替接口:ohos.data.relationalStore.SubscribeType.SecurityLevel.S3 |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:SecurityLevel
方法 or 属性:S4 = 4
废弃版本:N/A|类名:SecurityLevel
方法 or 属性:S4 = 4
废弃版本:9
代替接口:ohos.data.relationalStore.SubscribeType.SecurityLevel.S4 |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
废弃版本:N/A|类名:RdbStoreV9
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:insert(table: string, values: ValuesBucket, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:insert(table: string, values: ValuesBucket, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.insert |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:insert(table: string, values: ValuesBucket): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:insert(table: string, values: ValuesBucket): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.insert |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:batchInsert(table: string, values: Array, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:batchInsert(table: string, values: Array, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.batchInsert |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:batchInsert(table: string, values: Array): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:batchInsert(table: string, values: Array): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.batchInsert |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.update |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.update |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.update |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.update |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.delete |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.delete |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.delete |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.delete |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns: Array, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns: Array, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.query |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns ?: Array): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns ?: Array): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.query |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.query |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns ?: Array): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns ?: Array): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.query |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:remoteQuery(device: string, table: string, predicates: RdbPredicatesV9, columns: Array, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:remoteQuery(device: string, table: string, predicates: RdbPredicatesV9, columns: Array, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.remoteQuery |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:remoteQuery(device: string, table: string, predicates: RdbPredicatesV9, columns: Array): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:remoteQuery(device: string, table: string, predicates: RdbPredicatesV9, columns: Array): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.remoteQuery |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.querySql |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:querySql(sql: string, bindArgs ?: Array): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:querySql(sql: string, bindArgs ?: Array): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.querySql |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.executeSql |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:executeSql(sql: string, bindArgs ?: Array): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:executeSql(sql: string, bindArgs ?: Array): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.executeSql |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:beginTransaction(): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:beginTransaction(): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.beginTransaction |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:commit(): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:commit(): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.commit |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:rollBack(): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:rollBack(): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.rollBack |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:backup(destName: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:backup(destName: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.backup |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:backup(destName: string): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:backup(destName: string): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.backup |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:restore(srcName: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:restore(srcName: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.restore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:restore(srcName: string): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:restore(srcName: string): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.restore |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:setDistributedTables(tables: Array, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:setDistributedTables(tables: Array, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.setDistributedTables |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:setDistributedTables(tables: Array): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:setDistributedTables(tables: Array): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.setDistributedTables |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:obtainDistributedTableName(device: string, table: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:obtainDistributedTableName(device: string, table: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:obtainDistributedTableName(device: string, table: string): Promise;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:obtainDistributedTableName(device: string, table: string): Promise;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:sync(mode: SyncMode, predicates: RdbPredicatesV9, callback: AsyncCallback>): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:sync(mode: SyncMode, predicates: RdbPredicatesV9, callback: AsyncCallback>): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.sync |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:sync(mode: SyncMode, predicates: RdbPredicatesV9): Promise>;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:sync(mode: SyncMode, predicates: RdbPredicatesV9): Promise>;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.sync |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:on(event: 'dataChange', type: SubscribeType, observer: Callback>): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:on(event: 'dataChange', type: SubscribeType, observer: Callback>): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.on |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbStoreV9
方法 or 属性:off(event: 'dataChange', type: SubscribeType, observer: Callback>): void;
废弃版本:N/A|类名:RdbStoreV9
方法 or 属性:off(event: 'dataChange', type: SubscribeType, observer: Callback>): void;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbStore.off |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:StoreConfigV9
废弃版本:N/A|类名:StoreConfigV9
废弃版本:9
代替接口:ohos.data.relationalStore.StoreConfig |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:StoreConfigV9
方法 or 属性:name: string;
废弃版本:N/A|类名:StoreConfigV9
方法 or 属性:name: string;
废弃版本:9
代替接口:ohos.data.relationalStore.StoreConfig.name |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:StoreConfigV9
方法 or 属性:securityLevel: SecurityLevel;
废弃版本:N/A|类名:StoreConfigV9
方法 or 属性:securityLevel: SecurityLevel;
废弃版本:9
代替接口:ohos.data.relationalStore.StoreConfig.securityLevel |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:StoreConfigV9
方法 or 属性:encrypt ?: boolean;
废弃版本:N/A|类名:StoreConfigV9
方法 or 属性:encrypt ?: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.StoreConfig.encrypt |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
废弃版本:N/A|类名:RdbPredicatesV9
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:constructor(name: string)
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:constructor(name: string)
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.constructor |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:inDevices(devices: Array): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:inDevices(devices: Array): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.inDevices |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:inAllDevices(): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:inAllDevices(): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.inAllDevices |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:equalTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:equalTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.equalTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:notEqualTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:notEqualTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.notEqualTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:beginWrap(): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:beginWrap(): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.beginWrap |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:endWrap(): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:endWrap(): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.endWrap |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:or(): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:or(): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.or |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:and(): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:and(): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.and |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:contains(field: string, value: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:contains(field: string, value: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.contains |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:beginsWith(field: string, value: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:beginsWith(field: string, value: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.beginsWith |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:endsWith(field: string, value: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:endsWith(field: string, value: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.endsWith |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:isNull(field: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:isNull(field: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.isNull |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:isNotNull(field: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:isNotNull(field: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.isNotNull |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:like(field: string, value: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:like(field: string, value: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.like |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:glob(field: string, value: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:glob(field: string, value: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.glob |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:between(field: string, low: ValueType, high: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:between(field: string, low: ValueType, high: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.between |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:notBetween(field: string, low: ValueType, high: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:notBetween(field: string, low: ValueType, high: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.notBetween |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:greaterThan(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:greaterThan(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.greaterThan |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:lessThan(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:lessThan(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.lessThan |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.greaterThanOrEqualTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:lessThanOrEqualTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:lessThanOrEqualTo(field: string, value: ValueType): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.lessThanOrEqualTo |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:orderByAsc(field: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:orderByAsc(field: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.orderByAsc |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:orderByDesc(field: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:orderByDesc(field: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.orderByDesc |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:distinct(): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:distinct(): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.distinct |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:limitAs(value: number): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:limitAs(value: number): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.limitAs |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:offsetAs(rowOffset: number): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:offsetAs(rowOffset: number): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.offsetAs |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:groupBy(fields: Array): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:groupBy(fields: Array): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.groupBy |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:indexedBy(field: string): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:indexedBy(field: string): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.indexedBy |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:in(field: string, value: Array): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:in(field: string, value: Array): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.in |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:RdbPredicatesV9
方法 or 属性:notIn(field: string, value: Array): RdbPredicatesV9;
废弃版本:N/A|类名:RdbPredicatesV9
方法 or 属性:notIn(field: string, value: Array): RdbPredicatesV9;
废弃版本:9
代替接口:ohos.data.relationalStore.RdbPredicates.notIn |@ohos.data.rdb.d.ts| +|废弃版本有变化|类名:ResultSetV9
废弃版本:N/A|类名:ResultSetV9
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:columnNames: Array;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:columnNames: Array;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.columnNames |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:columnCount: number;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:columnCount: number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.columnCount |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:rowCount: number;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:rowCount: number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.rowCount |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:rowIndex: number;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:rowIndex: number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.rowIndex |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:isAtFirstRow: boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:isAtFirstRow: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isAtFirstRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:isAtLastRow: boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:isAtLastRow: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isAtLastRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:isEnded: boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:isEnded: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isEnded |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:isStarted: boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:isStarted: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isStarted |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:isClosed: boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:isClosed: boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isClosed |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:getColumnIndex(columnName: string): number;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:getColumnIndex(columnName: string): number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getColumnIndex |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:getColumnName(columnIndex: number): string;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:getColumnName(columnIndex: number): string;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getColumnName |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:goTo(offset: number): boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:goTo(offset: number): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goTo |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:goToRow(position: number): boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:goToRow(position: number): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:goToFirstRow(): boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:goToFirstRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToFirstRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:goToLastRow(): boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:goToLastRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToLastRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:goToNextRow(): boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:goToNextRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToNextRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:goToPreviousRow(): boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:goToPreviousRow(): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.goToPreviousRow |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:getBlob(columnIndex: number): Uint8Array;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:getBlob(columnIndex: number): Uint8Array;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getBlob |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:getString(columnIndex: number): string;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:getString(columnIndex: number): string;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getString |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:getLong(columnIndex: number): number;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:getLong(columnIndex: number): number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getLong |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:getDouble(columnIndex: number): number;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:getDouble(columnIndex: number): number;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.getDouble |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:isColumnNull(columnIndex: number): boolean;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:isColumnNull(columnIndex: number): boolean;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.isColumnNull |resultSet.d.ts| +|废弃版本有变化|类名:ResultSetV9
方法 or 属性:close(): void;
废弃版本:N/A|类名:ResultSetV9
方法 or 属性:close(): void;
废弃版本:9
代替接口:ohos.data.relationalStore.ResultSet.close |resultSet.d.ts| +|起始版本有变化|类名:dataSharePredicates
起始版本:N/A|类名:dataSharePredicates
起始版本:9|@ohos.data.dataSharePredicates.d.ts| +|删除(权限)|类名:SubscribeType
权限:ohos.permission.DISTRIBUTED_DATASYNC|类名:SubscribeType
权限:N/A|@ohos.data.rdb.d.ts| +|访问级别有变化|类名:dataSharePredicates
访问级别:公开API|类名:dataSharePredicates
访问级别:系统API|@ohos.data.dataSharePredicates.d.ts| +|函数有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
|类名:DeviceKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise;
|@ohos.data.distributedKVStore.d.ts| +|函数有变化|类名:DeviceKVStore
方法 or 属性:getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise;
|类名:DeviceKVStore
方法 or 属性:getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
|@ohos.data.distributedKVStore.d.ts| +|函数有变化|类名:RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise;
|类名:RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9): Promise;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStoreV9
方法 or 属性:update(values: ValuesBucket, predicates: RdbPredicatesV9): Promise;
|类名:RdbStoreV9
方法 or 属性:update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
|类名:RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9): Promise;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStoreV9
方法 or 属性:delete(predicates: RdbPredicatesV9): Promise;
|类名:RdbStoreV9
方法 or 属性:delete(table: string, predicates: dataSharePredicates.DataSharePredicates): Promise;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns ?: Array): Promise;
|类名:RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns ?: Array): Promise;
|@ohos.data.rdb.d.ts| +|函数有变化|类名:RdbStoreV9
方法 or 属性:query(predicates: RdbPredicatesV9, columns ?: Array): Promise;
|类名:RdbStoreV9
方法 or 属性:query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns ?: Array): Promise;
|@ohos.data.rdb.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-file-management.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-file-management.md new file mode 100644 index 0000000000000000000000000000000000000000..336cb3ae8b57142e2ef563ae5a773e469ca4941b --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-file-management.md @@ -0,0 +1,323 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.file.environment
类名: Environment|@ohos.file.environment.d.ts| +|新增|NA|模块名: ohos.file.environment
类名: Environment
方法 or 属性: function getStorageDataDir(): Promise;|@ohos.file.environment.d.ts| +|新增|NA|模块名: ohos.file.environment
类名: Environment
方法 or 属性: function getStorageDataDir(callback: AsyncCallback): void;|@ohos.file.environment.d.ts| +|新增|NA|模块名: ohos.file.environment
类名: Environment
方法 or 属性: function getUserDataDir(): Promise;|@ohos.file.environment.d.ts| +|新增|NA|模块名: ohos.file.environment
类名: Environment
方法 or 属性: function getUserDataDir(callback: AsyncCallback): void;|@ohos.file.environment.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: fileAccess|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: fileAccess
方法 or 属性: function getFileAccessAbilityInfo(callback: AsyncCallback>): void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: fileAccess
方法 or 属性: function getFileAccessAbilityInfo(): Promise>;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: fileAccess
方法 or 属性: function createFileAccessHelper(context: Context): FileAccessHelper;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: fileAccess
方法 or 属性: function createFileAccessHelper(context: Context, wants: Array): FileAccessHelper;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: uri: string;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: fileName: string;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: mode: number;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: size: number;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: mtime: number;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: mimeType: string;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: listFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileInfo
方法 or 属性: scanFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileIterator|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileIterator
方法 or 属性: next(): {value: FileInfo, done: boolean}|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootInfo|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootInfo
方法 or 属性: deviceType: number;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootInfo
方法 or 属性: uri: string;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootInfo
方法 or 属性: displayName: string;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootInfo
方法 or 属性: deviceFlags: number;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootInfo
方法 or 属性: listFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootInfo
方法 or 属性: scanFile(filter?: Filter): FileIterator;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootIterator|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: RootIterator
方法 or 属性: next(): {value: RootInfo, done: boolean}|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: OPENFLAGS|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: OPENFLAGS
方法 or 属性: READ = 0o0|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: OPENFLAGS
方法 or 属性: WRITE = 0o1|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: OPENFLAGS
方法 or 属性: WRITE_READ = 0o2|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: openFile(uri: string, flags: OPENFLAGS) : Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: createFile(uri: string, displayName: string) : Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: createFile(uri: string, displayName: string, callback: AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: mkDir(parentUri: string, displayName: string) : Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: mkDir(parentUri: string, displayName: string, callback: AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: delete(uri: string) : Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: delete(uri: string, callback: AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: move(sourceFile: string, destFile: string) : Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: move(sourceFile: string, destFile: string, callback: AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: rename(uri: string, displayName: string) : Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: rename(uri: string, displayName: string, callback: AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: access(sourceFileUri: string) : Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: access(sourceFileUri: string, callback: AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: getRoots(): Promise;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileAccess
类名: FileAccessHelper
方法 or 属性: getRoots(callback:AsyncCallback) : void;|@ohos.file.fileAccess.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: fileExtensionInfo|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType
方法 or 属性: DEVICE_LOCAL_DISK = 1|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType
方法 or 属性: DEVICE_SHARED_DISK|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType
方法 or 属性: DEVICE_SHARED_TERMINAL|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType
方法 or 属性: DEVICE_NETWORK_NEIGHBORHOODS|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType
方法 or 属性: DEVICE_EXTERNAL_MTP|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType
方法 or 属性: DEVICE_EXTERNAL_USB|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceType
方法 or 属性: DEVICE_EXTERNAL_CLOUD|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceFlag|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceFlag
方法 or 属性: const SUPPORTS_READ = 0b1;|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DeviceFlag
方法 or 属性: const SUPPORTS_WRITE = 0b10;|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DocumentFlag|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DocumentFlag
方法 or 属性: const REPRESENTS_FILE = 0b1;|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DocumentFlag
方法 or 属性: const REPRESENTS_DIR = 0b10;|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DocumentFlag
方法 or 属性: const SUPPORTS_READ = 0b100;|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileExtensionInfo
类名: DocumentFlag
方法 or 属性: const SUPPORTS_WRITE = 0b1000;|@ohos.file.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.file.fileuri
类名: fileUri|@ohos.file.fileuri.d.ts| +|新增|NA|模块名: ohos.file.fileuri
类名: fileUri
方法 or 属性: function getUriFromPath(path: string): string;|@ohos.file.fileuri.d.ts| +|新增|NA|类名:fileIo
方法or属性:function access(path: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function access(path: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function accessSync(path: string): boolean;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function close(file: number \| File): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function close(file: number \| File, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function closeSync(fd: number \| File): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function createStream(path: string, mode: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function createStream(path: string, mode: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function createStreamSync(path: string, mode: string): Stream;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fdatasync(fd: number): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fdatasync(fd: number, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fdatasyncSync(fd: number): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fdopenStream(fd: number, mode: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fdopenStream(fd: number, mode: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fdopenStreamSync(fd: number, mode: string): Stream;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fsync(fd: number): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fsync(fd: number, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function fsyncSync(fd: number): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function lstat(path: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function lstat(path: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function lstatSync(path: string): Stat;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function mkdir(path: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function mkdir(path: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function mkdirSync(path: string): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function mkdtemp(prefix: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function mkdtemp(prefix: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function mkdtempSync(prefix: string): string;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function readText(filePath: string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function readText(filePath: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function readText(filePath: string, options: {
offset?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function readTextSync(filePath: string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): string;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function rename(oldPath: string, newPath: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function rename(oldPath: string, newPath: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function renameSync(oldPath: string, newPath: string): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function rmdir(path: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function rmdir(path: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function rmdirSync(path: string): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function symlink(target: string, srcPath: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function symlink(target: string, srcPath: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function symlinkSync(target: string, srcPath: string): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function unlink(path: string): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function unlink(path: string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:fileIo
方法or属性:function unlinkSync(path: string): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stat
方法or属性:readonly ino: bigint;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:close(): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:close(): Promise;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:close(callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:close(callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:closeSync(): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:closeSync(): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:flush(): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:flush(): Promise;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:flush(callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:flush(callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:flushSync(): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:flushSync(): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:write(buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:write(buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): Promise;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:write(buffer: ArrayBuffer \| string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:write(buffer: ArrayBuffer \| string, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:write(buffer: ArrayBuffer \| string, options: {
offset?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:write(buffer: ArrayBuffer \| string, options: {
offset?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:writeSync(buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): number;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:writeSync(buffer: ArrayBuffer \| string, options?: {
offset?: number;
length?: number;
encoding?: string;
}): number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:read(buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
}): Promise;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:read(buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
}): Promise;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:read(buffer: ArrayBuffer, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:read(buffer: ArrayBuffer, options: {
offset?: number;
length?: number;
}, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:read(buffer: ArrayBuffer, options: {
offset?: number;
length?: number;
}, callback: AsyncCallback): void;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stream
方法 or 属性:readSync(buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
}): number;|@ohos.file.fs.d.ts| +|新增|NA|类名:Stream
方法or属性:readSync(buffer: ArrayBuffer, options?: {
offset?: number;
length?: number;
}): number;|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.hash
类名: Hash|@ohos.file.hash.d.ts| +|新增|NA|模块名: ohos.file.hash
类名: Hash
方法 or 属性: function hash(path: string, algorithm: string): Promise;|@ohos.file.hash.d.ts| +|新增|NA|模块名: ohos.file.hash
类名: Hash
方法 or 属性: function hash(path: string, algorithm: string, callback: AsyncCallback): void;|@ohos.file.hash.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: securityLabel|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: dataLevel
方法 or 属性: type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: securityLabel
方法 or 属性: function setSecurityLabel(path: string, type: dataLevel): Promise;|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: securityLabel
方法 or 属性: function setSecurityLabel(path: string, type: dataLevel, callback: AsyncCallback): void;|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: securityLabel
方法 or 属性: function setSecurityLabelSync(path: string, type: dataLevel): void;|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: securityLabel
方法 or 属性: function getSecurityLabel(path: string): Promise;|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: securityLabel
方法 or 属性: function getSecurityLabel(path: string, callback: AsyncCallback): void;|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.securityLabel
类名: securityLabel
方法 or 属性: function getSecurityLabelSync(path: string): string;|@ohos.file.securityLabel.d.ts| +|新增|NA|模块名: ohos.file.statvfs
类名: Statfs|@ohos.file.statvfs.d.ts| +|新增|NA|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性: function getFreeSize(path: string): Promise;|@ohos.file.statvfs.d.ts| +|新增|NA|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性: function getFreeSize(path: string, callback: AsyncCallback): void;|@ohos.file.statvfs.d.ts| +|新增|NA|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性: function getTotalSize(path: string): Promise;|@ohos.file.statvfs.d.ts| +|新增|NA|模块名: ohos.file.statvfs
类名: Statfs
方法 or 属性: function getTotalSize(path: string, callback: AsyncCallback): void;|@ohos.file.statvfs.d.ts| +|新增|NA|模块名: ohos.fileshare
类名: fileShare|@ohos.fileshare.d.ts| +|新增|NA|模块名: ohos.fileshare
类名: fileShare
方法 or 属性: function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags, callback: AsyncCallback): void;|@ohos.fileshare.d.ts| +|新增|NA|模块名: ohos.fileshare
类名: fileShare
方法 or 属性: function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise;|@ohos.fileshare.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: fileAccess|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: fileAccess
方法 or 属性:function getFileAccessAbilityInfo(callback: AsyncCallback>): void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: fileAccess
方法 or 属性:function getFileAccessAbilityInfo(): Promise>;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: fileAccess
方法 or 属性:function createFileAccessHelper(context: Context): FileAccessHelper;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: fileAccess
方法 or 属性:function createFileAccessHelper(context: Context, wants: Array): FileAccessHelper;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:uri: string;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:fileName: string;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:mode: number;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:size: number;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:mtime: number;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:mimeType: string;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:listFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileInfo
方法 or 属性:scanFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileIterator|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileIterator
方法 or 属性:next(): {value: FileInfo, done: boolean}|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootInfo|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootInfo
方法 or 属性:deviceType: number;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootInfo
方法 or 属性:uri: string;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootInfo
方法 or 属性:displayName: string;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootInfo
方法 or 属性:deviceFlags: number;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootInfo
方法 or 属性:listFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootInfo
方法 or 属性:scanFile(filter?: Filter): FileIterator;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootIterator|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: RootIterator
方法 or 属性:next(): {value: RootInfo, done: boolean}|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: OPENFLAGS|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: OPENFLAGS
方法 or 属性:READ = 0o0|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: OPENFLAGS
方法 or 属性:WRITE = 0o1|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: OPENFLAGS
方法 or 属性:WRITE_READ = 0o2|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:openFile(uri: string, flags: OPENFLAGS) : Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:createFile(uri: string, displayName: string) : Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:createFile(uri: string, displayName: string, callback: AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:mkDir(parentUri: string, displayName: string) : Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:delete(uri: string) : Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:delete(uri: string, callback: AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:move(sourceFile: string, destFile: string) : Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:move(sourceFile: string, destFile: string, callback: AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:rename(uri: string, displayName: string) : Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:rename(uri: string, displayName: string, callback: AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:access(sourceFileUri: string) : Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:access(sourceFileUri: string, callback: AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:getRoots(): Promise;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.data.fileAccess
类名: FileAccessHelper
方法 or 属性:getRoots(callback:AsyncCallback) : void;|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.environment
类名: Environment|NA|@ohos.environment.d.ts| +|删除|模块名: ohos.environment
类名: Environment
方法 or 属性:function getStorageDataDir(callback: AsyncCallback): void;|NA|@ohos.environment.d.ts| +|删除|模块名: ohos.environment
类名: Environment
方法 or 属性:function getStorageDataDir(): Promise;|NA|@ohos.environment.d.ts| +|删除|模块名: ohos.environment
类名: Environment
方法 or 属性:function getUserDataDir(callback: AsyncCallback): void;|NA|@ohos.environment.d.ts| +|删除|模块名: ohos.environment
类名: Environment
方法 or 属性:function getUserDataDir(): Promise;|NA|@ohos.environment.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: fileExtensionInfo|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType
方法 or 属性:DEVICE_LOCAL_DISK = 1|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType
方法 or 属性:DEVICE_SHARED_DISK|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType
方法 or 属性:DEVICE_SHARED_TERMINAL|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType
方法 or 属性:DEVICE_NETWORK_NEIGHBORHOODS|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType
方法 or 属性:DEVICE_EXTERNAL_MTP|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType
方法 or 属性:DEVICE_EXTERNAL_USB|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceType
方法 or 属性:DEVICE_EXTERNAL_CLOUD|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceFlag|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceFlag
方法 or 属性:const SUPPORTS_READ = 0b1;|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DeviceFlag
方法 or 属性:const SUPPORTS_WRITE = 0b10;|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DocumentFlag|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DocumentFlag
方法 or 属性:const REPRESENTS_FILE = 0b1;|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DocumentFlag
方法 or 属性:const REPRESENTS_DIR = 0b10;|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DocumentFlag
方法 or 属性:const SUPPORTS_READ = 0b100;|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.fileExtensionInfo
类名: DocumentFlag
方法 or 属性:const SUPPORTS_WRITE = 0b1000;|NA|@ohos.fileExtensionInfo.d.ts| +|删除|模块名: ohos.securityLabel
类名: securityLabel|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: dataLevel
方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s3'\|'s4';|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: securityLabel
方法 or 属性:function setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback): void;|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: securityLabel
方法 or 属性:function setSecurityLabel(path:string, type:dataLevel): Promise;|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: securityLabel
方法 or 属性:function setSecurityLabelSync(path:string, type:dataLevel): void;|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: securityLabel
方法 or 属性:function getSecurityLabel(path:string, callback: AsyncCallback): void;|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: securityLabel
方法 or 属性:function getSecurityLabel(path:string): Promise;|NA|@ohos.securityLabel.d.ts| +|删除|模块名: ohos.securityLabel
类名: securityLabel
方法 or 属性:function getSecurityLabelSync(path:string): string;|NA|@ohos.securityLabel.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function access(path: string, mode?: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function access(path: string, mode?: number): Promise;
废弃版本:9
代替接口:ohos.file.fs.access |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function access(path: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function access(path: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function access(path: string, mode: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function access(path: string, mode: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function accessSync(path: string, mode?: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function accessSync(path: string, mode?: number): void;
废弃版本:9
代替接口:ohos.file.fs.accessSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function close(fd: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function close(fd: number): Promise;
废弃版本:9
代替接口:ohos.file.fs.close |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function close(fd: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function close(fd: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function closeSync(fd: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function closeSync(fd: number): void;
废弃版本:9
代替接口:ohos.file.fs.closeSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise;
废弃版本:9
代替接口:ohos.file.fs.copyFile |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function copyFileSync(src: string \| number, dest: string \| number, mode?: number): void;
废弃版本:9
代替接口:ohos.file.fs.copyFileSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function createStream(path: string, mode: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function createStream(path: string, mode: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.createStream |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function createStream(path: string, mode: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function createStream(path: string, mode: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function createStreamSync(path: string, mode: string): Stream;
废弃版本:N/A|类名:fileIO
方法 or 属性:function createStreamSync(path: string, mode: string): Stream;
废弃版本:9
代替接口:ohos.file.fs.createStreamSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function chown(path: string, uid: number, gid: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function chown(path: string, uid: number, gid: number): Promise;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function chown(path: string, uid: number, gid: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function chown(path: string, uid: number, gid: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function chownSync(path: string, uid: number, gid: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function chownSync(path: string, uid: number, gid: number): void;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function chmod(path: string, mode: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function chmod(path: string, mode: number): Promise;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function chmod(path: string, mode: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function chmod(path: string, mode: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function chmodSync(path: string, mode: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function chmodSync(path: string, mode: number): void;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fsync(fd: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fsync(fd: number): Promise;
废弃版本:9
代替接口:ohos.file.fs.fsync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fsync(fd: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fsync(fd: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fsyncSync(fd: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fsyncSync(fd: number): void;
废弃版本:9
代替接口:ohos.file.fs.fsyncSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fdatasync(fd: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fdatasync(fd: number): Promise;
废弃版本:9
代替接口:ohos.file.fs.fdatasync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fdatasync(fd: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fdatasync(fd: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fdatasyncSync(fd: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fdatasyncSync(fd: number): void;
废弃版本:9
代替接口:ohos.file.fs.fdatasyncSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fchown(fd: number, uid: number, gid: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fchown(fd: number, uid: number, gid: number): Promise;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fchownSync(fd: number, uid: number, gid: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fchownSync(fd: number, uid: number, gid: number): void;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fchmod(fd: number, mode: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fchmod(fd: number, mode: number): Promise;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fchmod(fd: number, mode: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fchmod(fd: number, mode: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fchmodSync(fd: number, mode: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fchmodSync(fd: number, mode: number): void;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fdopenStream(fd: number, mode: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fdopenStream(fd: number, mode: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.fdopenStream |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fdopenStream(fd: number, mode: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fdopenStream(fd: number, mode: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function fdopenStreamSync(fd: number, mode: string): Stream;
废弃版本:N/A|类名:fileIO
方法 or 属性:function fdopenStreamSync(fd: number, mode: string): Stream;
废弃版本:9
代替接口:ohos.file.fs.fdopenStreamSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function hash(path: string, algorithm: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function hash(path: string, algorithm: string): Promise;
废弃版本:9
代替接口:ohos.file.hash.hash |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function hash(path: string, algorithm: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function hash(path: string, algorithm: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function lchown(path: string, uid: number, gid: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function lchown(path: string, uid: number, gid: number): Promise;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function lchown(path: string, uid: number, gid: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function lchown(path: string, uid: number, gid: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function lchownSync(path: string, uid: number, gid: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function lchownSync(path: string, uid: number, gid: number): void;
废弃版本:9
代替接口:N/A|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function lstat(path: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function lstat(path: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.lstat |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function lstat(path: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function lstat(path: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function lstatSync(path: string): Stat;
废弃版本:N/A|类名:fileIO
方法 or 属性:function lstatSync(path: string): Stat;
废弃版本:9
代替接口:ohos.file.fs.lstatSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function mkdir(path: string, mode?: number): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function mkdir(path: string, mode?: number): Promise;
废弃版本:9
代替接口:ohos.file.fs.mkdir |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function mkdir(path: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function mkdir(path: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function mkdir(path: string, mode: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function mkdir(path: string, mode: number, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function mkdirSync(path: string, mode?: number): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function mkdirSync(path: string, mode?: number): void;
废弃版本:9
代替接口:ohos.file.fs.mkdirSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function mkdtemp(prefix: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function mkdtemp(prefix: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.mkdtemp |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function mkdtemp(prefix: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function mkdtemp(prefix: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function mkdtempSync(prefix: string): string;
废弃版本:N/A|类名:fileIO
方法 or 属性:function mkdtempSync(prefix: string): string;
废弃版本:9
代替接口:ohos.file.fs.mkdtempSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function readText(filePath: string, options?: {
position?: number;
length?: number;
encoding?: string;
}): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function readText(filePath: string, options?: {
position?: number;
length?: number;
encoding?: string;
}): Promise;
废弃版本:9
代替接口:ohos.file.fs.readText |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function readText(filePath: string, options: {
position?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function readText(filePath: string, options: {
position?: number;
length?: number;
encoding?: string;
}, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function readTextSync(filePath: string, options?: {
position?: number;
length?: number;
encoding?: string;
}): string;
废弃版本:N/A|类名:fileIO
方法 or 属性:function readTextSync(filePath: string, options?: {
position?: number;
length?: number;
encoding?: string;
}): string;
废弃版本:9
代替接口:ohos.file.fs.readTextSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function rename(oldPath: string, newPath: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function rename(oldPath: string, newPath: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.rename |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function rename(oldPath: string, newPath: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function rename(oldPath: string, newPath: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function renameSync(oldPath: string, newPath: string): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function renameSync(oldPath: string, newPath: string): void;
废弃版本:9
代替接口:ohos.file.fs.renameSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function rmdir(path: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function rmdir(path: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.rmdir |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function rmdir(path: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function rmdir(path: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function rmdirSync(path: string): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function rmdirSync(path: string): void;
废弃版本:9
代替接口:ohos.file.fs.rmdirSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function symlink(target: string, srcPath: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function symlink(target: string, srcPath: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.symlink |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function symlink(target: string, srcPath: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function symlink(target: string, srcPath: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function symlinkSync(target: string, srcPath: string): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function symlinkSync(target: string, srcPath: string): void;
废弃版本:9
代替接口:ohos.file.fs.symlinkSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function unlink(path: string): Promise;
废弃版本:N/A|类名:fileIO
方法 or 属性:function unlink(path: string): Promise;
废弃版本:9
代替接口:ohos.file.fs.unlink |@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function unlink(path: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function unlink(path: string, callback: AsyncCallback): void;
废弃版本:9|@ohos.fileio.d.ts| +|废弃版本有变化|类名:fileIO
方法 or 属性:function unlinkSync(path: string): void;
废弃版本:N/A|类名:fileIO
方法 or 属性:function unlinkSync(path: string): void;
废弃版本:9
代替接口:ohos.file.fs.unlinkSync |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Stream
废弃版本:N/A|类名:Stream
废弃版本:9
代替接口:ohos.file.fs.Stream |@ohos.fileio.d.ts| +|废弃版本有变化|类名:Statfs
方法 or 属性:function getFreeBytes(path: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:Statfs
方法 or 属性:function getFreeBytes(path: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.file.statvfs.getFreeSize |@ohos.statfs.d.ts| +|废弃版本有变化|类名:Statfs
方法 or 属性:function getFreeBytes(path: string): Promise;
废弃版本:N/A|类名:Statfs
方法 or 属性:function getFreeBytes(path: string): Promise;
废弃版本:9|@ohos.statfs.d.ts| +|废弃版本有变化|类名:Statfs
方法 or 属性:function getTotalBytes(path: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:Statfs
方法 or 属性:function getTotalBytes(path: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.file.statvfs.getTotalSize |@ohos.statfs.d.ts| +|废弃版本有变化|类名:Statfs
方法 or 属性:function getTotalBytes(path: string): Promise;
废弃版本:N/A|类名:Statfs
方法 or 属性:function getTotalBytes(path: string): Promise;
废弃版本:9|@ohos.statfs.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-geolocation.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-geolocation.md new file mode 100644 index 0000000000000000000000000000000000000000..4ac1b1ed65a87a320954c29a5d0be1a4eecebc63 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-geolocation.md @@ -0,0 +1,185 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:geoLocationManager
方法or属性:function on(type: 'locationChange', request: LocationRequest, callback: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function off(type: 'locationChange', callback?: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function on(type: 'locationEnabledChange', callback: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function off(type: 'locationEnabledChange', callback?: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function on(type: 'cachedGnssLocationsChange', request: CachedGnssLocationsRequest, callback: Callback>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function off(type: 'cachedGnssLocationsChange', callback?: Callback>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function on(type: 'satelliteStatusChange', callback: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function off(type: 'satelliteStatusChange', callback?: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function on(type: 'nmeaMessage', callback: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function off(type: 'nmeaMessage', callback?: Callback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function on(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function off(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getCurrentLocation(callback: AsyncCallback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getCurrentLocation(request?: CurrentLocationRequest): Promise;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getLastLocation(): Location;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function isLocationEnabled(): boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function disableLocation(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise>;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback>): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getAddressesFromLocationName(request: GeoCodeRequest): Promise>;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function isGeocoderAvailable(): boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getCachedGnssLocationsSize(callback: AsyncCallback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function getCachedGnssLocationsSize(): Promise;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function flushCachedGnssLocations(callback: AsyncCallback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function flushCachedGnssLocations(): Promise;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function sendCommand(command: LocationCommand, callback: AsyncCallback): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function sendCommand(command: LocationCommand): Promise;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function enableLocationMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function disableLocationMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function setMockedLocations(config: LocationMockConfig): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function enableReverseGeocodingMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function disableReverseGeocodingMock(): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function setReverseGeocodingMockInfo(mockInfos: Array): void;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function isLocationPrivacyConfirmed(type: LocationPrivacyType): boolean;|@ohos.geoLocationManager.d.ts| +|新增|NA|类名:geoLocationManager
方法or属性:function setLocationPrivacyConfirmStatus(type: LocationPrivacyType, isConfirmed: boolean): void;|@ohos.geoLocationManager.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法 or 属性:function enableLocation(callback: AsyncCallback): void;|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法 or 属性:function enableLocation(): Promise;|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法 or 属性:function disableLocation(callback: AsyncCallback): void;|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法 or 属性:function disableLocation(): Promise;|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geoLocationManager
类名:GeofenceRequest
方法 or 属性:priority: LocationRequestPriority;|NA|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:ReverseGeocodingMockInfo
方法 or 属性:location: ReverseGeoCodeRequest;
访问级别:公开API|类名:ReverseGeocodingMockInfo
方法 or 属性:location: ReverseGeoCodeRequest;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:ReverseGeocodingMockInfo
方法 or 属性:geoAddress: GeoAddress;
访问级别:公开API|类名:ReverseGeocodingMockInfo
方法 or 属性:geoAddress: GeoAddress;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationMockConfig
方法 or 属性:timeInterval: number;
访问级别:公开API|类名:LocationMockConfig
方法 or 属性:timeInterval: number;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationMockConfig
方法 or 属性:locations: Array;
访问级别:公开API|类名:LocationMockConfig
方法 or 属性:locations: Array;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:GeoAddress
方法 or 属性:isFromMock?: Boolean;
访问级别:公开API|类名:GeoAddress
方法 or 属性:isFromMock?: Boolean;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:Location
方法 or 属性:isFromMock?: Boolean;
访问级别:公开API|类名:Location
方法 or 属性:isFromMock?: Boolean;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
访问级别:公开API|类名:LocationPrivacyType
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
方法 or 属性:OTHERS = 0
访问级别:公开API|类名:LocationPrivacyType
方法 or 属性:OTHERS = 0
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
方法 or 属性:STARTUP
访问级别:公开API|类名:LocationPrivacyType
方法 or 属性:STARTUP
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
方法 or 属性:CORE_LOCATION
访问级别:公开API|类名:LocationPrivacyType
方法 or 属性:CORE_LOCATION
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|废弃版本有变化|类名:geolocation
废弃版本:N/A|类名:geolocation
废弃版本:9
代替接口:N/A|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function on(type: 'locationChange', request: LocationRequest, callback: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function on(type: 'locationChange', request: LocationRequest, callback: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.on|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function off(type: 'locationChange', callback?: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function off(type: 'locationChange', callback?: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.off|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function on(type: 'locationServiceState', callback: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function on(type: 'locationServiceState', callback: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.on|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function off(type: 'locationServiceState', callback?: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function off(type: 'locationServiceState', callback?: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.off|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback>): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback>): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.on|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function off(type: 'cachedGnssLocationsReporting', callback?: Callback>): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function off(type: 'cachedGnssLocationsReporting', callback?: Callback>): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.off|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function on(type: 'gnssStatusChange', callback: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function on(type: 'gnssStatusChange', callback: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.on|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function off(type: 'gnssStatusChange', callback?: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function off(type: 'gnssStatusChange', callback?: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.off|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function on(type: 'nmeaMessageChange', callback: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function on(type: 'nmeaMessageChange', callback: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.on|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function off(type: 'nmeaMessageChange', callback?: Callback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function off(type: 'nmeaMessageChange', callback?: Callback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.off|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.on|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.off|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.getCurrentLocation |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getCurrentLocation(callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getCurrentLocation(callback: AsyncCallback): void;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getCurrentLocation(request?: CurrentLocationRequest): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getCurrentLocation(request?: CurrentLocationRequest): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getLastLocation(callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getLastLocation(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.getLastLocation |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getLastLocation(): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getLastLocation(): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function isLocationEnabled(callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function isLocationEnabled(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.isLocationEnabled |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function isLocationEnabled(): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function isLocationEnabled(): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function requestEnableLocation(callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function requestEnableLocation(callback: AsyncCallback): void;
废弃版本:9
代替接口:N/A|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function requestEnableLocation(): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function requestEnableLocation(): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback>): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback>): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.getAddressesFromLocation |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise>;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise>;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback>): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback>): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.getAddressesFromLocationName |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getAddressesFromLocationName(request: GeoCodeRequest): Promise>;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getAddressesFromLocationName(request: GeoCodeRequest): Promise>;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function isGeoServiceAvailable(callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function isGeoServiceAvailable(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.isGeocoderAvailable |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function isGeoServiceAvailable(): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function isGeoServiceAvailable(): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getCachedGnssLocationsSize(callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getCachedGnssLocationsSize(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.getCachedGnssLocationsSize |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function getCachedGnssLocationsSize(): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function getCachedGnssLocationsSize(): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function flushCachedGnssLocations(callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function flushCachedGnssLocations(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.flushCachedGnssLocations |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function flushCachedGnssLocations(): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function flushCachedGnssLocations(): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function sendCommand(command: LocationCommand, callback: AsyncCallback): void;
废弃版本:N/A|类名:geolocation
方法 or 属性:function sendCommand(command: LocationCommand, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.sendCommand |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:geolocation
方法 or 属性:function sendCommand(command: LocationCommand): Promise;
废弃版本:N/A|类名:geolocation
方法 or 属性:function sendCommand(command: LocationCommand): Promise;
废弃版本:9|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:SatelliteStatusInfo
废弃版本:N/A|类名:SatelliteStatusInfo
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.SatelliteStatusInfo |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:CachedGnssLocationsRequest
废弃版本:N/A|类名:CachedGnssLocationsRequest
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.CachedGnssLocationsRequest |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:GeofenceRequest
废弃版本:N/A|类名:GeofenceRequest
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.GeofenceRequest |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:Geofence
废弃版本:N/A|类名:Geofence
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.Geofence |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:ReverseGeoCodeRequest
废弃版本:N/A|类名:ReverseGeoCodeRequest
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.ReverseGeoCodeRequest |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:GeoCodeRequest
废弃版本:N/A|类名:GeoCodeRequest
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.GeoCodeRequest |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:GeoAddress
废弃版本:N/A|类名:GeoAddress
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.GeoAddress |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:LocationRequest
废弃版本:N/A|类名:LocationRequest
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.LocationRequest |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:CurrentLocationRequest
废弃版本:N/A|类名:CurrentLocationRequest
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.CurrentLocationRequest |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:Location
废弃版本:N/A|类名:Location
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.Location |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:LocationRequestPriority
废弃版本:N/A|类名:LocationRequestPriority
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.LocationRequestPriority |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:LocationRequestScenario
废弃版本:N/A|类名:LocationRequestScenario
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.LocationRequestScenario |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:GeoLocationErrorCode
废弃版本:N/A|类名:GeoLocationErrorCode
废弃版本:9
代替接口:N/A|@ohos.geolocation.d.ts| +|废弃版本有变化|类名:LocationPrivacyType
废弃版本:N/A|类名:LocationPrivacyType
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.LocationPrivacyType |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:LocationCommand
废弃版本:N/A|类名:LocationCommand
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.LocationCommand |@ohos.geolocation.d.ts| +|废弃版本有变化|类名:GeolocationResponse
废弃版本:N/A|类名:GeolocationResponse
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.Location |@system.geolocation.d.ts| +|废弃版本有变化|类名:GetLocationOption
废弃版本:N/A|类名:GetLocationOption
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.CurrentLocationRequest |@system.geolocation.d.ts| +|废弃版本有变化|类名:GetLocationTypeResponse
废弃版本:N/A|类名:GetLocationTypeResponse
废弃版本:9
代替接口:N/A|@system.geolocation.d.ts| +|废弃版本有变化|类名:GetLocationTypeOption
废弃版本:N/A|类名:GetLocationTypeOption
废弃版本:9
代替接口:N/A|@system.geolocation.d.ts| +|废弃版本有变化|类名:SubscribeLocationOption
废弃版本:N/A|类名:SubscribeLocationOption
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.LocationRequest |@system.geolocation.d.ts| +|废弃版本有变化|类名:Geolocation
废弃版本:N/A|类名:Geolocation
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager |@system.geolocation.d.ts| +|废弃版本有变化|类名:Geolocation
方法 or 属性:static getLocation(options?: GetLocationOption): void;
废弃版本:N/A|类名:Geolocation
方法 or 属性:static getLocation(options?: GetLocationOption): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.getCurrentLocation |@system.geolocation.d.ts| +|废弃版本有变化|类名:Geolocation
方法 or 属性:static getLocationType(options?: GetLocationTypeOption): void;
废弃版本:N/A|类名:Geolocation
方法 or 属性:static getLocationType(options?: GetLocationTypeOption): void;
废弃版本:9
代替接口:N/A|@system.geolocation.d.ts| +|废弃版本有变化|类名:Geolocation
方法 or 属性:static subscribe(options: SubscribeLocationOption): void;
废弃版本:N/A|类名:Geolocation
方法 or 属性:static subscribe(options: SubscribeLocationOption): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.on|@system.geolocation.d.ts| +|废弃版本有变化|类名:Geolocation
方法 or 属性:static unsubscribe(): void;
废弃版本:N/A|类名:Geolocation
方法 or 属性:static unsubscribe(): void;
废弃版本:9
代替接口:ohos.geoLocationManager/geoLocationManager.off|@system.geolocation.d.ts| +|废弃版本有变化|类名:Geolocation
方法 or 属性:static getSupportedCoordTypes(): Array;
废弃版本:N/A|类名:Geolocation
方法 or 属性:static getSupportedCoordTypes(): Array;
废弃版本:9
代替接口:N/A|@system.geolocation.d.ts| +|起始版本有变化|类名:ReverseGeocodingMockInfo
方法 or 属性:location: ReverseGeoCodeRequest;
起始版本:N/A|类名:ReverseGeocodingMockInfo
方法 or 属性:location: ReverseGeoCodeRequest;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:ReverseGeocodingMockInfo
方法 or 属性:geoAddress: GeoAddress;
起始版本:N/A|类名:ReverseGeocodingMockInfo
方法 or 属性:geoAddress: GeoAddress;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationMockConfig
方法 or 属性:timeInterval: number;
起始版本:N/A|类名:LocationMockConfig
方法 or 属性:timeInterval: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationMockConfig
方法 or 属性:locations: Array;
起始版本:N/A|类名:LocationMockConfig
方法 or 属性:locations: Array;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:SatelliteStatusInfo
方法 or 属性:satellitesNumber: number;
起始版本:N/A|类名:SatelliteStatusInfo
方法 or 属性:satellitesNumber: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:SatelliteStatusInfo
方法 or 属性:satelliteIds: Array;
起始版本:N/A|类名:SatelliteStatusInfo
方法 or 属性:satelliteIds: Array;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:SatelliteStatusInfo
方法 or 属性:carrierToNoiseDensitys: Array;
起始版本:N/A|类名:SatelliteStatusInfo
方法 or 属性:carrierToNoiseDensitys: Array;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:SatelliteStatusInfo
方法 or 属性:altitudes: Array;
起始版本:N/A|类名:SatelliteStatusInfo
方法 or 属性:altitudes: Array;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:SatelliteStatusInfo
方法 or 属性:azimuths: Array;
起始版本:N/A|类名:SatelliteStatusInfo
方法 or 属性:azimuths: Array;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:SatelliteStatusInfo
方法 or 属性:carrierFrequencies: Array;
起始版本:N/A|类名:SatelliteStatusInfo
方法 or 属性:carrierFrequencies: Array;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CachedGnssLocationsRequest
方法 or 属性:reportingPeriodSec: number;
起始版本:N/A|类名:CachedGnssLocationsRequest
方法 or 属性:reportingPeriodSec: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CachedGnssLocationsRequest
方法 or 属性:wakeUpCacheQueueFull: boolean;
起始版本:N/A|类名:CachedGnssLocationsRequest
方法 or 属性:wakeUpCacheQueueFull: boolean;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeofenceRequest
方法 or 属性:scenario: LocationRequestScenario;
起始版本:N/A|类名:GeofenceRequest
方法 or 属性:scenario: LocationRequestScenario;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeofenceRequest
方法 or 属性:geofence: Geofence;
起始版本:N/A|类名:GeofenceRequest
方法 or 属性:geofence: Geofence;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:Geofence
方法 or 属性:latitude: number;
起始版本:N/A|类名:Geofence
方法 or 属性:latitude: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:Geofence
方法 or 属性:longitude: number;
起始版本:N/A|类名:Geofence
方法 or 属性:longitude: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:Geofence
方法 or 属性:radius: number;
起始版本:N/A|类名:Geofence
方法 or 属性:radius: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:Geofence
方法 or 属性:expiration: number;
起始版本:N/A|类名:Geofence
方法 or 属性:expiration: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:ReverseGeoCodeRequest
方法 or 属性:locale?: string;
起始版本:N/A|类名:ReverseGeoCodeRequest
方法 or 属性:locale?: string;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:ReverseGeoCodeRequest
方法 or 属性:latitude: number;
起始版本:N/A|类名:ReverseGeoCodeRequest
方法 or 属性:latitude: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:ReverseGeoCodeRequest
方法 or 属性:longitude: number;
起始版本:N/A|类名:ReverseGeoCodeRequest
方法 or 属性:longitude: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:ReverseGeoCodeRequest
方法 or 属性:maxItems?: number;
起始版本:N/A|类名:ReverseGeoCodeRequest
方法 or 属性:maxItems?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeoCodeRequest
方法 or 属性:locale?: string;
起始版本:N/A|类名:GeoCodeRequest
方法 or 属性:locale?: string;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeoCodeRequest
方法 or 属性:description: string;
起始版本:N/A|类名:GeoCodeRequest
方法 or 属性:description: string;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeoCodeRequest
方法 or 属性:maxItems?: number;
起始版本:N/A|类名:GeoCodeRequest
方法 or 属性:maxItems?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeoCodeRequest
方法 or 属性:minLatitude?: number;
起始版本:N/A|类名:GeoCodeRequest
方法 or 属性:minLatitude?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeoCodeRequest
方法 or 属性:minLongitude?: number;
起始版本:N/A|类名:GeoCodeRequest
方法 or 属性:minLongitude?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeoCodeRequest
方法 or 属性:maxLatitude?: number;
起始版本:N/A|类名:GeoCodeRequest
方法 or 属性:maxLatitude?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:GeoCodeRequest
方法 or 属性:maxLongitude?: number;
起始版本:N/A|类名:GeoCodeRequest
方法 or 属性:maxLongitude?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequest
方法 or 属性:priority?: LocationRequestPriority;
起始版本:N/A|类名:LocationRequest
方法 or 属性:priority?: LocationRequestPriority;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequest
方法 or 属性:scenario?: LocationRequestScenario;
起始版本:N/A|类名:LocationRequest
方法 or 属性:scenario?: LocationRequestScenario;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequest
方法 or 属性:timeInterval?: number;
起始版本:N/A|类名:LocationRequest
方法 or 属性:timeInterval?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequest
方法 or 属性:distanceInterval?: number;
起始版本:N/A|类名:LocationRequest
方法 or 属性:distanceInterval?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequest
方法 or 属性:maxAccuracy?: number;
起始版本:N/A|类名:LocationRequest
方法 or 属性:maxAccuracy?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CurrentLocationRequest
方法 or 属性:priority?: LocationRequestPriority;
起始版本:N/A|类名:CurrentLocationRequest
方法 or 属性:priority?: LocationRequestPriority;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CurrentLocationRequest
方法 or 属性:scenario?: LocationRequestScenario;
起始版本:N/A|类名:CurrentLocationRequest
方法 or 属性:scenario?: LocationRequestScenario;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CurrentLocationRequest
方法 or 属性:maxAccuracy?: number;
起始版本:N/A|类名:CurrentLocationRequest
方法 or 属性:maxAccuracy?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CurrentLocationRequest
方法 or 属性:timeoutMs?: number;
起始版本:N/A|类名:CurrentLocationRequest
方法 or 属性:timeoutMs?: number;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestPriority
方法 or 属性:UNSET = 0x200
起始版本:N/A|类名:LocationRequestPriority
方法 or 属性:UNSET = 0x200
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestPriority
方法 or 属性:ACCURACY
起始版本:N/A|类名:LocationRequestPriority
方法 or 属性:ACCURACY
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestPriority
方法 or 属性:LOW_POWER
起始版本:N/A|类名:LocationRequestPriority
方法 or 属性:LOW_POWER
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestPriority
方法 or 属性:FIRST_FIX
起始版本:N/A|类名:LocationRequestPriority
方法 or 属性:FIRST_FIX
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestScenario
方法 or 属性:UNSET = 0x300
起始版本:N/A|类名:LocationRequestScenario
方法 or 属性:UNSET = 0x300
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestScenario
方法 or 属性:NAVIGATION
起始版本:N/A|类名:LocationRequestScenario
方法 or 属性:NAVIGATION
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestScenario
方法 or 属性:TRAJECTORY_TRACKING
起始版本:N/A|类名:LocationRequestScenario
方法 or 属性:TRAJECTORY_TRACKING
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestScenario
方法 or 属性:CAR_HAILING
起始版本:N/A|类名:LocationRequestScenario
方法 or 属性:CAR_HAILING
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestScenario
方法 or 属性:DAILY_LIFE_SERVICE
起始版本:N/A|类名:LocationRequestScenario
方法 or 属性:DAILY_LIFE_SERVICE
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationRequestScenario
方法 or 属性:NO_POWER
起始版本:N/A|类名:LocationRequestScenario
方法 or 属性:NO_POWER
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationPrivacyType
方法 or 属性:OTHERS = 0
起始版本:N/A|类名:LocationPrivacyType
方法 or 属性:OTHERS = 0
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationPrivacyType
方法 or 属性:STARTUP
起始版本:N/A|类名:LocationPrivacyType
方法 or 属性:STARTUP
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationPrivacyType
方法 or 属性:CORE_LOCATION
起始版本:N/A|类名:LocationPrivacyType
方法 or 属性:CORE_LOCATION
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationCommand
方法 or 属性:scenario: LocationRequestScenario;
起始版本:N/A|类名:LocationCommand
方法 or 属性:scenario: LocationRequestScenario;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:LocationCommand
方法 or 属性:command: string;
起始版本:N/A|类名:LocationCommand
方法 or 属性:command: string;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CountryCode
方法 or 属性:country: string;
起始版本:N/A|类名:CountryCode
方法 or 属性:country: string;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CountryCode
方法 or 属性:type: CountryCodeType;
起始版本:N/A|类名:CountryCode
方法 or 属性:type: CountryCodeType;
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_LOCALE = 1
起始版本:N/A|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_LOCALE = 1
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_SIM
起始版本:N/A|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_SIM
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_LOCATION
起始版本:N/A|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_LOCATION
起始版本:9|@ohos.geoLocationManager.d.ts| +|起始版本有变化|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_NETWORK
起始版本:N/A|类名:CountryCodeType
方法 or 属性:COUNTRY_CODE_FROM_NETWORK
起始版本:9|@ohos.geoLocationManager.d.ts| +|新增(错误码)|NA|类名:geoLocationManager
方法 or 属性:function enableLocation(): Promise;
错误码内容:201,202,801,3301000|@ohos.geoLocationManager.d.ts| +|新增(错误码)|NA|类名:geoLocationManager
方法 or 属性:function getCountryCode(): Promise;
错误码内容:801,3301000,3301500|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:ReverseGeocodingMockInfo
方法 or 属性:location: ReverseGeoCodeRequest;
访问级别:公开API|类名:ReverseGeocodingMockInfo
方法 or 属性:location: ReverseGeoCodeRequest;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:ReverseGeocodingMockInfo
方法 or 属性:geoAddress: GeoAddress;
访问级别:公开API|类名:ReverseGeocodingMockInfo
方法 or 属性:geoAddress: GeoAddress;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationMockConfig
方法 or 属性:timeInterval: number;
访问级别:公开API|类名:LocationMockConfig
方法 or 属性:timeInterval: number;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationMockConfig
方法 or 属性:locations: Array;
访问级别:公开API|类名:LocationMockConfig
方法 or 属性:locations: Array;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:GeoAddress
方法 or 属性:isFromMock?: Boolean;
访问级别:公开API|类名:GeoAddress
方法 or 属性:isFromMock?: Boolean;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:Location
方法 or 属性:isFromMock?: Boolean;
访问级别:公开API|类名:Location
方法 or 属性:isFromMock?: Boolean;
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
访问级别:公开API|类名:LocationPrivacyType
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
方法 or 属性:OTHERS = 0
访问级别:公开API|类名:LocationPrivacyType
方法 or 属性:OTHERS = 0
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
方法 or 属性:STARTUP
访问级别:公开API|类名:LocationPrivacyType
方法 or 属性:STARTUP
访问级别:系统API|@ohos.geoLocationManager.d.ts| +|访问级别有变化|类名:LocationPrivacyType
方法 or 属性:CORE_LOCATION
访问级别:公开API|类名:LocationPrivacyType
方法 or 属性:CORE_LOCATION
访问级别:系统API|@ohos.geoLocationManager.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-global.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-global.md new file mode 100644 index 0000000000000000000000000000000000000000..388dd656156e2aecc04b6901dc64d1620e8f7931 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-global.md @@ -0,0 +1,36 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.resourceManager
类名: AsyncCallback|@ohos.resourceManager.d.ts| +|新增|NA|类名:AsyncCallback
方法or属性:|@ohos.resourceManager.d.ts| +|新增|NA|模块名: ohos.resourceManager
类名: AsyncCallback
方法 or 属性:(err: Error, data: T): void;|@ohos.resourceManager.d.ts| +|新增|NA|类名:AsyncCallback
方法or属性:(err: Error, data: T): void;|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringValue(resource: Resource, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getStringValue(resource: Resource, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringValue(resId: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getStringValue(resource: Resource, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringArrayValue(resource: Resource, callback: AsyncCallback>): void;
|类名:ResourceManager
方法 or 属性:getStringArrayValue(resource: Resource, callback: _AsyncCallback>): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringArrayValue(resId: number, callback: AsyncCallback>): void;
|类名:ResourceManager
方法 or 属性:getStringArrayValue(resource: Resource, callback: _AsyncCallback>): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContent(resource: Resource, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContent(resource: Resource, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContent(resId: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContent(resource: Resource, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resource: Resource, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resource: Resource, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resId: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resource: Resource, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getDeviceCapability(callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getDeviceCapability(callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getConfiguration(callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getConfiguration(callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getPluralStringValue(resource: Resource, num: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getPluralStringValue(resource: Resource, num: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getPluralStringValue(resId: number, num: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getPluralStringValue(resource: Resource, num: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringByName(resName: string, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getStringByName(resName: string, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringArrayByName(resName: string, callback: AsyncCallback>): void;
|类名:ResourceManager
方法 or 属性:getStringArrayByName(resName: string, callback: _AsyncCallback>): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaByName(resName: string, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaByName(resName: string, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaBase64ByName(resName: string, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaBase64ByName(resName: string, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getPluralStringByName(resName: string, num: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getPluralStringByName(resName: string, num: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringValue(resource: Resource, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getStringValue(resId: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringValue(resId: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getStringValue(resId: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringArrayValue(resource: Resource, callback: AsyncCallback>): void;
|类名:ResourceManager
方法 or 属性:getStringArrayValue(resId: number, callback: _AsyncCallback>): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getStringArrayValue(resId: number, callback: AsyncCallback>): void;
|类名:ResourceManager
方法 or 属性:getStringArrayValue(resId: number, callback: _AsyncCallback>): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getPluralStringValue(resource: Resource, num: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getPluralStringValue(resId: number, num: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getPluralStringValue(resId: number, num: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getPluralStringValue(resId: number, num: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContent(resource: Resource, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContent(resId: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContent(resId: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContent(resId: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resource: Resource, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resId: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resId: number, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getMediaContentBase64(resId: number, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getRawFileContent(path: string, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getRawFileContent(path: string, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:getRawFd(path: string, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:getRawFd(path: string, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| +|函数有变化|类名:ResourceManager
方法 or 属性:closeRawFd(path: string, callback: AsyncCallback): void;
|类名:ResourceManager
方法 or 属性:closeRawFd(path: string, callback: _AsyncCallback): void;
|@ohos.resourceManager.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-misc.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-misc.md new file mode 100644 index 0000000000000000000000000000000000000000..d62dabf043444fab3a1f3d8e08e967aab1eadfe6 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-misc.md @@ -0,0 +1,458 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: const MAX_TYPE_NUM: number|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function getInputMethodSetting(): InputMethodSetting;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function getInputMethodController(): InputMethodController;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function getSetting(): InputMethodSetting;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function getController(): InputMethodController;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function switchInputMethod(target: InputMethodProperty, callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function switchInputMethod(target: InputMethodProperty): Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function getCurrentInputMethod(): InputMethodProperty;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function getCurrentInputMethodSubtype(): InputMethodSubtype;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype, callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: inputMethod
方法 or 属性: function switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype): Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: on(type: 'imeChange', callback: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: off(type: 'imeChange', callback?: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: AsyncCallback>): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: listInputMethodSubtype(inputMethodProperty: InputMethodProperty): Promise>;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: listCurrentInputMethodSubtype(callback: AsyncCallback>): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: listCurrentInputMethodSubtype(): Promise>;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: getInputMethods(enable: boolean, callback: AsyncCallback>): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: getInputMethods(enable: boolean): Promise>;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: listInputMethod(callback: AsyncCallback>): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: listInputMethod(): Promise>;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: showOptionalInputMethods(callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: showOptionalInputMethods(): Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: displayOptionalInputMethod(callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodSetting
方法 or 属性: displayOptionalInputMethod(): Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: stopInputSession(callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: stopInputSession(): Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: stopInput(callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: stopInput(): Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: showSoftKeyboard(callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: showSoftKeyboard():Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: hideSoftKeyboard(callback: AsyncCallback): void;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodController
方法 or 属性: hideSoftKeyboard():Promise;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: readonly packageName: string;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: readonly methodId: string;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: readonly name: string;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: readonly id: string;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: readonly label?: string;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: readonly icon?: string;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: readonly iconId?: number;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethod
类名: InputMethodProperty
方法 or 属性: extra: object;|@ohos.inputMethod.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const ENTER_KEY_TYPE_UNSPECIFIED: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const ENTER_KEY_TYPE_GO: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const ENTER_KEY_TYPE_SEARCH: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const ENTER_KEY_TYPE_SEND: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const ENTER_KEY_TYPE_NEXT: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const ENTER_KEY_TYPE_DONE: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const ENTER_KEY_TYPE_PREVIOUS: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_NULL: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_TEXT: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_NUMBER: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_PHONE: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_DATETIME: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_EMAIL: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_URI: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const PATTERN_PASSWORD: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const FLAG_SELECTING: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const FLAG_SINGLE_LINE: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const DISPLAY_MODE_PART: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const DISPLAY_MODE_FULL: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const OPTION_ASCII: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const OPTION_NONE: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const OPTION_AUTO_CAP_CHARACTERS: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const OPTION_AUTO_CAP_SENTENCES: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const OPTION_AUTO_WORDS: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const OPTION_MULTI_LINE: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const OPTION_NO_FULLSCREEN: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const CURSOR_UP: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const CURSOR_DOWN: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const CURSOR_LEFT: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const CURSOR_RIGHT: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: const WINDOW_TYPE_INPUT_METHOD_FLOAT: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: function getInputMethodAbility(): InputMethodAbility;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: function getInputMethodEngine(): InputMethodEngine;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: function getKeyboardDelegate(): KeyboardDelegate;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: inputMethodEngine
方法 or 属性: function createKeyboardDelegate(): KeyboardDelegate;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardController|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardController
方法 or 属性: hide(callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardController
方法 or 属性: hide(): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardController
方法 or 属性: hideKeyboard(callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardController
方法 or 属性: hideKeyboard(): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodEngine|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodEngine
方法 or 属性: on(type: 'inputStart', callback: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodEngine
方法 or 属性: off(type: 'inputStart', callback?: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodEngine
方法 or 属性: on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodEngine
方法 or 属性: on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodEngine
方法 or 属性: off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodEngine
方法 or 属性: off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: on(type: 'inputStart', callback: (kbController: KeyboardController, inputClient: InputClient) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: off(type: 'inputStart', callback?: (kbController: KeyboardController, inputClient: InputClient) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: on(type: 'inputStop', callback: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: off(type: 'inputStop', callback: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: on(type: 'setCallingWindow', callback: (wid:number) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: off(type: 'setCallingWindow', callback: (wid:number) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: on(type: 'setSubtype', callback: (inputMethodSubtype: InputMethodSubtype) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputMethodAbility
方法 or 属性: off(type: 'setSubtype', callback?: (inputMethodSubtype: InputMethodSubtype) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: sendKeyFunction(action: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: sendKeyFunction(action: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: deleteForward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: deleteForward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: deleteBackward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: deleteBackward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: insertText(text: string, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: insertText(text: string): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: getForward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: getForward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: getBackward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: getBackward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: getEditorAttribute(callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: TextInputClient
方法 or 属性: getEditorAttribute(): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: sendKeyFunction(action: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: sendKeyFunction(action: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: deleteForward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: deleteForward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: deleteBackward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: deleteBackward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: insertText(text: string, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: insertText(text: string): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: getForward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: getForward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: getBackward(length: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: getBackward(length: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: getEditorAttribute(callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: getEditorAttribute(): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: moveCursor(direction: number, callback: AsyncCallback): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: InputClient
方法 or 属性: moveCursor(direction: number): Promise;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: off(type: 'keyDown'\|'keyUp', callback?: (event: KeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: off(type: 'keyDown'\|'keyUp', callback?: (event: KeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: on(type: 'cursorContextChange', callback: (x: number, y: number, height: number) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: off(type: 'cursorContextChange', callback?: (x: number, y: number, height: number) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: on(type: 'selectionChange', callback: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: off(type: 'selectionChange', callback?: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: on(type: 'textChange', callback: (text: string) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyboardDelegate
方法 or 属性: off(type: 'textChange', callback?: (text: string) => void): void;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: EditorAttribute|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: EditorAttribute
方法 or 属性: readonly inputPattern: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: EditorAttribute
方法 or 属性: readonly enterKeyType: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyEvent|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyEvent
方法 or 属性: readonly keyCode: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.inputMethodEngine
类名: KeyEvent
方法 or 属性: readonly keyAction: number;|@ohos.inputMethodEngine.d.ts| +|新增|NA|模块名: ohos.InputMethodExtensionAbility
类名: InputMethodExtensionAbility|@ohos.InputMethodExtensionAbility.d.ts| +|新增|NA|模块名: ohos.InputMethodExtensionAbility
类名: InputMethodExtensionAbility
方法 or 属性: context: InputMethodExtensionContext;|@ohos.InputMethodExtensionAbility.d.ts| +|新增|NA|模块名: ohos.InputMethodExtensionAbility
类名: InputMethodExtensionAbility
方法 or 属性: onCreate(want: Want): void;|@ohos.InputMethodExtensionAbility.d.ts| +|新增|NA|模块名: ohos.InputMethodExtensionAbility
类名: InputMethodExtensionAbility
方法 or 属性: onDestroy(): void;|@ohos.InputMethodExtensionAbility.d.ts| +|新增|NA|模块名: ohos.InputMethodExtensionContext
类名: InputMethodExtensionContext|@ohos.InputMethodExtensionContext.d.ts| +|新增|NA|模块名: ohos.InputMethodExtensionContext
类名: InputMethodExtensionContext
方法 or 属性: destroy(callback: AsyncCallback): void;|@ohos.InputMethodExtensionContext.d.ts| +|新增|NA|模块名: ohos.InputMethodExtensionContext
类名: InputMethodExtensionContext
方法 or 属性: destroy(): Promise;|@ohos.InputMethodExtensionContext.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly label?: string;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly name: string;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly id: string;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly mode?: 'upper'\|'lower';|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly locale: string;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly language: string;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly icon?: string;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: readonly iconId?: number;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.InputMethodSubtype
类名: InputMethodSubtype
方法 or 属性: extra: object;|@ohos.InputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.request
类名: request
方法 or 属性:const PAUSED_BY_USER: number;|@ohos.request.d.ts| +|新增|NA|类名:request
方法or属性:const PAUSED_BY_USER: number;|@ohos.request.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function setTime(time : number, callback : AsyncCallback) : void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function setTime(time : number) : Promise;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getCurrentTime(isNano: boolean, callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getCurrentTime(callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getCurrentTime(isNano?: boolean): Promise;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getRealActiveTime(isNano: boolean, callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getRealActiveTime(callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getRealActiveTime(isNano?: boolean): Promise;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getRealTime(isNano: boolean, callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getRealTime(callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getRealTime(isNano?: boolean): Promise;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function setDate(date: Date, callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function setDate(date: Date): Promise;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getDate(callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getDate(): Promise;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function setTimezone(timezone: string, callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function setTimezone(timezone: string): Promise;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getTimezone(callback: AsyncCallback): void;|@ohos.systemDateTime.d.ts| +|新增|NA|模块名: ohos.systemDateTime
类名: systemDateTime
方法 or 属性: function getTimezone(): Promise;|@ohos.systemDateTime.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:const MAX_TYPE_NUM: number|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function getInputMethodSetting(): InputMethodSetting;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function getInputMethodController(): InputMethodController;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function getSetting(): InputMethodSetting;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function getController(): InputMethodController;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function switchInputMethod(target: InputMethodProperty, callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function switchInputMethod(target: InputMethodProperty): Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function getCurrentInputMethod(): InputMethodProperty;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function getCurrentInputMethodSubtype(): InputMethodSubtype;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype, callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法 or 属性:function switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype): Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:on(type: 'imeChange', callback: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:off(type: 'imeChange', callback?: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: AsyncCallback>): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:listInputMethodSubtype(inputMethodProperty: InputMethodProperty): Promise>;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:listCurrentInputMethodSubtype(callback: AsyncCallback>): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:listCurrentInputMethodSubtype(): Promise>;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:getInputMethods(enable: boolean, callback: AsyncCallback>): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:getInputMethods(enable: boolean): Promise>;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:listInputMethod(callback: AsyncCallback>): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:listInputMethod(): Promise>;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:showOptionalInputMethods(callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:showOptionalInputMethods(): Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:displayOptionalInputMethod(callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodSetting
方法 or 属性:displayOptionalInputMethod(): Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:stopInputSession(callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:stopInputSession(): Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:stopInput(callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:stopInput(): Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:showSoftKeyboard(callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:showSoftKeyboard():Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:hideSoftKeyboard(callback: AsyncCallback): void;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodController
方法 or 属性:hideSoftKeyboard():Promise;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:readonly packageName: string;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:readonly methodId: string;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:readonly name: string;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:readonly id: string;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:readonly label?: string;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:readonly icon?: string;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:readonly iconId?: number;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: InputMethodProperty
方法 or 属性:extra: object;|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const ENTER_KEY_TYPE_UNSPECIFIED: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const ENTER_KEY_TYPE_GO: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const ENTER_KEY_TYPE_SEARCH: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const ENTER_KEY_TYPE_SEND: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const ENTER_KEY_TYPE_NEXT: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const ENTER_KEY_TYPE_DONE: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const ENTER_KEY_TYPE_PREVIOUS: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_NULL: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_TEXT: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_NUMBER: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_PHONE: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_DATETIME: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_EMAIL: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_URI: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const PATTERN_PASSWORD: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const FLAG_SELECTING: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const FLAG_SINGLE_LINE: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const DISPLAY_MODE_PART: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const DISPLAY_MODE_FULL: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const OPTION_ASCII: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const OPTION_NONE: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const OPTION_AUTO_CAP_CHARACTERS: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const OPTION_AUTO_CAP_SENTENCES: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const OPTION_AUTO_WORDS: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const OPTION_MULTI_LINE: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const OPTION_NO_FULLSCREEN: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const CURSOR_UP: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const CURSOR_DOWN: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const CURSOR_LEFT: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const CURSOR_RIGHT: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:const WINDOW_TYPE_INPUT_METHOD_FLOAT: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:function getInputMethodAbility(): InputMethodAbility;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:function getInputMethodEngine(): InputMethodEngine;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:function getKeyboardDelegate(): KeyboardDelegate;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: inputMethodEngine
方法 or 属性:function createKeyboardDelegate(): KeyboardDelegate;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardController|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardController
方法 or 属性:hide(callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardController
方法 or 属性:hide(): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardController
方法 or 属性:hideKeyboard(callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardController
方法 or 属性:hideKeyboard(): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法 or 属性:on(type: 'inputStart', callback: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法 or 属性:off(type: 'inputStart', callback?: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法 or 属性:on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法 or 属性:on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法 or 属性:off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法 or 属性:off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:on(type: 'inputStart', callback: (kbController: KeyboardController, inputClient: InputClient) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:off(type: 'inputStart', callback?: (kbController: KeyboardController, inputClient: InputClient) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:on(type: 'inputStop', callback: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:off(type: 'inputStop', callback: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:on(type: 'setCallingWindow', callback: (wid:number) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:off(type: 'setCallingWindow', callback: (wid:number) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:on(type: 'setSubtype', callback: (inputMethodSubtype: InputMethodSubtype) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法 or 属性:off(type: 'setSubtype', callback?: (inputMethodSubtype: InputMethodSubtype) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:sendKeyFunction(action: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:sendKeyFunction(action: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:deleteForward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:deleteForward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:deleteBackward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:deleteBackward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:insertText(text: string, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:insertText(text: string): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:getForward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:getForward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:getBackward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:getBackward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:getEditorAttribute(callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: TextInputClient
方法 or 属性:getEditorAttribute(): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:sendKeyFunction(action: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:sendKeyFunction(action: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:deleteForward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:deleteForward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:deleteBackward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:deleteBackward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:insertText(text: string, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:insertText(text: string): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:getForward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:getForward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:getBackward(length: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:getBackward(length: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:getEditorAttribute(callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:getEditorAttribute(): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:moveCursor(direction: number, callback: AsyncCallback): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputClient
方法 or 属性:moveCursor(direction: number): Promise;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:off(type: 'keyDown'\|'keyUp', callback?: (event: KeyEvent) => boolean): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:off(type: 'keyDown'\|'keyUp', callback?: (event: KeyEvent) => boolean): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:on(type: 'cursorContextChange', callback: (x: number, y: number, height: number) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:off(type: 'cursorContextChange', callback?: (x: number, y: number, height: number) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:on(type: 'selectionChange', callback: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:off(type: 'selectionChange', callback?: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:on(type: 'textChange', callback: (text: string) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyboardDelegate
方法 or 属性:off(type: 'textChange', callback?: (text: string) => void): void;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: EditorAttribute|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: EditorAttribute
方法 or 属性:readonly inputPattern: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: EditorAttribute
方法 or 属性:readonly enterKeyType: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyEvent|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyEvent
方法 or 属性:readonly keyCode: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: KeyEvent
方法 or 属性:readonly keyAction: number;|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodextensionability
类名: InputMethodExtensionAbility|NA|@ohos.inputmethodextensionability.d.ts| +|删除|模块名: ohos.inputmethodextensionability
类名: InputMethodExtensionAbility
方法 or 属性:context: InputMethodExtensionContext;|NA|@ohos.inputmethodextensionability.d.ts| +|删除|模块名: ohos.inputmethodextensionability
类名: InputMethodExtensionAbility
方法 or 属性:onCreate(want: Want): void;|NA|@ohos.inputmethodextensionability.d.ts| +|删除|模块名: ohos.inputmethodextensionability
类名: InputMethodExtensionAbility
方法 or 属性:onDestroy(): void;|NA|@ohos.inputmethodextensionability.d.ts| +|删除|模块名: ohos.inputmethodextensioncontext
类名: InputMethodExtensionContext|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名: ohos.inputmethodextensioncontext
类名: InputMethodExtensionContext
方法 or 属性:destroy(callback: AsyncCallback): void;|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名: ohos.inputmethodextensioncontext
类名: InputMethodExtensionContext
方法 or 属性:destroy(): Promise;|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly label?: string;|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly name: string;|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly id: string;|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly mode?: 'upper'\|'lower';|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly locale: string;|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly language: string;|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly icon?: string;|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:readonly iconId?: number;|NA|@ohos.inputMethodSubtype.d.ts| +|删除|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法 or 属性:extra: object;|NA|@ohos.inputMethodSubtype.d.ts| +|访问级别有变化|类名:SystemEvent
访问级别:公开API|类名:SystemEvent
访问级别:系统API|@ohos.screenLock.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_REALTIME: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_REALTIME: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_WAKEUP: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_WAKEUP: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_EXACT: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_EXACT: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_IDLE: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_IDLE: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function stopTimer(timer: number, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function stopTimer(timer: number, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function stopTimer(timer: number): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function stopTimer(timer: number): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
访问级别:公开API|类名:TimerOptions
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:type: number;
访问级别:公开API|类名:TimerOptions
方法 or 属性:type: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:repeat: boolean;
访问级别:公开API|类名:TimerOptions
方法 or 属性:repeat: boolean;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:interval?: number;
访问级别:公开API|类名:TimerOptions
方法 or 属性:interval?: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:wantAgent?: WantAgent;
访问级别:公开API|类名:TimerOptions
方法 or 属性:wantAgent?: WantAgent;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:callback?: () => void;
访问级别:公开API|类名:TimerOptions
方法 or 属性:callback?: () => void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|废弃版本有变化|类名:systemTime
废弃版本:N/A|类名:systemTime
废弃版本:9
代替接口:ohos.systemDateTime |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function setTime(time : number, callback : AsyncCallback) : void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function setTime(time : number, callback : AsyncCallback) : void;
废弃版本:9
代替接口:N/A|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function setTime(time : number) : Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function setTime(time : number) : Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getCurrentTime(isNano: boolean, callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getCurrentTime(isNano: boolean, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getCurrentTime |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getCurrentTime(callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getCurrentTime(callback: AsyncCallback): void;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getCurrentTime(isNano?: boolean): Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getCurrentTime(isNano?: boolean): Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano: boolean, callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano: boolean, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getRealActiveTime |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealActiveTime(callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealActiveTime(callback: AsyncCallback): void;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano?: boolean): Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealActiveTime(isNano?: boolean): Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealTime(isNano: boolean, callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealTime(isNano: boolean, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getRealTime |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealTime(callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealTime(callback: AsyncCallback): void;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getRealTime(isNano?: boolean): Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getRealTime(isNano?: boolean): Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function setDate(date: Date, callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function setDate(date: Date, callback: AsyncCallback): void;
废弃版本:9
代替接口:N/A|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function setDate(date: Date): Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function setDate(date: Date): Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getDate(callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getDate(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getDate |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getDate(): Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getDate(): Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function setTimezone(timezone: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function setTimezone(timezone: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:N/A|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function setTimezone(timezone: string): Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function setTimezone(timezone: string): Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getTimezone(callback: AsyncCallback): void;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getTimezone(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.systemDateTime/systemDateTime.getTimezone |@ohos.systemTime.d.ts| +|废弃版本有变化|类名:systemTime
方法 or 属性:function getTimezone(): Promise;
废弃版本:N/A|类名:systemTime
方法 or 属性:function getTimezone(): Promise;
废弃版本:9|@ohos.systemTime.d.ts| +|起始版本有变化|类名:DownloadTask
起始版本:N/A|类名:DownloadTask
起始版本:6|@ohos.request.d.ts| +|起始版本有变化|类名:UploadTask
起始版本:N/A|类名:UploadTask
起始版本:6|@ohos.request.d.ts| +|起始版本有变化|类名:SystemEvent
起始版本:N/A|类名:SystemEvent
起始版本:9|@ohos.screenLock.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_REALTIME: number;
起始版本:N/A|类名:systemTimer
方法 or 属性:const TIMER_TYPE_REALTIME: number;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_WAKEUP: number;
起始版本:N/A|类名:systemTimer
方法 or 属性:const TIMER_TYPE_WAKEUP: number;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_EXACT: number;
起始版本:N/A|类名:systemTimer
方法 or 属性:const TIMER_TYPE_EXACT: number;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_IDLE: number;
起始版本:N/A|类名:systemTimer
方法 or 属性:const TIMER_TYPE_IDLE: number;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions, callback: AsyncCallback): void;
起始版本:N/A|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions, callback: AsyncCallback): void;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions): Promise;
起始版本:N/A|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions): Promise;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number, callback: AsyncCallback): void;
起始版本:N/A|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number, callback: AsyncCallback): void;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number): Promise;
起始版本:N/A|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number): Promise;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function stopTimer(timer: number, callback: AsyncCallback): void;
起始版本:N/A|类名:systemTimer
方法 or 属性:function stopTimer(timer: number, callback: AsyncCallback): void;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function stopTimer(timer: number): Promise;
起始版本:N/A|类名:systemTimer
方法 or 属性:function stopTimer(timer: number): Promise;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number, callback: AsyncCallback): void;
起始版本:N/A|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number, callback: AsyncCallback): void;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number): Promise;
起始版本:N/A|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number): Promise;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:TimerOptions
起始版本:N/A|类名:TimerOptions
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:TimerOptions
方法 or 属性:type: number;
起始版本:N/A|类名:TimerOptions
方法 or 属性:type: number;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:TimerOptions
方法 or 属性:repeat: boolean;
起始版本:N/A|类名:TimerOptions
方法 or 属性:repeat: boolean;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:TimerOptions
方法 or 属性:interval?: number;
起始版本:N/A|类名:TimerOptions
方法 or 属性:interval?: number;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:TimerOptions
方法 or 属性:wantAgent?: WantAgent;
起始版本:N/A|类名:TimerOptions
方法 or 属性:wantAgent?: WantAgent;
起始版本:7|@ohos.systemTimer.d.ts| +|起始版本有变化|类名:TimerOptions
方法 or 属性:callback?: () => void;
起始版本:N/A|类名:TimerOptions
方法 or 属性:callback?: () => void;
起始版本:7|@ohos.systemTimer.d.ts| +|新增(错误码)|NA|类名:DownloadTask
方法 or 属性:delete(): Promise;
错误码内容:N/A|@ohos.request.d.ts| +|新增(错误码)|NA|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions): Promise;
错误码内容:202,401|@ohos.systemTimer.d.ts| +|新增(错误码)|NA|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number): Promise;
错误码内容:202,401|@ohos.systemTimer.d.ts| +|新增(错误码)|NA|类名:systemTimer
方法 or 属性:function stopTimer(timer: number): Promise;
错误码内容:202,401|@ohos.systemTimer.d.ts| +|新增(错误码)|NA|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number): Promise;
错误码内容:202,401|@ohos.systemTimer.d.ts| +|新增(权限)|类名:DownloadTask
权限:N/A|类名:DownloadTask
权限:ohos.permission.INTERNET|@ohos.request.d.ts| +|新增(权限)|类名:UploadTask
权限:N/A|类名:UploadTask
权限:ohos.permission.INTERNET|@ohos.request.d.ts| +|访问级别有变化|类名:SystemEvent
访问级别:公开API|类名:SystemEvent
访问级别:系统API|@ohos.screenLock.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_REALTIME: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_REALTIME: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_WAKEUP: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_WAKEUP: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_EXACT: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_EXACT: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:const TIMER_TYPE_IDLE: number;
访问级别:公开API|类名:systemTimer
方法 or 属性:const TIMER_TYPE_IDLE: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function createTimer(options: TimerOptions): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function startTimer(timer: number, triggerTime: number): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function stopTimer(timer: number, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function stopTimer(timer: number, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function stopTimer(timer: number): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function stopTimer(timer: number): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number, callback: AsyncCallback): void;
访问级别:公开API|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number, callback: AsyncCallback): void;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number): Promise;
访问级别:公开API|类名:systemTimer
方法 or 属性:function destroyTimer(timer: number): Promise;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
访问级别:公开API|类名:TimerOptions
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:type: number;
访问级别:公开API|类名:TimerOptions
方法 or 属性:type: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:repeat: boolean;
访问级别:公开API|类名:TimerOptions
方法 or 属性:repeat: boolean;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:interval?: number;
访问级别:公开API|类名:TimerOptions
方法 or 属性:interval?: number;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:wantAgent?: WantAgent;
访问级别:公开API|类名:TimerOptions
方法 or 属性:wantAgent?: WantAgent;
访问级别:系统API|@ohos.systemTimer.d.ts| +|访问级别有变化|类名:TimerOptions
方法 or 属性:callback?: () => void;
访问级别:公开API|类名:TimerOptions
方法 or 属性:callback?: () => void;
访问级别:系统API|@ohos.systemTimer.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-multimedia.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-multimedia.md new file mode 100644 index 0000000000000000000000000000000000000000..b0d69c161bb8daf265e969fa74a17895ca44fd64 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-multimedia.md @@ -0,0 +1,666 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:camera
方法or属性:function getCameraManager(context: Context): CameraManager;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:INVALID_ARGUMENT = 7400101|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:INVALID_ARGUMENT = 7400101|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:OPERATION_NOT_ALLOWED = 7400102|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:OPERATION_NOT_ALLOWED = 7400102|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:SESSION_NOT_CONFIG = 7400103|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:SESSION_NOT_CONFIG = 7400103|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:SESSION_NOT_RUNNING = 7400104|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:SESSION_NOT_RUNNING = 7400104|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:SESSION_CONFIG_LOCKED = 7400105|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:SESSION_CONFIG_LOCKED = 7400105|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:DEVICE_SETTING_LOCKED = 7400106|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:DEVICE_SETTING_LOCKED = 7400106|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:CONFILICT_CAMERA = 7400107|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:CONFILICT_CAMERA = 7400107|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:DEVICE_DISABLED = 7400108|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:DEVICE_DISABLED = 7400108|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraErrorCode
方法 or 属性:SERVICE_FATAL_ERROR = 7400201|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraErrorCode
方法or属性:SERVICE_FATAL_ERROR = 7400201|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:getSupportedCameras(): Array;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:getSupportedOutputCapability(camera: CameraDevice): CameraOutputCapability;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:createCameraInput(camera: CameraDevice): CameraInput;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:createCameraInput(position: CameraPosition, type: CameraType): CameraInput;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:createMetadataOutput(metadataObjectTypes: Array): MetadataOutput;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraManager
方法or属性:createCaptureSession(): CaptureSession;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CameraType
方法or属性:CAMERA_TYPE_DEFAULT = 0|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:beginConfig(): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:addInput(cameraInput: CameraInput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:removeInput(cameraInput: CameraInput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:addOutput(cameraOutput: CameraOutput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:removeOutput(cameraOutput: CameraOutput): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:hasFlash(): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:isFlashModeSupported(flashMode: FlashMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getFlashMode(): FlashMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setFlashMode(flashMode: FlashMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:isExposureModeSupported(aeMode: ExposureMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getExposureMode(): ExposureMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setExposureMode(aeMode: ExposureMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getMeteringPoint(): Point;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setMeteringPoint(point: Point): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getExposureBiasRange(): Array;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setExposureBias(exposureBias: number): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getExposureValue(): number;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:isFocusModeSupported(afMode: FocusMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getFocusMode(): FocusMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setFocusMode(afMode: FocusMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setFocusPoint(point: Point): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getFocusPoint(): Point;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getFocalLength(): number;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getZoomRatioRange(): Array;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getZoomRatio(): number;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setZoomRatio(zoomRatio: number): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:getActiveVideoStabilizationMode(): VideoStabilizationMode;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:CaptureSession
方法or属性:setVideoStabilizationMode(mode: VideoStabilizationMode): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:PhotoOutput
方法or属性:isMirrorSupported(): boolean;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:MetadataObject
方法or属性:readonly type: MetadataObjectType;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:MetadataObject
方法or属性:readonly timestamp: number;|@ohos.multimedia.camera.d.ts| +|新增|NA|类名:MetadataObject
方法or属性:readonly boundingBox: Rect;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayerState
方法 or 属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayerState
方法or属性:type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderState
方法 or 属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderState
方法or属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderState
方法 or 属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderState
方法or属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderState
方法 or 属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderState
方法or属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderState
方法 or 属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderState
方法or属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderState
方法 or 属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderState
方法or属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderState
方法 or 属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderState
方法or属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderState
方法 or 属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderState
方法or属性:type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error';|@ohos.multimedia.media.d.ts| +|新增|NA|类名:media
方法or属性:function createAVPlayer(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:media
方法or属性:function createAVPlayer() : Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:media
方法or属性:function createAVRecorder(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:media
方法or属性:function createAVRecorder() : Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: StateChangeReason|@ohos.multimedia.media.d.ts| +|新增|NA|类名:StateChangeReason
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: StateChangeReason
方法 or 属性:USER = 1|@ohos.multimedia.media.d.ts| +|新增|NA|类名:StateChangeReason
方法or属性:USER = 1|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: StateChangeReason
方法 or 属性:BACKGROUND = 2|@ohos.multimedia.media.d.ts| +|新增|NA|类名:StateChangeReason
方法or属性:BACKGROUND = 2|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_OK = 0|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_OK = 0|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_NO_PERMISSION = 201|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_NO_PERMISSION = 201|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_INVALID_PARAMETER = 401|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_INVALID_PARAMETER = 401|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_UNSUPPORT_CAPABILITY = 801|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_UNSUPPORT_CAPABILITY = 801|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_NO_MEMORY = 5400101|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_NO_MEMORY = 5400101|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_OPERATE_NOT_PERMIT = 5400102|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_OPERATE_NOT_PERMIT = 5400102|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_IO = 5400103|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_IO = 5400103|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_TIMEOUT = 5400104|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_TIMEOUT = 5400104|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_SERVICE_DIED = 5400105|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_SERVICE_DIED = 5400105|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVErrorCode
方法 or 属性:AVERR_UNSUPPORT_FORMAT = 5400106|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVErrorCode
方法or属性:AVERR_UNSUPPORT_FORMAT = 5400106|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:prepare(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:prepare(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:prepare(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:prepare(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:play(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:play(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:play(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:play(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:pause(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:pause(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:pause(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:pause(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:stop(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:stop(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:stop(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:stop(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:reset(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:reset(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:reset(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:reset(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:release(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:release(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:release(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:release(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:seek(timeMs: number, mode?:SeekMode): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:seek(timeMs: number, mode?:SeekMode): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:setVolume(volume: number): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:setVolume(volume: number): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:getTrackDescription(callback: AsyncCallback>): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:getTrackDescription(callback: AsyncCallback>): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:getTrackDescription() : Promise>;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:getTrackDescription() : Promise>;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:url ?: string;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:url ?: string;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:fdSrc ?: AVFileDescriptor;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:fdSrc ?: AVFileDescriptor;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:loop: boolean;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:loop: boolean;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:audioInterruptMode ?: audio.InterruptMode;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:audioInterruptMode ?: audio.InterruptMode;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:readonly currentTime: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:readonly currentTime: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:readonly duration: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:readonly duration: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:readonly state: AVPlayerState;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:readonly state: AVPlayerState;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:surfaceId ?: string;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:surfaceId ?: string;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:readonly width: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:readonly width: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:readonly height: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:readonly height: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:videoScaleType ?: VideoScaleType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:videoScaleType ?: VideoScaleType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:setSpeed(speed: PlaybackSpeed): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:setSpeed(speed: PlaybackSpeed): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:setBitrate(bitrate: number): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:setBitrate(bitrate: number): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'stateChange', callback: (state: AVPlayerState, reason: StateChangeReason) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'stateChange', callback: (state: AVPlayerState, reason: StateChangeReason) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'stateChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'stateChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'volumeChange', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'volumeChange', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'volumeChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'volumeChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'endOfStream', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'endOfStream', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'endOfStream'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'endOfStream'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'seekDone', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'seekDone', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'seekDone'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'seekDone'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'speedDone', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'speedDone', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'speedDone'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'speedDone'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'bitrateDone', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'bitrateDone', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'bitrateDone'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'bitrateDone'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'timeUpdate', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'timeUpdate', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'timeUpdate'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'timeUpdate'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'durationUpdate', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'durationUpdate', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'durationUpdate'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'durationUpdate'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'bufferingUpdate'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'bufferingUpdate'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'startRenderFrame', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'startRenderFrame', callback: Callback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'startRenderFrame'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'startRenderFrame'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'videoSizeChange', callback: (width: number, height: number) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'videoSizeChange', callback: (width: number, height: number) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'videoSizeChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'videoSizeChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'audioInterrupt'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'audioInterrupt'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'availableBitrates', callback: (bitrates: Array) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'availableBitrates', callback: (bitrates: Array) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'availableBitrates'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'availableBitrates'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVPlayer
方法 or 属性:off(type: 'error'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVPlayer
方法or属性:off(type: 'error'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:prepare(config: AVRecorderConfig, callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:prepare(config: AVRecorderConfig, callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:prepare(config: AVRecorderConfig): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:prepare(config: AVRecorderConfig): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:getInputSurface(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:getInputSurface(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:getInputSurface(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:getInputSurface(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:start(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:start(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:start(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:start(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:pause(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:pause(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:pause(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:pause(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:resume(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:resume(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:resume(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:resume(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:stop(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:stop(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:stop(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:stop(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:reset(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:reset(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:reset(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:reset(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:release(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:release(callback: AsyncCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:release(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:release(): Promise;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:readonly state: AVRecorderState;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:readonly state: AVRecorderState;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:on(type: 'stateChange', callback: (state: AVRecorderState, reason: StateChangeReason) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:on(type: 'stateChange', callback: (state: AVRecorderState, reason: StateChangeReason) => void): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:on(type: 'error', callback: ErrorCallback): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:off(type: 'stateChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:off(type: 'stateChange'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorder
方法 or 属性:off(type: 'error'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorder
方法or属性:off(type: 'error'): void;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:audioBitrate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:audioBitrate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:audioChannels?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:audioChannels?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:audioCodec?: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:audioCodec?: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:audioSampleRate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:audioSampleRate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:fileFormat: ContainerFormatType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:fileFormat: ContainerFormatType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:videoBitrate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:videoBitrate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:videoCodec?: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:videoCodec?: CodecMimeType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:videoFrameWidth?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:videoFrameWidth?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:videoFrameHeight?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:videoFrameHeight?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderProfile
方法 or 属性:videoFrameRate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderProfile
方法or属性:videoFrameRate?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderConfig|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderConfig
方法or属性:|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderConfig
方法 or 属性:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderConfig
方法or属性:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderConfig
方法 or 属性:videoSourceType?: VideoSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderConfig
方法or属性:videoSourceType?: VideoSourceType;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderConfig
方法 or 属性:profile: AVRecorderProfile;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderConfig
方法or属性:profile: AVRecorderProfile;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderConfig
方法 or 属性:url: string;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderConfig
方法or属性:url: string;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderConfig
方法 or 属性:rotation?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderConfig
方法or属性:rotation?: number;|@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.media
类名: AVRecorderConfig
方法 or 属性:location?: Location;|@ohos.multimedia.media.d.ts| +|新增|NA|类名:AVRecorderConfig
方法or属性:location?: Location;|@ohos.multimedia.media.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraType
方法 or 属性:CAMERA_TYPE_UNSPECIFIED = 0|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法 or 属性:release(callback: AsyncCallback): void;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法 or 属性:release(): Promise;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法 or 属性:ERROR_UNKNOWN = -1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法 or 属性:ERROR_NO_PERMISSION = 0|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法 or 属性:ERROR_DEVICE_PREEMPTED = 1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法 or 属性:ERROR_DEVICE_DISCONNECTED = 2|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法 or 属性:ERROR_DEVICE_IN_USE = 3|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法 or 属性:ERROR_DRIVER_ERROR = 4|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputError|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CameraInputError
方法 or 属性:code: CameraInputErrorCode;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法 or 属性:ERROR_UNKNOWN = -1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法 or 属性:ERROR_INSUFFICIENT_RESOURCES = 0|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法 or 属性:ERROR_TIMEOUT = 1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CaptureSessionError|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: CaptureSessionError
方法 or 属性:code: CaptureSessionErrorCode;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PreviewOutputErrorCode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PreviewOutputErrorCode
方法 or 属性:ERROR_UNKNOWN = -1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PreviewOutputError|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PreviewOutputError
方法 or 属性:code: PreviewOutputErrorCode;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法 or 属性:ERROR_UNKNOWN = -1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法 or 属性:ERROR_DRIVER_ERROR = 0|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法 or 属性:ERROR_INSUFFICIENT_RESOURCES = 1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法 or 属性:ERROR_TIMEOUT = 2|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PhotoOutputError|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: PhotoOutputError
方法 or 属性:code: PhotoOutputErrorCode;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutputErrorCode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutputErrorCode
方法 or 属性:ERROR_UNKNOWN = -1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutputErrorCode
方法 or 属性:ERROR_DRIVER_ERROR = 0|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutputError|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutputError
方法 or 属性:code: VideoOutputErrorCode;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:MetadataObject
方法 or 属性:getType(callback: AsyncCallback): void;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:MetadataObject
方法 or 属性:getType(): Promise;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:MetadataObject
方法 or 属性:getTimestamp(callback: AsyncCallback): void;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:MetadataObject
方法 or 属性:getTimestamp(): Promise;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:MetadataObject
方法 or 属性:getBoundingBox(callback: AsyncCallback): void;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:MetadataObject
方法 or 属性:getBoundingBox(): Promise;|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: MetadataFaceObject|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法 or 属性:ERROR_UNKNOWN = -1|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法 or 属性:ERROR_INSUFFICIENT_RESOURCES = 0|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: MetadataOutputError|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: MetadataOutputError
方法 or 属性:code: MetadataOutputErrorCode;|NA|@ohos.multimedia.camera.d.ts| +|访问级别有变化|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:公开API|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:公开API|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallback): void;
访问级别:公开API|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType): Promise;
访问级别:公开API|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function on(type: 'sessionServiceDie', callback: () => void): void;
访问级别:公开API|类名:avSession
方法 or 属性:function on(type: 'sessionServiceDie', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
访问级别:公开API|类名:AVSession
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:readonly sessionId: string;
访问级别:公开API|类名:AVSession
方法 or 属性:readonly sessionId: string;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getController(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:getController(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getController(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:getController(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getOutputDevice(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:getOutputDevice(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'seek', callback: (time: number) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'seek', callback: (time: number) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'setSpeed', callback: (speed: number) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'setSpeed', callback: (speed: number) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'toggleFavorite', callback: (assetId: string) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'toggleFavorite', callback: (assetId: string) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:activate(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:activate(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:activate(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:activate(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:deactivate(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:deactivate(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:deactivate(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:deactivate(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:destroy(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:destroy(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVMetadata
访问级别:公开API|类名:AVMetadata
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVPlaybackState
访问级别:公开API|类名:AVPlaybackState
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:PlaybackPosition
访问级别:公开API|类名:PlaybackPosition
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:OutputDeviceInfo
访问级别:公开API|类名:OutputDeviceInfo
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:LoopMode
访问级别:公开API|类名:LoopMode
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:PlaybackState
访问级别:公开API|类名:PlaybackState
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
访问级别:公开API|类名:AVSessionController
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:readonly sessionId: string;
访问级别:公开API|类名:AVSessionController
方法 or 属性:readonly sessionId: string;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVPlaybackState(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVPlaybackState(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVPlaybackState(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVPlaybackState(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVMetadata(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVMetadata(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVMetadata(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVMetadata(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getOutputDevice(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getOutputDevice(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getLaunchAbility(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getLaunchAbility(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getLaunchAbility(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getLaunchAbility(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getRealPlaybackPositionSync(): number;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getRealPlaybackPositionSync(): number;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:isActive(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:isActive(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:isActive(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:isActive(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:destroy(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:destroy(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getValidCommands(callback: AsyncCallback>): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getValidCommands(callback: AsyncCallback>): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getValidCommands(): Promise>;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getValidCommands(): Promise>;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'metadataChange', filter: Array \| 'all', callback: (data: AVMetadata) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'metadataChange', filter: Array \| 'all', callback: (data: AVMetadata) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'playbackStateChange', filter: Array \| 'all', callback: (state: AVPlaybackState) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'playbackStateChange', filter: Array \| 'all', callback: (state: AVPlaybackState) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'sessionDestroy', callback: () => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'sessionDestroy', callback: () => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'activeStateChange', callback: (isActive: boolean) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'activeStateChange', callback: (isActive: boolean) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'validCommandChange', callback: (commands: Array) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'validCommandChange', callback: (commands: Array) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommand
访问级别:公开API|类名:AVControlCommand
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionErrorCode
访问级别:公开API|类名:AVSessionErrorCode
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:camera
访问级别:公开API|类名:camera
访问级别:系统API|@ohos.multimedia.camera.d.ts| +|访问级别有变化|类名:AudioSourceType
访问级别:系统API|类名:AudioSourceType
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_DEFAULT = 0
访问级别:系统API|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_DEFAULT = 0
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_MIC = 1
访问级别:系统API|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_MIC = 1
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:VideoSourceType
访问级别:系统API|类名:VideoSourceType
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_YUV = 0
访问级别:系统API|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_YUV = 0
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_ES = 1
访问级别:系统API|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_ES = 1
访问级别:公开API|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:AudioState
方法 or 属性:type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:N/A|类名:VideoPlayState
方法 or 属性:type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error';
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayerState |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:media
方法 or 属性:function createAudioPlayer(): AudioPlayer;
废弃版本:N/A|类名:media
方法 or 属性:function createAudioPlayer(): AudioPlayer;
废弃版本:9
代替接口:ohos.multimedia.media/media|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:media
方法 or 属性:function createAudioRecorder(): AudioRecorder;
废弃版本:N/A|类名:media
方法 or 属性:function createAudioRecorder(): AudioRecorder;
废弃版本:9
代替接口:ohos.multimedia.media/media|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:media
方法 or 属性:function createVideoPlayer(callback: AsyncCallback): void;
废弃版本:N/A|类名:media
方法 or 属性:function createVideoPlayer(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:media
方法 or 属性:function createVideoPlayer() : Promise;
废弃版本:N/A|类名:media
方法 or 属性:function createVideoPlayer() : Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
废弃版本:N/A|类名:AudioPlayer
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:play(): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:play(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:pause(): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:pause(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:stop(): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:stop(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:reset(): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:reset(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:seek(timeMs: number): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:seek(timeMs: number): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:setVolume(vol: number): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:setVolume(vol: number): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:release(): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:release(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:getTrackDescription(callback: AsyncCallback>): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:getTrackDescription(callback: AsyncCallback>): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:getTrackDescription() : Promise>;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:getTrackDescription() : Promise>;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:src: string;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:src: string;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:fdSrc: AVFileDescriptor;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:fdSrc: AVFileDescriptor;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:loop: boolean;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:loop: boolean;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:audioInterruptMode ?: audio.InterruptMode;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:audioInterruptMode ?: audio.InterruptMode;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:readonly currentTime: number;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:readonly currentTime: number;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:readonly duration: number;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:readonly duration: number;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:readonly state: AudioState;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:readonly state: AudioState;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'timeUpdate', callback: Callback): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'timeUpdate', callback: Callback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioPlayer
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
废弃版本:N/A|类名:AudioPlayer
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
废弃版本:N/A|类名:AudioRecorderConfig
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorderConfig |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
方法 or 属性:audioEncodeBitRate?: number;
废弃版本:N/A|类名:AudioRecorderConfig
方法 or 属性:audioEncodeBitRate?: number;
废弃版本:9
代替接口:N/A|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
方法 or 属性:audioSampleRate?: number;
废弃版本:N/A|类名:AudioRecorderConfig
方法 or 属性:audioSampleRate?: number;
废弃版本:9
代替接口:N/A|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
方法 or 属性:numberOfChannels?: number;
废弃版本:N/A|类名:AudioRecorderConfig
方法 or 属性:numberOfChannels?: number;
废弃版本:9
代替接口:N/A|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
方法 or 属性:uri: string;
废弃版本:N/A|类名:AudioRecorderConfig
方法 or 属性:uri: string;
废弃版本:9
代替接口:N/A|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
方法 or 属性:location?: Location;
废弃版本:N/A|类名:AudioRecorderConfig
方法 or 属性:location?: Location;
废弃版本:9
代替接口:N/A|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
方法 or 属性:audioEncoderMime?: CodecMimeType;
废弃版本:N/A|类名:AudioRecorderConfig
方法 or 属性:audioEncoderMime?: CodecMimeType;
废弃版本:9
代替接口:N/A|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorderConfig
方法 or 属性:fileFormat?: ContainerFormatType;
废弃版本:N/A|类名:AudioRecorderConfig
方法 or 属性:fileFormat?: ContainerFormatType;
废弃版本:9
代替接口:N/A|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
废弃版本:N/A|类名:AudioRecorder
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:prepare(config: AudioRecorderConfig): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:prepare(config: AudioRecorderConfig): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:start(): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:start(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:pause(): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:pause(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:resume(): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:resume(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:stop(): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:stop(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:release(): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:release(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:reset(): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:reset(): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:AudioRecorder
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
废弃版本:N/A|类名:AudioRecorder
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVRecorder|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
废弃版本:N/A|类名:VideoPlayer
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer |@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:setDisplaySurface(surfaceId: string, callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:setDisplaySurface(surfaceId: string, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:setDisplaySurface(surfaceId: string): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:setDisplaySurface(surfaceId: string): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:prepare(callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:prepare(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:prepare(): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:prepare(): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:play(callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:play(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:play(): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:play(): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:pause(callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:pause(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:pause(): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:pause(): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:stop(callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:stop(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:stop(): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:stop(): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:reset(callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:reset(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:reset(): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:reset(): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:seek(timeMs: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:seek(timeMs: number, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:seek(timeMs: number, mode:SeekMode, callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:seek(timeMs: number, mode:SeekMode, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:seek(timeMs: number, mode?:SeekMode): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:seek(timeMs: number, mode?:SeekMode): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:setVolume(vol: number, callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:setVolume(vol: number, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:setVolume(vol: number): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:setVolume(vol: number): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:release(callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:release(callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:release(): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:release(): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:getTrackDescription(callback: AsyncCallback>): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:getTrackDescription(callback: AsyncCallback>): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:getTrackDescription() : Promise>;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:getTrackDescription() : Promise>;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:url: string;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:url: string;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:fdSrc: AVFileDescriptor;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:fdSrc: AVFileDescriptor;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:loop: boolean;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:loop: boolean;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:readonly currentTime: number;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:readonly currentTime: number;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:readonly duration: number;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:readonly duration: number;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:readonly state: VideoPlayState;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:readonly state: VideoPlayState;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:readonly width: number;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:readonly width: number;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:readonly height: number;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:readonly height: number;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:audioInterruptMode ?: audio.InterruptMode;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:audioInterruptMode ?: audio.InterruptMode;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:videoScaleType ?: VideoScaleType;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:videoScaleType ?: VideoScaleType;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:setSpeed(speed:number, callback: AsyncCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:setSpeed(speed:number, callback: AsyncCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:setSpeed(speed:number): Promise;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:setSpeed(speed:number): Promise;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:on(type: 'playbackCompleted', callback: Callback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:on(type: 'playbackCompleted', callback: Callback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:on(type: 'startRenderFrame', callback: Callback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:on(type: 'startRenderFrame', callback: Callback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|废弃版本有变化|类名:VideoPlayer
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
废弃版本:N/A|类名:VideoPlayer
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
废弃版本:9
代替接口:ohos.multimedia.media/media.AVPlayer|@ohos.multimedia.media.d.ts| +|起始版本有变化|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
起始版本:N/A|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
起始版本:9|@ohos.multimedia.avsession.d.ts| +|起始版本有变化|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
起始版本:N/A|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
起始版本:9|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:公开API|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:公开API|类名:AVSessionType
方法 or 属性:type AVSessionType = 'audio' \| 'video';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:公开API|类名:AVControlCommandType
方法 or 属性:type AVControlCommandType = 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind' \|
'seek' \| 'setSpeed' \| 'setLoopMode' \| 'toggleFavorite';
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallback): void;
访问级别:公开API|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType): Promise;
访问级别:公开API|类名:avSession
方法 or 属性:function createAVSession(context: Context, tag: string, type: AVSessionType): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:avSession
方法 or 属性:function on(type: 'sessionServiceDie', callback: () => void): void;
访问级别:公开API|类名:avSession
方法 or 属性:function on(type: 'sessionServiceDie', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
访问级别:公开API|类名:AVSession
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:readonly sessionId: string;
访问级别:公开API|类名:AVSession
方法 or 属性:readonly sessionId: string;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVMetadata(data: AVMetadata): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:setAVPlaybackState(state: AVPlaybackState): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:setLaunchAbility(ability: WantAgent): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getController(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:getController(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getController(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:getController(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:getOutputDevice(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:getOutputDevice(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'play' \| 'pause' \| 'stop' \| 'playNext' \| 'playPrevious' \| 'fastForward' \| 'rewind', callback: () => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'seek', callback: (time: number) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'seek', callback: (time: number) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'setSpeed', callback: (speed: number) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'setSpeed', callback: (speed: number) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'toggleFavorite', callback: (assetId: string) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'toggleFavorite', callback: (assetId: string) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:公开API|类名:AVSession
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:activate(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:activate(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:activate(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:activate(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:deactivate(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:deactivate(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:deactivate(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:deactivate(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSession
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSession
方法 or 属性:destroy(): Promise;
访问级别:公开API|类名:AVSession
方法 or 属性:destroy(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVMetadata
访问级别:公开API|类名:AVMetadata
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVPlaybackState
访问级别:公开API|类名:AVPlaybackState
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:PlaybackPosition
访问级别:公开API|类名:PlaybackPosition
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:OutputDeviceInfo
访问级别:公开API|类名:OutputDeviceInfo
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:LoopMode
访问级别:公开API|类名:LoopMode
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:PlaybackState
访问级别:公开API|类名:PlaybackState
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
访问级别:公开API|类名:AVSessionController
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:readonly sessionId: string;
访问级别:公开API|类名:AVSessionController
方法 or 属性:readonly sessionId: string;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVPlaybackState(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVPlaybackState(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVPlaybackState(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVPlaybackState(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVMetadata(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVMetadata(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getAVMetadata(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getAVMetadata(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getOutputDevice(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getOutputDevice(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getOutputDevice(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendAVKeyEvent(event: KeyEvent): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getLaunchAbility(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getLaunchAbility(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getLaunchAbility(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getLaunchAbility(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getRealPlaybackPositionSync(): number;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getRealPlaybackPositionSync(): number;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:isActive(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:isActive(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:isActive(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:isActive(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:destroy(callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:destroy(): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:destroy(): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getValidCommands(callback: AsyncCallback>): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getValidCommands(callback: AsyncCallback>): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:getValidCommands(): Promise>;
访问级别:公开API|类名:AVSessionController
方法 or 属性:getValidCommands(): Promise>;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand, callback: AsyncCallback): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand, callback: AsyncCallback): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand): Promise;
访问级别:公开API|类名:AVSessionController
方法 or 属性:sendControlCommand(command: AVControlCommand): Promise;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'metadataChange', filter: Array \| 'all', callback: (data: AVMetadata) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'metadataChange', filter: Array \| 'all', callback: (data: AVMetadata) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'playbackStateChange', filter: Array \| 'all', callback: (state: AVPlaybackState) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'playbackStateChange', filter: Array \| 'all', callback: (state: AVPlaybackState) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'sessionDestroy', callback: () => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'sessionDestroy', callback: () => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'activeStateChange', callback: (isActive: boolean) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'activeStateChange', callback: (isActive: boolean) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'validCommandChange', callback: (commands: Array) => void);
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'validCommandChange', callback: (commands: Array) => void);
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionController
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:公开API|类名:AVSessionController
方法 or 属性:on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void;
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVControlCommand
访问级别:公开API|类名:AVControlCommand
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:AVSessionErrorCode
访问级别:公开API|类名:AVSessionErrorCode
访问级别:系统API|@ohos.multimedia.avsession.d.ts| +|访问级别有变化|类名:camera
访问级别:公开API|类名:camera
访问级别:系统API|@ohos.multimedia.camera.d.ts| +|访问级别有变化|类名:AudioSourceType
访问级别:系统API|类名:AudioSourceType
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_DEFAULT = 0
访问级别:系统API|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_DEFAULT = 0
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_MIC = 1
访问级别:系统API|类名:AudioSourceType
方法 or 属性:AUDIO_SOURCE_TYPE_MIC = 1
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:VideoSourceType
访问级别:系统API|类名:VideoSourceType
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_YUV = 0
访问级别:系统API|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_YUV = 0
访问级别:公开API|@ohos.multimedia.media.d.ts| +|访问级别有变化|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_ES = 1
访问级别:系统API|类名:VideoSourceType
方法 or 属性:VIDEO_SOURCE_TYPE_SURFACE_ES = 1
访问级别:公开API|@ohos.multimedia.media.d.ts| +|函数有变化|类名:CameraInput
方法 or 属性:on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;
|类名:CameraInput
方法 or 属性:on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;
|@ohos.multimedia.camera.d.ts| +|函数有变化|类名:CaptureSession
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|类名:CaptureSession
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|@ohos.multimedia.camera.d.ts| +|函数有变化|类名:PreviewOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|类名:PreviewOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|@ohos.multimedia.camera.d.ts| +|函数有变化|类名:PhotoOutput
方法 or 属性:capture(setting?: PhotoCaptureSetting): Promise;
|类名:PhotoOutput
方法 or 属性:capture(): Promise;
|@ohos.multimedia.camera.d.ts| +|函数有变化|类名:PhotoOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|类名:PhotoOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|@ohos.multimedia.camera.d.ts| +|函数有变化|类名:VideoOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|类名:VideoOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|@ohos.multimedia.camera.d.ts| +|函数有变化|类名:MetadataOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|类名:MetadataOutput
方法 or 属性:on(type: 'error', callback: ErrorCallback): void;
|@ohos.multimedia.camera.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-notification.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..738bf86f6e35a1dec5a39ad446c7015f06286882 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-notification.md @@ -0,0 +1,16 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法 or 属性: COMMON_EVENT_USER_INFO_UPDATED = "usual.event.USER_INFO_UPDATED"|@ohos.commonEventManager.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number, callback: AsyncCallback): void;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number): Promise;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function cancelAsBundle(id: number, representativeBundle: string, userId: number, callback: AsyncCallback): void;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean, callback: AsyncCallback): void;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean): Promise;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncCallback): void;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: AsyncCallback): void;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback): void;|NA|@ohos.notification.d.ts| +|删除|模块名: ohos.notification
类名: notification
方法 or 属性:function getSyncNotificationEnabledWithoutApp(userId: number): Promise;|NA|@ohos.notification.d.ts| +|起始版本有变化|类名:RemoveReason
起始版本:9|类名:RemoveReason
起始版本:N/A|@ohos.notification.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-resource-scheduler.md new file mode 100644 index 0000000000000000000000000000000000000000..42308f7e4fb51efb3a2f24d67f0b0cb2631d5704 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-resource-scheduler.md @@ -0,0 +1,66 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|删除|模块名: ohos.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性:function applyEfficiencyResources(request: EfficiencyResourcesRequest): boolean;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: backgroundTaskManager
方法 or 属性:function resetAllEfficiencyResources(): void;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法 or 属性:CPU = 1|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法 or 属性:COMMON_EVENT = 1 << 1|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法 or 属性:TIMER = 1 << 2|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法 or 属性:WORK_SCHEDULER = 1 << 3|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法 or 属性:BLUETOOTH = 1 << 4|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法 or 属性:GPS = 1 << 5|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法 or 属性:AUDIO = 1 << 6|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性:resourceTypes: number;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性:isApply: boolean;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性:timeOut: number;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性:isPersist?: boolean;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性:isProcess?: boolean;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法 or 属性:reason: string;|NA|@ohos.backgroundTaskManager.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:workId: number;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:bundleName: string;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:abilityName: string;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:isPersisted?: boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:networkType?: NetworkType;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:isCharging?: boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:chargerType?: ChargingType;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:batteryLevel?: number;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:batteryStatus?: BatteryStatus;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:storageRequest?: StorageRequest;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:repeatCycleTime?: number;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:isRepeat?: boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:repeatCount?: number;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:isDeepIdle?: boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:idleWaitTime?: number;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: WorkInfo
方法 or 属性:parameters?: {[key: string]: any};|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function startWork(work: WorkInfo): boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function stopWork(work: WorkInfo, needCancel?: boolean): boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function getWorkStatus(workId: number, callback: AsyncCallback): void;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function getWorkStatus(workId: number): Promise;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function obtainAllWorks(callback: AsyncCallback): Array;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function obtainAllWorks(): Promise>;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function stopAndClearWorks(): boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function isLastWorkTimeOut(workId: number, callback: AsyncCallback): boolean;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: workScheduler
方法 or 属性:function isLastWorkTimeOut(workId: number): Promise;|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: NetworkType|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: NetworkType
方法 or 属性:NETWORK_TYPE_ANY = 0|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: NetworkType
方法 or 属性:NETWORK_TYPE_MOBILE|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: NetworkType
方法 or 属性:NETWORK_TYPE_WIFI|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: NetworkType
方法 or 属性:NETWORK_TYPE_BLUETOOTH|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: NetworkType
方法 or 属性:NETWORK_TYPE_WIFI_P2P|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: NetworkType
方法 or 属性:NETWORK_TYPE_ETHERNET|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: ChargingType|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: ChargingType
方法 or 属性:CHARGING_PLUGGED_ANY = 0|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: ChargingType
方法 or 属性:CHARGING_PLUGGED_AC|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: ChargingType
方法 or 属性:CHARGING_PLUGGED_USB|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: ChargingType
方法 or 属性:CHARGING_PLUGGED_WIRELESS|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: BatteryStatus|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: BatteryStatus
方法 or 属性:BATTERY_STATUS_LOW = 0|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: BatteryStatus
方法 or 属性:BATTERY_STATUS_OKAY|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: BatteryStatus
方法 or 属性:BATTERY_STATUS_LOW_OR_OKAY|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: StorageRequest|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: StorageRequest
方法 or 属性:STORAGE_LEVEL_LOW = 0|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: StorageRequest
方法 or 属性:STORAGE_LEVEL_OKAY|NA|@ohos.workScheduler.d.ts| +|删除|模块名: ohos.workScheduler
类名: StorageRequest
方法 or 属性:STORAGE_LEVEL_LOW_OR_OKAY|NA|@ohos.workScheduler.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-security.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-security.md new file mode 100644 index 0000000000000000000000000000000000000000..fe540c601ce624587abca3b628328c51c65f92c6 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-security.md @@ -0,0 +1,257 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: AtManager
方法 or 属性: requestPermissionsFromUser(context: Context, permissions: Array, requestCallback: AsyncCallback) : void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: AtManager
方法 or 属性: requestPermissionsFromUser(context: Context, permissions: Array) : Promise;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: cert|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: INVALID_PARAMS = 401|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: NOT_SUPPORT = 801|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_OUT_OF_MEMORY = 19020001|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_RUNTIME_ERROR = 19020002|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_CRYPTO_OPERATION = 19030001|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_CERT_SIGNATURE_FAILURE = 19030002|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_CERT_NOT_YET_VALID = 19030003|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_CERT_HAS_EXPIRED = 19030004|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY = 19030005|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_KEYUSAGE_NO_CERTSIGN = 19030006|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertResult
方法 or 属性: ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE = 19030007|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: DataBlob|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: DataBlob
方法 or 属性: data : Uint8Array;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: DataArray|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: DataArray
方法 or 属性: data : Array;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: EncodingFormat|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: EncodingFormat
方法 or 属性: FORMAT_DER = 0|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: EncodingFormat
方法 or 属性: FORMAT_PEM = 1|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: EncodingBlob|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: EncodingBlob
方法 or 属性: data : Uint8Array;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: EncodingBlob
方法 or 属性: encodingFormat : EncodingFormat;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainData|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainData
方法 or 属性: data: Uint8Array;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainData
方法 or 属性: count : number;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainData
方法 or 属性: encodingFormat: EncodingFormat;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: verify(key : cryptoFramework.PubKey, callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: verify(key : cryptoFramework.PubKey) : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getEncoded(callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getEncoded() : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getPublicKey() : cryptoFramework.PubKey;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: checkValidityWithDate(date: string) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getVersion() : number;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getSerialNumber() : number;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getIssuerName() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getSubjectName() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getNotBeforeTime() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getNotAfterTime() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getSignature() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getSignatureAlgName() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getSignatureAlgOid() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getSignatureAlgParams() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getKeyUsage() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getExtKeyUsage() : DataArray;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getBasicConstraints() : number;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getSubjectAltNames() : DataArray;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Cert
方法 or 属性: getIssuerAltNames() : DataArray;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: cert
方法 or 属性: function createX509Cert(inStream : EncodingBlob, callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: cert
方法 or 属性: function createX509Cert(inStream : EncodingBlob) : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509CrlEntry|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509CrlEntry
方法 or 属性: getEncoded(callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509CrlEntry
方法 or 属性: getEncoded() : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509CrlEntry
方法 or 属性: getSerialNumber() : number;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509CrlEntry
方法 or 属性: getCertIssuer() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509CrlEntry
方法 or 属性: getRevocationDate() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: isRevoked(cert : X509Cert) : boolean;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getType() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getEncoded(callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getEncoded() : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: verify(key : cryptoFramework.PubKey, callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: verify(key : cryptoFramework.PubKey) : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getVersion() : number;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getIssuerName() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getLastUpdate() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getNextUpdate() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getRevokedCert(serialNumber : number) : X509CrlEntry;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getRevokedCertWithCert(cert : X509Cert) : X509CrlEntry;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getRevokedCerts(callback : AsyncCallback>) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getRevokedCerts() : Promise>;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getTbsInfo() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getSignature() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getSignatureAlgName() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getSignatureAlgOid() : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: X509Crl
方法 or 属性: getSignatureAlgParams() : DataBlob;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: cert
方法 or 属性: function createX509Crl(inStream : EncodingBlob, callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: cert
方法 or 属性: function createX509Crl(inStream : EncodingBlob) : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainValidator|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainValidator
方法 or 属性: validate(certChain : CertChainData, callback : AsyncCallback) : void;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainValidator
方法 or 属性: validate(certChain : CertChainData) : Promise;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: CertChainValidator
方法 or 属性: readonly algorithm : string;|@ohos.security.cert.d.ts| +|新增|NA|模块名: ohos.security.cert
类名: cert
方法 or 属性: function createCertChainValidator(algorithm :string) : CertChainValidator;|@ohos.security.cert.d.ts| +|新增|NA|类名:Random
方法or属性:setSeed(seed : DataBlob) : void;|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: PermissionRequestResult
类名: PermissionRequestResult|PermissionRequestResult.d.ts| +|新增|NA|模块名: PermissionRequestResult
类名: PermissionRequestResult
方法 or 属性: permissions: Array;|PermissionRequestResult.d.ts| +|新增|NA|模块名: PermissionRequestResult
类名: PermissionRequestResult
方法 or 属性: authResults: Array;|PermissionRequestResult.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性:ERR_CERT_SIGNATURE_FAILURE = 17630002|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性:ERR_CERT_NOT_YET_VALID = 17630003|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性:ERR_CERT_HAS_EXPIRED = 17630004|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性:ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY = 17630005|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性:ERR_KEYUSAGE_NO_CERTSIGN = 17630006|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: Result
方法 or 属性:ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE = 17630007|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: DataArray|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: DataArray
方法 or 属性:data : Array;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: EncodingFormat|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: EncodingFormat
方法 or 属性:FORMAT_DER = 0|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: EncodingFormat
方法 or 属性:FORMAT_PEM = 1|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: EncodingBlob|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: EncodingBlob
方法 or 属性:data : Uint8Array;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: EncodingBlob
方法 or 属性:encodingFormat : EncodingFormat;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainData|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainData
方法 or 属性:data: Uint8Array;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainData
方法 or 属性:count : number;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainData
方法 or 属性:encodingFormat: EncodingFormat;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:verify(key : PubKey, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:verify(key : PubKey) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getEncoded(callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getEncoded() : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getPublicKey(callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getPublicKey() : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:checkValidityWithDate(date: string, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:checkValidityWithDate(date: string) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getVersion() : number;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getSerialNumber() : number;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getIssuerName() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getSubjectName() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getNotBeforeTime() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getNotAfterTime() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getSignature() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getSignatureAlgName() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getSignatureAlgOid() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getSignatureAlgParams() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getKeyUsage() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getExtKeyUsage() : DataArray;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getBasicConstraints() : number;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getSubjectAltNames() : DataArray;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法 or 属性:getIssuerAltNames() : DataArray;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名:ohos.security.cryptoFramework
类名:cryptoFramework
方法 or 属性:function createX509Cert(inStream : EncodingBlob, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名:ohos.security.cryptoFramework
类名:cryptoFramework
方法 or 属性:function createX509Cert(inStream : EncodingBlob) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法 or 属性:getEncoded(callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法 or 属性:getEncoded() : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法 or 属性:getSerialNumber() : number;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法 or 属性:getCertIssuer(callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法 or 属性:getCertIssuer() : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法 or 属性:getRevocationDate(callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法 or 属性:getRevocationDate() : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:isRevoked(cert : X509Cert, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:isRevoked(cert : X509Cert) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getType() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getEncoded(callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getEncoded() : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:verify(key : PubKey, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:verify(key : PubKey) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getVersion() : number;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getIssuerName() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getLastUpdate() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getNextUpdate() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getRevokedCert(serialNumber : number, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getRevokedCert(serialNumber : number) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getRevokedCertWithCert(cert : X509Cert, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getRevokedCertWithCert(cert : X509Cert) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getRevokedCerts(callback : AsyncCallback>) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getRevokedCerts() : Promise>;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getTbsInfo(callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getTbsInfo() : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getSignature() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getSignatureAlgName() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getSignatureAlgOid() : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法 or 属性:getSignatureAlgParams() : DataBlob;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名:ohos.security.cryptoFramework
类名:cryptoFramework
方法 or 属性:function createX509Crl(inStream : EncodingBlob, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名:ohos.security.cryptoFramework
类名:cryptoFramework
方法 or 属性:function createX509Crl(inStream : EncodingBlob) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainValidator|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainValidator
方法 or 属性:validate(certChain : CertChainData, callback : AsyncCallback) : void;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainValidator
方法 or 属性:validate(certChain : CertChainData) : Promise;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名: ohos.security.cryptoFramework
类名: CertChainValidator
方法 or 属性:readonly algorithm : string;|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名:ohos.security.cryptoFramework
类名:cryptoFramework
方法 or 属性:function createCertChainValidator(algorithm :string) : CertChainValidator;|NA|@ohos.security.cryptoFramework.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID \| 0
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID \| 0
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PWD = HuksTagType.HUKS_TAG_TYPE_BYTES \| 13
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PWD = HuksTagType.HUKS_TAG_TYPE_BYTES \| 13
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_MAIN_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES \| 16
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_MAIN_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES \| 16
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_FACTOR = HuksTagType.HUKS_TAG_TYPE_BYTES \| 17
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_FACTOR = HuksTagType.HUKS_TAG_TYPE_BYTES \| 17
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT \| 18
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT \| 18
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ACTIVE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 201
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ACTIVE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 201
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ORIGINATION_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 202
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ORIGINATION_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 202
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_USAGE_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 203
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_USAGE_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 203
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_CREATION_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 204
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_CREATION_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 204
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_BRAND = HuksTagType.HUKS_TAG_TYPE_BYTES \| 503
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_BRAND = HuksTagType.HUKS_TAG_TYPE_BYTES \| 503
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_DEVICE = HuksTagType.HUKS_TAG_TYPE_BYTES \| 504
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_DEVICE = HuksTagType.HUKS_TAG_TYPE_BYTES \| 504
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_PRODUCT = HuksTagType.HUKS_TAG_TYPE_BYTES \| 505
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_PRODUCT = HuksTagType.HUKS_TAG_TYPE_BYTES \| 505
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SERIAL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 506
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SERIAL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 506
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_IMEI = HuksTagType.HUKS_TAG_TYPE_BYTES \| 507
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_IMEI = HuksTagType.HUKS_TAG_TYPE_BYTES \| 507
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MEID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 508
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MEID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 508
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MANUFACTURER = HuksTagType.HUKS_TAG_TYPE_BYTES \| 509
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MANUFACTURER = HuksTagType.HUKS_TAG_TYPE_BYTES \| 509
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MODEL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 510
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MODEL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 510
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SOCID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 512
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SOCID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 512
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_UDID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 513
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_UDID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 513
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 1009
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 1009
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_UUID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 1010
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_UUID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 1010
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PROCESS_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10001
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PROCESS_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10001
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PACKAGE_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10002
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PACKAGE_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10002
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ACCESS_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10003
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ACCESS_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10003
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_USES_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10004
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_USES_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10004
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_CRYPTO_CTX = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10005
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_CRYPTO_CTX = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10005
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_KEY_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10007
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_KEY_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10007
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PAYLOAD_LEN = HuksTagType.HUKS_TAG_TYPE_UINT \| 10008
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PAYLOAD_LEN = HuksTagType.HUKS_TAG_TYPE_UINT \| 10008
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_IS_KEY_HANDLE = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10010
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_IS_KEY_HANDLE = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10010
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10101
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10101
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|废弃版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_PATCHLEVEL = HuksTagType.HUKS_TAG_TYPE_UINT \| 10102
废弃版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_PATCHLEVEL = HuksTagType.HUKS_TAG_TYPE_UINT \| 10102
废弃版本:9
代替接口:N/A|@ohos.security.huks.d.ts| +|起始版本有变化|类名:SymKey
起始版本:N/A|类名:SymKey
起始版本:9|@ohos.security.cryptoFramework.d.ts| +|起始版本有变化|类名:SymKey
方法 or 属性:clearMem() : void;
起始版本:N/A|类名:SymKey
方法 or 属性:clearMem() : void;
起始版本:9|@ohos.security.cryptoFramework.d.ts| +|起始版本有变化|类名:Random
起始版本:N/A|类名:Random
起始版本:9|@ohos.security.cryptoFramework.d.ts| +|起始版本有变化|类名:Cipher
起始版本:N/A|类名:Cipher
起始版本:9|@ohos.security.cryptoFramework.d.ts| +|起始版本有变化|类名:KeyAgreement
起始版本:N/A|类名:KeyAgreement
起始版本:9|@ohos.security.cryptoFramework.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID \| 0
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID \| 0
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PWD = HuksTagType.HUKS_TAG_TYPE_BYTES \| 13
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PWD = HuksTagType.HUKS_TAG_TYPE_BYTES \| 13
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_MAIN_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES \| 16
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_MAIN_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES \| 16
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_FACTOR = HuksTagType.HUKS_TAG_TYPE_BYTES \| 17
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_FACTOR = HuksTagType.HUKS_TAG_TYPE_BYTES \| 17
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT \| 18
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_DERIVE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT \| 18
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ACTIVE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 201
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ACTIVE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 201
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ORIGINATION_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 202
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ORIGINATION_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 202
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_USAGE_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 203
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_USAGE_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 203
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_CREATION_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 204
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_CREATION_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 204
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_BRAND = HuksTagType.HUKS_TAG_TYPE_BYTES \| 503
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_BRAND = HuksTagType.HUKS_TAG_TYPE_BYTES \| 503
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_DEVICE = HuksTagType.HUKS_TAG_TYPE_BYTES \| 504
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_DEVICE = HuksTagType.HUKS_TAG_TYPE_BYTES \| 504
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_PRODUCT = HuksTagType.HUKS_TAG_TYPE_BYTES \| 505
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_PRODUCT = HuksTagType.HUKS_TAG_TYPE_BYTES \| 505
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SERIAL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 506
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SERIAL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 506
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_IMEI = HuksTagType.HUKS_TAG_TYPE_BYTES \| 507
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_IMEI = HuksTagType.HUKS_TAG_TYPE_BYTES \| 507
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MEID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 508
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MEID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 508
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MANUFACTURER = HuksTagType.HUKS_TAG_TYPE_BYTES \| 509
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MANUFACTURER = HuksTagType.HUKS_TAG_TYPE_BYTES \| 509
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MODEL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 510
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_MODEL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 510
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SOCID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 512
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_SOCID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 512
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_UDID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 513
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ATTESTATION_ID_UDID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 513
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 1009
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 1009
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_UUID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 1010
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_SECURE_KEY_UUID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 1010
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PROCESS_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10001
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PROCESS_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10001
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PACKAGE_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10002
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PACKAGE_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10002
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_ACCESS_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10003
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_ACCESS_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10003
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_USES_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10004
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_USES_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10004
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_CRYPTO_CTX = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10005
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_CRYPTO_CTX = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10005
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_KEY_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10007
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_KEY_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10007
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_PAYLOAD_LEN = HuksTagType.HUKS_TAG_TYPE_UINT \| 10008
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_PAYLOAD_LEN = HuksTagType.HUKS_TAG_TYPE_UINT \| 10008
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_IS_KEY_HANDLE = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10010
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_IS_KEY_HANDLE = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10010
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10101
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10101
起始版本:8|@ohos.security.huks.d.ts| +|起始版本有变化|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_PATCHLEVEL = HuksTagType.HUKS_TAG_TYPE_UINT \| 10102
起始版本:N/A|类名:HuksTag
方法 or 属性:HUKS_TAG_OS_PATCHLEVEL = HuksTagType.HUKS_TAG_TYPE_UINT \| 10102
起始版本:8|@ohos.security.huks.d.ts| +|新增(错误码)|NA|类名:AsyKeyGenerator
方法 or 属性:generateKeyPair() : Promise;
错误码内容:401,17620001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:AsyKeyGenerator
方法 or 属性:convertKey(pubKey : DataBlob, priKey : DataBlob) : Promise;
错误码内容:401,17620001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Cipher
方法 or 属性:init(opMode : CryptoMode, key : Key, params : ParamsSpec) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Cipher
方法 or 属性:update(data : DataBlob) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Cipher
方法 or 属性:doFinal(data : DataBlob) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Sign
方法 or 属性:init(priKey : PriKey) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Sign
方法 or 属性:update(data : DataBlob) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Sign
方法 or 属性:sign(data : DataBlob) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Verify
方法 or 属性:init(pubKey : PubKey) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Verify
方法 or 属性:update(data : DataBlob) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:Verify
方法 or 属性:verify(data : DataBlob, signatureData : DataBlob) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|新增(错误码)|NA|类名:KeyAgreement
方法 or 属性:generateSecret(priKey : PriKey, pubKey : PubKey) : Promise;
错误码内容:401,17620001,17620002,17630001|@ohos.security.cryptoFramework.d.ts| +|函数有变化|类名:huks
方法 or 属性:function update(handle: number, options: HuksOptions, callback: AsyncCallback) : void;
|类名:huks
方法 or 属性:function update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback) : void;
|@ohos.security.huks.d.ts| +|函数有变化|类名:huks
方法 or 属性:function update(handle: number, options: HuksOptions, token: Uint8Array, callback: AsyncCallback) : void;
|类名:huks
方法 or 属性:function update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback) : void;
|@ohos.security.huks.d.ts| +|函数有变化|类名:huks
方法 or 属性:function update(handle: number, options: HuksOptions, token?: Uint8Array) : Promise;
|类名:huks
方法 or 属性:function update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise;
|@ohos.security.huks.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-start-up.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-start-up.md new file mode 100644 index 0000000000000000000000000000000000000000..20c7c46b0ef61a48e1898289ae04355451ba200f --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-start-up.md @@ -0,0 +1,4 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增(权限)|类名:deviceInfo
方法 or 属性:const serial: string;
权限:N/A|类名:deviceInfo
方法 or 属性:const serial: string;
权限:ohos.permission.sec.ACCESS_UDID|@ohos.deviceInfo.d.ts| +|新增(权限)|类名:deviceInfo
方法 or 属性:const udid: string;
权限:N/A|类名:deviceInfo
方法 or 属性:const udid: string;
权限:ohos.permission.sec.ACCESS_UDID|@ohos.deviceInfo.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-telephony.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..122490fee3eb748c0c18e735094d5ebf6777bd6e --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-telephony.md @@ -0,0 +1,243 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:CallTransferInfo
方法or属性:startHour?: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:CallTransferInfo
方法or属性:startMinute?: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:CallTransferInfo
方法or属性:endHour?: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:CallTransferInfo
方法or属性:endMinute?: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:CallTransferResult
方法or属性:startHour: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:CallTransferResult
方法or属性:startMinute: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:CallTransferResult
方法or属性:endHour: number;|@ohos.telephony.call.d.ts| +|新增|NA|类名:CallTransferResult
方法or属性:endMinute: number;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:UNASSIGNED_NUMBER = 1|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:UNASSIGNED_NUMBER = 1|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NO_ROUTE_TO_DESTINATION = 3|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NO_ROUTE_TO_DESTINATION = 3|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:CHANNEL_UNACCEPTABLE = 6|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:CHANNEL_UNACCEPTABLE = 6|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:OPERATOR_DETERMINED_BARRING = 8|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:OPERATOR_DETERMINED_BARRING = 8|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:CALL_COMPLETED_ELSEWHERE = 13|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:CALL_COMPLETED_ELSEWHERE = 13|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NORMAL_CALL_CLEARING = 16|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NORMAL_CALL_CLEARING = 16|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:USER_BUSY = 17|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:USER_BUSY = 17|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NO_USER_RESPONDING = 18|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NO_USER_RESPONDING = 18|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:USER_ALERTING_NO_ANSWER = 19|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:USER_ALERTING_NO_ANSWER = 19|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:CALL_REJECTED = 21|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:CALL_REJECTED = 21|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NUMBER_CHANGED = 22|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NUMBER_CHANGED = 22|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:CALL_REJECTED_DUE_TO_FEATURE_AT_THE_DESTINATION = 24|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:CALL_REJECTED_DUE_TO_FEATURE_AT_THE_DESTINATION = 24|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:FAILED_PRE_EMPTION = 25|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:FAILED_PRE_EMPTION = 25|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NON_SELECTED_USER_CLEARING = 26|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NON_SELECTED_USER_CLEARING = 26|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:DESTINATION_OUT_OF_ORDER = 27|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:DESTINATION_OUT_OF_ORDER = 27|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INVALID_NUMBER_FORMAT = 28|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INVALID_NUMBER_FORMAT = 28|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:FACILITY_REJECTED = 29|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:FACILITY_REJECTED = 29|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RESPONSE_TO_STATUS_ENQUIRY = 30|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RESPONSE_TO_STATUS_ENQUIRY = 30|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NORMAL_UNSPECIFIED = 31|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NORMAL_UNSPECIFIED = 31|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NO_CIRCUIT_CHANNEL_AVAILABLE = 34|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NO_CIRCUIT_CHANNEL_AVAILABLE = 34|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NETWORK_OUT_OF_ORDER = 38|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NETWORK_OUT_OF_ORDER = 38|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:TEMPORARY_FAILURE = 41|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:TEMPORARY_FAILURE = 41|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:SWITCHING_EQUIPMENT_CONGESTION = 42|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:SWITCHING_EQUIPMENT_CONGESTION = 42|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:ACCESS_INFORMATION_DISCARDED = 43|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:ACCESS_INFORMATION_DISCARDED = 43|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:REQUEST_CIRCUIT_CHANNEL_NOT_AVAILABLE = 44|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:REQUEST_CIRCUIT_CHANNEL_NOT_AVAILABLE = 44|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RESOURCES_UNAVAILABLE_UNSPECIFIED = 47|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RESOURCES_UNAVAILABLE_UNSPECIFIED = 47|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:QUALITY_OF_SERVICE_UNAVAILABLE = 49|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:QUALITY_OF_SERVICE_UNAVAILABLE = 49|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:REQUESTED_FACILITY_NOT_SUBSCRIBED = 50|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:REQUESTED_FACILITY_NOT_SUBSCRIBED = 50|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INCOMING_CALLS_BARRED_WITHIN_THE_CUG = 55|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INCOMING_CALLS_BARRED_WITHIN_THE_CUG = 55|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:BEARER_CAPABILITY_NOT_AUTHORIZED = 57|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:BEARER_CAPABILITY_NOT_AUTHORIZED = 57|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:BEARER_CAPABILITY_NOT_PRESENTLY_AVAILABLE = 58|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:BEARER_CAPABILITY_NOT_PRESENTLY_AVAILABLE = 58|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:SERVICE_OR_OPTION_NOT_AVAILABLE_UNSPECIFIED = 63|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:SERVICE_OR_OPTION_NOT_AVAILABLE_UNSPECIFIED = 63|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:BEARER_SERVICE_NOT_IMPLEMENTED = 65|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:BEARER_SERVICE_NOT_IMPLEMENTED = 65|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:ACM_EQUALTO_OR_GREATER_THAN_THE_MAXIMUM_VALUE = 68|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:ACM_EQUALTO_OR_GREATER_THAN_THE_MAXIMUM_VALUE = 68|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:REQUESTED_FACILITY_NOT_IMPLEMENTED = 69|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:REQUESTED_FACILITY_NOT_IMPLEMENTED = 69|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:ONLY_RESTRICTED_DIGITAL_INFO_BEARER_CAPABILITY_IS_AVAILABLE = 70|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:ONLY_RESTRICTED_DIGITAL_INFO_BEARER_CAPABILITY_IS_AVAILABLE = 70|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:SERVICE_OR_OPTION_NOT_IMPLEMENTED_UNSPECIFIED = 79|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:SERVICE_OR_OPTION_NOT_IMPLEMENTED_UNSPECIFIED = 79|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INVALID_TRANSACTION_IDENTIFIER_VALUE = 81|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INVALID_TRANSACTION_IDENTIFIER_VALUE = 81|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:USER_NOT_MEMBER_OF_CUG = 87|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:USER_NOT_MEMBER_OF_CUG = 87|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INCOMPATIBLE_DESTINATION = 88|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INCOMPATIBLE_DESTINATION = 88|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INVALID_TRANSIT_NETWORK_SELECTION = 91|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INVALID_TRANSIT_NETWORK_SELECTION = 91|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:SEMANTICALLY_INCORRECT_MESSAGE = 95|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:SEMANTICALLY_INCORRECT_MESSAGE = 95|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INVALID_MANDATORY_INFORMATION = 96|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INVALID_MANDATORY_INFORMATION = 96|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:MESSAGE_TYPE_NON_EXISTENT_OR_NOT_IMPLEMENTED = 97|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:MESSAGE_TYPE_NON_EXISTENT_OR_NOT_IMPLEMENTED = 97|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INFORMATION_ELEMENT_NON_EXISTENT_OR_NOT_IMPLEMENTED = 99|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INFORMATION_ELEMENT_NON_EXISTENT_OR_NOT_IMPLEMENTED = 99|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:CONDITIONAL_IE_ERROR = 100|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:CONDITIONAL_IE_ERROR = 100|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RECOVERY_ON_TIMER_EXPIRED = 102|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RECOVERY_ON_TIMER_EXPIRED = 102|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:PROTOCOL_ERROR_UNSPECIFIED = 111|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:PROTOCOL_ERROR_UNSPECIFIED = 111|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INTERWORKING_UNSPECIFIED = 127|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INTERWORKING_UNSPECIFIED = 127|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:CALL_BARRED = 240|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:CALL_BARRED = 240|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:FDN_BLOCKED = 241|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:FDN_BLOCKED = 241|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:IMSI_UNKNOWN_IN_VLR = 242|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:IMSI_UNKNOWN_IN_VLR = 242|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:IMEI_NOT_ACCEPTED = 243|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:IMEI_NOT_ACCEPTED = 243|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:DIAL_MODIFIED_TO_USSD = 244|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:DIAL_MODIFIED_TO_USSD = 244|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:DIAL_MODIFIED_TO_SS = 245|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:DIAL_MODIFIED_TO_SS = 245|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:DIAL_MODIFIED_TO_DIAL = 246|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:DIAL_MODIFIED_TO_DIAL = 246|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_OFF = 247|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_OFF = 247|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:OUT_OF_SERVICE = 248|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:OUT_OF_SERVICE = 248|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NO_VALID_SIM = 249|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NO_VALID_SIM = 249|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_INTERNAL_ERROR = 250|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_INTERNAL_ERROR = 250|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NETWORK_RESP_TIMEOUT = 251|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NETWORK_RESP_TIMEOUT = 251|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NETWORK_REJECT = 252|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NETWORK_REJECT = 252|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_ACCESS_FAILURE = 253|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_ACCESS_FAILURE = 253|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_LINK_FAILURE = 254|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_LINK_FAILURE = 254|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_LINK_LOST = 255|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_LINK_LOST = 255|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_UPLINK_FAILURE = 256|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_UPLINK_FAILURE = 256|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_SETUP_FAILURE = 257|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_SETUP_FAILURE = 257|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_RELEASE_NORMAL = 258|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_RELEASE_NORMAL = 258|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:RADIO_RELEASE_ABNORMAL = 259|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:RADIO_RELEASE_ABNORMAL = 259|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:ACCESS_CLASS_BLOCKED = 260|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:ACCESS_CLASS_BLOCKED = 260|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:NETWORK_DETACH = 261|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:NETWORK_DETACH = 261|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:INVALID_PARAMETER = 1025|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:INVALID_PARAMETER = 1025|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:SIM_NOT_EXIT = 1026|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:SIM_NOT_EXIT = 1026|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:SIM_PIN_NEED = 1027|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:SIM_PIN_NEED = 1027|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:CALL_NOT_ALLOW = 1029|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:CALL_NOT_ALLOW = 1029|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:SIM_INVALID = 1045|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:SIM_INVALID = 1045|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: DisconnectedReason
方法 or 属性:UNKNOWN = 1279|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedReason
方法or属性:UNKNOWN = 1279|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedDetails
方法or属性:reason: DisconnectedReason;|@ohos.telephony.call.d.ts| +|新增|NA|类名:DisconnectedDetails
方法or属性:message: string;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_VOICE_MAIL_NUMBER_STRING = "voice_mail_number_string"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_IMS_SWITCH_ON_BY_DEFAULT_BOOL = "ims_switch_on_by_default_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_HIDE_IMS_SWITCH_BOOL = "hide_ims_switch_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_VOLTE_SUPPORTED_BOOL = "volte_supported_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_NR_MODE_SUPPORTED_LIST_INT_ARRAY = "nr_mode_supported_list_int_array"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_VOLTE_PROVISIONING_SUPPORTED_BOOL = "volte_provisioning_supported_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_SS_OVER_UT_SUPPORTED_BOOL = "ss_over_ut_supported_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_IMS_GBA_REQUIRED_BOOL = "ims_gba_required_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_UT_PROVISIONING_SUPPORTED_BOOL = "ut_provisioning_supported_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_IMS_PREFER_FOR_EMERGENCY_BOOL = "ims_prefer_for_emergency_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_CALL_WAITING_SERVICE_CLASS_INT = "call_waiting_service_class_int"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_CALL_TRANSFER_VISIBILITY_BOOL = "call_transfer_visibility_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_IMS_CALL_DISCONNECT_REASONINFO_MAPPING_STRING_ARRAY = "ims_call_disconnect_reasoninfo_mapping_string_array"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_FORCE_VOLTE_SWITCH_ON_BOOL = "force_volte_switch_on_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_ENABLE_OPERATOR_NAME_CUST_BOOL = "enable_operator_name_cust_bool"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_OPERATOR_NAME_CUST_STRING = "operator_name_cust_string"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_SPN_DISPLAY_CONDITION_CUST_INT = "spn_display_condition_cust_int"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_PNN_CUST_STRING_ARRAY = "pnn_cust_string_array"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_OPL_CUST_STRING_ARRAY = "opl_cust_string_array"|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: OperatorConfigKey
方法 or 属性: KEY_EMERGENCY_CALL_STRING_ARRAY = "emergency_call_string_array"|@ohos.telephony.sim.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:UNASSIGNED_NUMBER = 1|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:NO_ROUTE_TO_DESTINATION = 3|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:CHANNEL_UNACCEPTABLE = 6|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:OPERATOR_DETERMINED_BARRING = 8|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:NORMAL_CALL_CLEARING = 16|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:USER_BUSY = 17|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:NO_USER_RESPONDING = 18|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:USER_ALERTING_NO_ANSWER = 19|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:CALL_REJECTED = 21|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:NUMBER_CHANGED = 22|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:DESTINATION_OUT_OF_ORDER = 27|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:INVALID_NUMBER_FORMAT = 28|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:NETWORK_OUT_OF_ORDER = 38|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:TEMPORARY_FAILURE = 41|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:INVALID_PARAMETER = 1025|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:SIM_NOT_EXIT = 1026|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:SIM_PIN_NEED = 1027|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:CALL_NOT_ALLOW = 1029|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:SIM_INVALID = 1045|NA|@ohos.telephony.call.d.ts| +|删除|模块名:ohos.telephony.call
类名:DisconnectedDetails
方法 or 属性:UNKNOWN = 1279|NA|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:CallTransferInfo
方法 or 属性:transferNum: string;
起始版本:N/A|类名:CallTransferInfo
方法 or 属性:transferNum: string;
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:CallTransferInfo
方法 or 属性:type: CallTransferType;
起始版本:N/A|类名:CallTransferInfo
方法 or 属性:type: CallTransferType;
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:CallTransferInfo
方法 or 属性:settingType: CallTransferSettingType;
起始版本:N/A|类名:CallTransferInfo
方法 or 属性:settingType: CallTransferSettingType;
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:CallTransferResult
方法 or 属性:status: TransferStatus;
起始版本:N/A|类名:CallTransferResult
方法 or 属性:status: TransferStatus;
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:CallTransferResult
方法 or 属性:number: string;
起始版本:N/A|类名:CallTransferResult
方法 or 属性:number: string;
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:CallWaitingStatus
方法 or 属性:CALL_WAITING_DISABLE = 0
起始版本:N/A|类名:CallWaitingStatus
方法 or 属性:CALL_WAITING_DISABLE = 0
起始版本:7|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:CallWaitingStatus
方法 or 属性:CALL_WAITING_ENABLE = 1
起始版本:N/A|类名:CallWaitingStatus
方法 or 属性:CALL_WAITING_ENABLE = 1
起始版本:7|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:RestrictionStatus
方法 or 属性:RESTRICTION_DISABLE = 0
起始版本:N/A|类名:RestrictionStatus
方法 or 属性:RESTRICTION_DISABLE = 0
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:RestrictionStatus
方法 or 属性:RESTRICTION_ENABLE = 1
起始版本:N/A|类名:RestrictionStatus
方法 or 属性:RESTRICTION_ENABLE = 1
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:TransferStatus
方法 or 属性:TRANSFER_DISABLE = 0
起始版本:N/A|类名:TransferStatus
方法 or 属性:TRANSFER_DISABLE = 0
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:TransferStatus
方法 or 属性:TRANSFER_ENABLE = 1
起始版本:N/A|类名:TransferStatus
方法 or 属性:TRANSFER_ENABLE = 1
起始版本:8|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:EmergencyNumberOptions
方法 or 属性:slotId?: number;
起始版本:N/A|类名:EmergencyNumberOptions
方法 or 属性:slotId?: number;
起始版本:7|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:NumberFormatOptions
方法 or 属性:countryCode?: string;
起始版本:N/A|类名:NumberFormatOptions
方法 or 属性:countryCode?: string;
起始版本:7|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:AudioDeviceOptions
方法 or 属性:bluetoothAddress?: string;
起始版本:N/A|类名:AudioDeviceOptions
方法 or 属性:bluetoothAddress?: string;
起始版本:9|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:MmiCodeResults
方法 or 属性:result: MmiCodeResult;
起始版本:N/A|类名:MmiCodeResults
方法 or 属性:result: MmiCodeResult;
起始版本:9|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:MmiCodeResults
方法 or 属性:message: string;
起始版本:N/A|类名:MmiCodeResults
方法 or 属性:message: string;
起始版本:9|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:MmiCodeResult
方法 or 属性:MMI_CODE_SUCCESS = 0
起始版本:N/A|类名:MmiCodeResult
方法 or 属性:MMI_CODE_SUCCESS = 0
起始版本:9|@ohos.telephony.call.d.ts| +|起始版本有变化|类名:MmiCodeResult
方法 or 属性:MMI_CODE_FAILED = 1
起始版本:N/A|类名:MmiCodeResult
方法 or 属性:MMI_CODE_FAILED = 1
起始版本:9|@ohos.telephony.call.d.ts| +|权限有变化|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', callback: Callback>): void;
权限:ohos.permission.LOCATION|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', callback: Callback>): void;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.observer.d.ts| +|权限有变化|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', options: { slotId: number },
callback: Callback>): void;
权限:ohos.permission.LOCATION|类名:observer
方法 or 属性:function on(type: 'cellInfoChange', options: { slotId: number },
callback: Callback>): void;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.observer.d.ts| +|权限有变化|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback): void;
权限:ohos.permission.LOCATION|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(callback: AsyncCallback): void;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.radio.d.ts| +|权限有变化|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback): void;
权限:ohos.permission.LOCATION|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback): void;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.radio.d.ts| +|权限有变化|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId?: number): Promise;
权限:ohos.permission.LOCATION|类名:radio
方法 or 属性:function sendUpdateCellLocationRequest(slotId?: number): Promise;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.radio.d.ts| +|权限有变化|类名:radio
方法 or 属性:function getCellInformation(callback: AsyncCallback>): void;
权限:ohos.permission.LOCATION|类名:radio
方法 or 属性:function getCellInformation(callback: AsyncCallback>): void;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.radio.d.ts| +|权限有变化|类名:radio
方法 or 属性:function getCellInformation(slotId: number, callback: AsyncCallback>): void;
权限:ohos.permission.LOCATION|类名:radio
方法 or 属性:function getCellInformation(slotId: number, callback: AsyncCallback>): void;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.radio.d.ts| +|权限有变化|类名:radio
方法 or 属性:function getCellInformation(slotId?: number): Promise>;
权限:ohos.permission.LOCATION|类名:radio
方法 or 属性:function getCellInformation(slotId?: number): Promise>;
权限:ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION|@ohos.telephony.radio.d.ts| +|新增(权限)|类名:call
方法 or 属性:function hangup(callback: AsyncCallback): void;
权限:N/A|类名:call
方法 or 属性:function hangup(callback: AsyncCallback): void;
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|函数有变化|类名:sms
方法 or 属性:function isImsSmsSupported(callback: AsyncCallback): void;
|类名:sms
方法 or 属性:function isImsSmsSupported(slotId: number, callback: AsyncCallback): void;
|@ohos.telephony.sms.d.ts| +|函数有变化|类名:sms
方法 or 属性:function isImsSmsSupported(): Promise;
|类名:sms
方法 or 属性:function isImsSmsSupported(slotId: number): Promise;
|@ohos.telephony.sms.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-unitest.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-unitest.md new file mode 100644 index 0000000000000000000000000000000000000000..e0fb7933b4aab32bd701e4de1caf0dd5963f680d --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-unitest.md @@ -0,0 +1,10 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:Rect
方法or属性:readonly left: number;|@ohos.uitest.d.ts| +|新增|NA|类名:Rect
方法or属性:readonly top: number;|@ohos.uitest.d.ts| +|新增|NA|类名:Rect
方法or属性:readonly right: number;|@ohos.uitest.d.ts| +|新增|NA|类名:Rect
方法or属性:readonly bottom: number;|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:Rect
方法 or 属性:readonly leftX: number;|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:Rect
方法 or 属性:readonly topY: number;|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:Rect
方法 or 属性:readonly rightX: number;|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:Rect
方法 or 属性:readonly bottomY: number;|NA|@ohos.uitest.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-user-iam.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-user-iam.md new file mode 100644 index 0000000000000000000000000000000000000000..ddbdc22d641c0b7936b73e204bbcea354ef305ee --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-user-iam.md @@ -0,0 +1,35 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:SUCCESS = 12500000|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:SUCCESS = 12500000|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:FAIL = 12500001|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:FAIL = 12500001|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:GENERAL_ERROR = 12500002|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:GENERAL_ERROR = 12500002|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:CANCELED = 12500003|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:CANCELED = 12500003|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:TIMEOUT = 12500004|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:TIMEOUT = 12500004|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:TYPE_NOT_SUPPORT = 12500005|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:TYPE_NOT_SUPPORT = 12500005|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:TRUST_LEVEL_NOT_SUPPORT = 12500006|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:TRUST_LEVEL_NOT_SUPPORT = 12500006|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:BUSY = 12500007|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:BUSY = 12500007|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:LOCKED = 12500009|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:LOCKED = 12500009|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: UserAuthResultCode
方法 or 属性:NOT_ENROLLED = 12500010|@ohos.userIAM.userAuth.d.ts| +|新增|NA|类名:UserAuthResultCode
方法or属性:NOT_ENROLLED = 12500010|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:SUCCESS = 12500000|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:FAIL = 12500001|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:GENERAL_ERROR = 12500002|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:CANCELED = 12500003|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:TIMEOUT = 12500004|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:TYPE_NOT_SUPPORT = 12500005|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:TRUST_LEVEL_NOT_SUPPORT = 12500006|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:BUSY = 12500007|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:LOCKED = 12500009|NA|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法 or 属性:NOT_ENROLLED = 12500010|NA|@ohos.userIAM.userAuth.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-web.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-web.md new file mode 100644 index 0000000000000000000000000000000000000000..b4802d655f4c0fef02265798db3f14e15f18e312 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-web.md @@ -0,0 +1,64 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme|@ohos.web.webview.d.ts| +|新增|NA|类名:WebCustomScheme
方法or属性:|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme
方法 or 属性:schemeName: string;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebCustomScheme
方法or属性:schemeName: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme
方法 or 属性:isSupportCORS: boolean;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebCustomScheme
方法or属性:isSupportCORS: boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCustomScheme
方法 or 属性:isSupportFetch: boolean;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebCustomScheme
方法or属性:isSupportFetch: boolean;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: webview
方法 or 属性:function once(type: string, callback: Callback): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:webview
方法or属性:function once(type: string, callback: Callback): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem|@ohos.web.webview.d.ts| +|新增|NA|类名:HistoryItem
方法or属性:|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性:icon: image.PixelMap;|@ohos.web.webview.d.ts| +|新增|NA|类名:HistoryItem
方法or属性:icon: image.PixelMap;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性:historyUrl: string;|@ohos.web.webview.d.ts| +|新增|NA|类名:HistoryItem
方法or属性:historyUrl: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性:historyRawUrl: string;|@ohos.web.webview.d.ts| +|新增|NA|类名:HistoryItem
方法or属性:historyRawUrl: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HistoryItem
方法 or 属性:title: string;|@ohos.web.webview.d.ts| +|新增|NA|类名:HistoryItem
方法or属性:title: string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: BackForwardList|@ohos.web.webview.d.ts| +|新增|NA|类名:BackForwardList
方法or属性:|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: BackForwardList
方法 or 属性:currentIndex: number;|@ohos.web.webview.d.ts| +|新增|NA|类名:BackForwardList
方法or属性:currentIndex: number;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: BackForwardList
方法 or 属性:size: number;|@ohos.web.webview.d.ts| +|新增|NA|类名:BackForwardList
方法or属性:size: number;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: BackForwardList
方法 or 属性:getItemAtIndex(index: number): HistoryItem;|@ohos.web.webview.d.ts| +|新增|NA|类名:BackForwardList
方法or属性:getItemAtIndex(index: number): HistoryItem;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:static initializeWebEngine(): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:static initializeWebEngine(): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:pageUp(top:boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:pageUp(top:boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:pageDown(bottom:boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:pageDown(bottom:boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:getOriginalUrl(): string;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:getOriginalUrl(): string;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:getFavicon(): image.PixelMap;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:getFavicon(): image.PixelMap;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:setNetworkAvailable(enable: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:setNetworkAvailable(enable: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:hasImage(): Promise;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:hasImage(): Promise;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:hasImage(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:hasImage(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:getBackForwardEntries(): BackForwardList;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:getBackForwardEntries(): BackForwardList;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:removeCache(clearRom: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:removeCache(clearRom: boolean): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:scrollTo(x:number, y:number): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:scrollTo(x:number, y:number): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:scrollBy(deltaX:number, deltaY:number): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:scrollBy(deltaX:number, deltaY:number): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:slideScroll(vx:number, vy:number): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:slideScroll(vx:number, vy:number): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:serializeWebState() : Uint8Array;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:serializeWebState() : Uint8Array;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:restoreWebState(state: Uint8Array) : void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:restoreWebState(state: Uint8Array) : void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法 or 属性:static customizeSchemes(schemes: Array): void;|@ohos.web.webview.d.ts| +|新增|NA|类名:WebviewController
方法or属性:static customizeSchemes(schemes: Array): void;|@ohos.web.webview.d.ts| +|函数有变化|类名:WebMessagePort
方法 or 属性:postMessageEvent(message: string): void;
|类名:WebMessagePort
方法 or 属性:postMessageEvent(message: WebMessage): void;
|@ohos.web.webview.d.ts| +|函数有变化|类名:WebMessagePort
方法 or 属性:onMessageEvent(callback: (result: string) => void): void;
|类名:WebMessagePort
方法 or 属性:onMessageEvent(callback: (result: WebMessage) => void): void;
|@ohos.web.webview.d.ts| diff --git a/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-window.md b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-window.md new file mode 100644 index 0000000000000000000000000000000000000000..2952efd6e62756c12b8d8c31addc6b5fcaab8c9a --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.2-beta5/js-apidiff-window.md @@ -0,0 +1,6 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|类名:WindowStageEventType
方法or属性:SHOWN = 1|@ohos.window.d.ts| +|新增|NA|类名:WindowStageEventType
方法or属性:HIDDEN|@ohos.window.d.ts| +|删除|模块名:ohos.window
类名:WindowStageEventType
方法 or 属性:FOREGROUND = 1|NA|@ohos.window.d.ts| +|删除|模块名:ohos.window
类名:WindowStageEventType
方法 or 属性:BACKGROUND|NA|@ohos.window.d.ts| 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.6/changelogs-telephony.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..e4a4c1fc70e264c2a3a4d0e2fb24242c221ceb88 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-telephony.md @@ -0,0 +1,59 @@ +# 电话子系统ChangeLog + + + +## cl.telephony.1 radio模块接口变更 + + +### 电话子系统radio模块 `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); +``` diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-security.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-security.md new file mode 100644 index 0000000000000000000000000000000000000000..af9c4c0d1258cfa03660afaca9754cac09b12101 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-security.md @@ -0,0 +1,87 @@ +# 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) + +## cl.security.2 ECC密码算法的参数名从ECC512变更为ECC521 + +**变更影响** + +影响已发布的JS接口,接口行为发生变更。 +应用需要进行适配,才可以在新版本SDK环境获取正确结果。 + +**关键的接口/组件变更** +发布的JS接口不变, 传入接口的参数发生变化,由ECC512变化为ECC521,具体可见[加解密算法库框架-ECC密码算法参数参考](../../../application-dev/security/cryptoFramework-overview.md#密钥生成规格),涉及的接口有: + +cryptoFramework.createAsyKeyGenerator + +cryptoFramework.createSign + +cryptoFramework.createVerify + +cryptoFramework.createKeyAgreement + +**适配指导** + +```js +import cryptoFramework from "@ohos.security.cryptoFramework" + +let asyKeyGenerator = cryptoFramework.createAsyKeyGenerator("ECC521"); +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-telephony.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..cd74291d37afa9e4aee941a0e813824ede5af546 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-telephony.md @@ -0,0 +1,223 @@ +# 电话子系统ChangeLog + + + +## cl.telephony.1 call模块reject接口变更 +从API9开始,废弃此接口,改为使用rejectCall接口。 + +开发者需要根据以下说明对应用进行适配。 + +**变更影响** + +该接口删除无法再使用,请使用新增的接口rejectCall替换,否则会影响原有功能。 + +- 涉及接口 + +```js + function reject(callId: number, callback: AsyncCallback): void; + function reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback): void; + function reject(callId?: number, options?: RejectMessageOptions): Promise; + function reject(callback: AsyncCallback): void; + function reject(options: RejectMessageOptions, callback: AsyncCallback): void; +``` + +- 变更前: + +```js + function reject(callId: number, callback: AsyncCallback): void; + function reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback): void; + function reject(callId?: number, options?: RejectMessageOptions): Promise; + function reject(callback: AsyncCallback): void; + function reject(options: RejectMessageOptions, callback: AsyncCallback): void; +``` + +- 变更后: + +```js + function rejectCall(callId: number, callback: AsyncCallback): void; + function rejectCall(callId: number, options: RejectMessageOptions, callback: AsyncCallback): void; + function rejectCall(callId?: number, options?: RejectMessageOptions): Promise; + function rejectCall(callback: AsyncCallback): void; + function rejectCall(options: RejectMessageOptions, callback: AsyncCallback): void; +``` + + +**适配指导** + +该接口删除无法再使用,请使用新增的接口rejectCall替换。 +使用变更后的接口,示例代码如下: + +```js +call.rejectCall("138xxxxxxxx", (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +```js +let rejectMessageOptions={ + messageContent: "拦截陌生号码" +} +let promise = call.rejectCall(1, rejectMessageOptions); +promise.then(data => { + console.log(`rejectCall success, promise: data->${JSON.stringify(data)}`); +}).catch(err => { + console.error(`rejectCall fail, promise: err->${JSON.stringify(err)}`); +}); +``` + + +```js +let rejectMessageOptions={ + messageContent: "拦截陌生号码" +} +let promise = call.rejectCall(1, rejectMessageOptions); +promise.then(data => { + console.log(`rejectCall success, promise: data->${JSON.stringify(data)}`); +}).catch(err => { + console.error(`rejectCall fail, promise: err->${JSON.stringify(err)}`); +}); +``` + + +```js +call.rejectCall((err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +```js +let rejectMessageOptions={ + messageContent: "拦截陌生号码" +} +call.rejectCall(rejectMessageOptions, (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +## cl.telephony.2 call模块answer接口变更 +从API9开始,废弃此接口,改为使answerCall接口。 + +开发者需要根据以下说明对应用进行适配。 + +**变更影响** + +该接口删除无法再使用,请使用新增的接口answerCall替换,否则会影响原有功能。 + +- 涉及接口 + +```js + function answer(callId: number, callback: AsyncCallback): void; + function answer(callId?: number): Promise; + function answer(callback: AsyncCallback): void; +``` + +- 变更前: + +```js + function answer(callId: number, callback: AsyncCallback): void; + function answer(callId?: number): Promise; + function answer(callback: AsyncCallback): void; +``` + +- 变更后: + +```js + function answerCall(callId: number, callback: AsyncCallback): void; + function answerCall(callId?: number): Promise; + function answerCall(callback: AsyncCallback): void; +``` + + +**适配指导** + +该接口删除无法再使用,请使用新增的接口answerCall替换。 +使用变更后的接口,示例代码如下: + +```js +call.answerCall(1, (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +```js +let promise = call.answerCall(1); +promise.then(data => { + console.log(`answerCall success, promise: data->${JSON.stringify(data)}`); +}).catch(err => { + console.error(`answerCall fail, promise: err->${JSON.stringify(err)}`); +}); +``` + + +```js +call.answerCall((err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +## cl.telephony.1 call模块hangup接口变更 +从API9开始,废弃此接口,改为使用hangUpCall接口。 + +开发者需要根据以下说明对应用进行适配。 + +**变更影响** + +该接口删除无法再使用,请使用新增的接口hangUpCall替换,否则会影响原有功能。 + +- 涉及接口 + +```js + function hangup(callId: number, callback: AsyncCallback): void; + function hangup(callId?: number): Promise; + function hangup(callback: AsyncCallback): void; +``` + +- 变更前: + +```js + function hangup(callId: number, callback: AsyncCallback): void; + function hangup(callId?: number): Promise; + function hangup(callback: AsyncCallback): void; +``` + +- 变更后: + +```js + function hangUpCall(callId: number, callback: AsyncCallback): void; + function hangUpCall(callId?: number): Promise; + function hangUpCall(callback: AsyncCallback): void; +``` + + +**适配指导** + +该接口删除无法再使用,请使用新增的接口hangUpCall替换。 +使用变更后的接口,示例代码如下: + +```js +call.hangUpCall(1, (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +```js +let promise = call.hangUpCall(1); +promise.then(data => { + console.log(`hangUpCall success, promise: data->${JSON.stringify(data)}`); +}).catch(err => { + console.error(`hangUpCall fail, promise: err->${JSON.stringify(err)}`); +}); +``` + + +```js +call.hangUpCall((err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` \ 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..1fd92a86421021c0ac26639f04c56c4e5c0f01f6 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-web.md @@ -0,0 +1,467 @@ +# 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类型。 + +## cl.web.6 WebMessagePort类迁移 + +WebMessagePort类迁移至@ohos.web.webview.d.ts,并新增错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现该类下接口支持错误码处理,需注意错误码处理的使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + postMessageEvent(message: WebMessageEvent): void; + onMessageEvent(callback: (result: string) => void): void; + +- 变更前: + + ```ts + postMessageEvent(message: WebMessageEvent): void; + onMessageEvent(callback: (result: string) => void): void; + ``` + +- 变更后: + + ```ts + postMessageEvent(message: WebMessage): void; + onMessageEvent(callback: (result: WebMessage) => void): void; + ``` + +**适配指导** + +原WebMessagePort类不需要import,现WebMessagePort类使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.7 HitTestValue类迁移 + +HitTestValue类迁移至@ohos.web.webview.d.ts,HitTestValue类变更为接口,getType,getExtra变更为属性。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。 + +**关键的接口/组件变更** + +- 涉及接口 + + getType(): HitTestType; + getExtra(): string; + +- 变更前: + + ```ts + getType(): HitTestType; + getExtra(): string; + ``` + +- 变更后: + + ```ts + type: WebHitTestType; + extra: string; + ``` + +**适配指导** + +原HitTestValue类不需要import,现HitTestValue类使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.8 WebCookie类下api9接口迁移 + +WebCookie类下api9接口迁移,WebCookie类下api9接口迁移到web.webview.webview.WebCookieManager。 +并新增接口错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现该类下接口支持错误码处理,需注意错误码处理的使用。 +该类方法变为静态方法。 + +**关键的接口/组件变更** + +- 涉及接口 + + isCookieAllowed(): boolean; + isThirdPartyCookieAllowed(): boolean; + putAcceptCookieEnabled(accept: boolean): void; + putAcceptThirdPartyCookieEnabled(accept: boolean): void; + setCookie(url: string, value: string): boolean; + saveCookieSync(): boolean; + getCookie(url: string): string; + existCookie(): boolean; + deleteEntireCookie(): void; + deleteSessionCookie(): void; + +- 变更前: + + ```ts + isCookieAllowed(): boolean; + isThirdPartyCookieAllowed(): boolean; + putAcceptCookieEnabled(accept: boolean): void; + putAcceptThirdPartyCookieEnabled(accept: boolean): void; + setCookie(url: string, value: string): boolean; + saveCookieSync(): boolean; + getCookie(url: string): string; + existCookie(): boolean; + deleteEntireCookie(): void; + deleteSessionCookie(): void; + ``` + +- 变更后: + + ```ts + static isCookieAllowed(): boolean; + static isThirdPartyCookieAllowed(): boolean; + static putAcceptCookieEnabled(accept: boolean): void; + static putAcceptThirdPartyCookieEnabled(accept: boolean): void; + static setCookie(url: string, value: string): void; + static saveCookieAsync(): Promise; + static saveCookieAsync(callback: AsyncCallback): void; + static getCookie(url: string): string; + static existCookie(): boolean; + static deleteEntireCookie(): void; + static deleteSessionCookie(): void; + ``` + +**适配指导** + +原WebCookie类不需要import,现WebCookieManager使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.9 WebController类下api9接口迁移 + +WebController类下api9接口迁移至web.webview.webview.WebviewController,并新增接口错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现该类下接口支持错误码处理,需注意错误码处理的使用。 +getDefaultUserAgent接口更名为getUserAgent。 + +**关键的接口/组件变更** + +- 涉及接口 + + zoomIn(): boolean; + zoomOut(): boolean; + createWebMessagePorts(): Array; + postMessage(options: { message: WebMessageEvent, uri: string}): void; + getHitTestValue(): HitTestValue; + getWebId(): number; + getDefaultUserAgent(): string; + getTitle(): string; + getPageHeight(): number; + backOrForward(step: number): void; + searchAllAsync(searchString: string): void; + clearMatches(): void; + searchNext(forward: boolean): void; + clearSslCache(): void; + clearClientAuthenticationCache(): void; + getUrl(): string; + +- 变更前: + + ```ts + zoomIn(): boolean; + zoomOut(): boolean; + createWebMessagePorts(): Array; + postMessage(options: { message: WebMessageEvent, uri: string}): void; + getHitTestValue(): HitTestValue; + getWebId(): number; + getDefaultUserAgent(): string; + getTitle(): string; + getPageHeight(): number; + backOrForward(step: number): void; + searchAllAsync(searchString: string): void; + clearMatches(): void; + searchNext(forward: boolean): void; + clearSslCache(): void; + clearClientAuthenticationCache(): void; + getUrl(): string; + ``` + +- 变更后: + + ```ts + zoomIn(): void; + zoomOut(): void; + createWebMessagePorts(): Array; + postMessage(name: string, ports: Array, uri: string): void; + getHitTestValue(): HitTestValue; + getWebId(): number; + getUserAgent(): string; + getTitle(): string; + getPageHeight(): number; + backOrForward(step: number): void; + searchAllAsync(searchString: string): void; + clearMatches(): void; + searchNext(forward: boolean): void; + clearSslCache(): void; + clearClientAuthenticationCache(): void; + getUrl(): string; + ``` + +**适配指导** + +原WebController类不需要import,现WebviewController类使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.10 WebAsyncController类迁移 + +WebAsyncController类下接口迁移至web.webview.webview.WebviewController,并新增接口错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意错误码处理的使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + storeWebArchive(baseName: string, autoName: boolean): Promise; + storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback): void; + +- 变更前: + + ```ts + storeWebArchive(baseName: string, autoName: boolean): Promise; + storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback): void; + ``` + +- 变更后: + + ```ts + storeWebArchive(baseName: string, autoName: boolean): Promise; + storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback): void; + ``` + +**适配指导** + +使用示例: + + ```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('saveWebArchive') + .onClick(() => { + try { + this.controller.storeWebArchive("/data/storage/el2/base/", true, (error, filename) => { + if (error) { + console.info(`save web archive error: ` + JSON.stringify(error)) + return; + } + if (filename != null) { + console.info(`save web archive success: ${filename}`) + } + }); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } + } + ``` \ No newline at end of file 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 index ee19ef727948307f189f19ef2857e3f02eb64c70..a0d641d6dae54b7c19f4f9cf4edba3ffb2d25500 100644 --- 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 @@ -230,4 +230,4 @@ module.json配置文件中的ability的[name](../../../application-dev/quick-sta 删除配置文件module.json[distroFilter](../../../application-dev/quick-start/module-configuration-file.md)标签,IDE中不再支持配置该标签,使用该标签会导致IDE编译报错 **适配指导**
-删除module.json中[distroFilter](../../../application-dev/quick-start/module-configuration-file.md)标签,使用distributionFilter替代 \ No newline at end of file +删除module.json中[distroFilter](../../../application-dev/quick-start/module-configuration-file.md)标签,使用distributionFilter替代 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-telephony.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..c343633566d5a8107c999204127adea96448b2dd --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-telephony.md @@ -0,0 +1,76 @@ +# 电话子系统ChangeLog + + + +## cl.telephony.1 call模块dial接口变更 + +从API9开始,废弃此接口,改为使用dialCall接口。 + +开发者需要根据以下说明对应用进行适配。 + + +**变更影响** + +该接口作废,不推荐使用,请使用新增的接口dialCall替换。 + + +**关键的接口/组件变更** + +- 涉及接口 + +```js + 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_3.2.10.7/changelogs-util.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-util.md new file mode 100644 index 0000000000000000000000000000000000000000..4b3e484809c30b26853c544a61c5376dfc70bd9b --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-util.md @@ -0,0 +1,99 @@ +# util系统JS API变更Changelog + +OpenHarmony 3.2.10.7(Mr)版本相较于OpenHarmony 3.2.beta4版本,util子系统的API变更如下 + +## cl.util.1.randomUUID接口名变更 +util子系统randomUUID函数名存在变更: + +function randomUUID(entropyCache?: boolean): string 改为 function generateRandomUUID(entropyCache?: boolean): string 函数名由原来的randomUUID改为generateRandomUUID。 + +开发者需要根据以下说明对应用进行适配。 + + **变更影响** + +影响API9版本的JS接口,应用需要进行适配才可以在新版本SDK环境正常实现功能。 + +**关键的接口/组件变更** + +| 模块名 | 方法/属性/枚举/常量 | 变更类型 | +| :---------- | ------------------- | ------- | +| @ohos.util | function randomUUID(entropyCache?: boolean): string | 删除 | +| @ohos.util | function generateRandomUUID(entropyCache?: boolean): string| 变更 | + +**适配指导** + +应用中使用generateRandomUUID可参考下列代码 + +示例: + +```ts +import util from '@ohos.util' +let uuid = util.generateRandomUUID(true); +console.log("RFC 4122 Version 4 UUID:" + uuid); +// 输出: +// RFC 4122 Version 4 UUID:88368f2a-d5db-47d8-a05f-534fab0a0045 +``` + +## cl.util.2.randomBinaryUUID接口名变更 +util子系统randomBinaryUUID函数名存在变更: + +function randomBinaryUUID(entropyCache?: boolean): Uint8Array 改为 function generateRandomBinaryUUID(entropyCache?: boolean): Uint8Array 函数名由原来的randomBinaryUUID改为generateRandomBinaryUUID。 + +开发者需要根据以下说明对应用进行适配。 + + **变更影响** + +影响API9版本的JS接口,应用需要进行适配才可以在新版本SDK环境正常实现功能。 + +**关键的接口/组件变更** + +| 模块名 | 方法/属性/枚举/常量 | 变更类型 | +| :---------- | ------------------- | ------- | +| @ohos.util | function randomBinaryUUID(entropyCache?: boolean): Uint8Array; | 删除 | +| @ohos.util | function generateRandomBinaryUUID(entropyCache?: boolean): Uint8Array| 变更 | + +**适配指导** + +应用中使用generateRandomBinaryUUID可参考下列代码 + +示例: + +```ts +import util from '@ohos.util' +let uuid = util.generateRandomBinaryUUID(true); +console.log(JSON.stringify(uuid)); +// 输出: +// 138,188,43,243,62,254,70,119,130,20,235,222,199,164,140,150 +``` + +## cl.util.3.LRUCache类contains接口参数类型变更 +util子系统LRUCache类contains接口参数类型变更: + +contains(key: object): boolean 改为 contains(key: K): boolean 参数类型由原来的object改为K。 + +开发者需要根据以下说明对应用进行适配。 + + **变更影响** + +影响API9版本的JS接口,应用需要进行适配才可以在新版本SDK环境正常实现功能。 + +**关键的接口/组件变更** + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +| :-------- | ---------| -------------------------------- | -------- | +| @ohos.util | LRUCache | contains(key: object): boolean | 删除 | +| @ohos.util | LRUCache | contains(key: K): boolean | 变更 | + +**适配指导** + +应用中使用contains函数可参考下列代码 + +示例: + +```ts +import util from '@ohos.util' +let pro = new util.LRUCache(); +pro.put(2,10); +let obj = {1:"key"}; +let result = pro.contains(obj); +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ans.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ans.md new file mode 100644 index 0000000000000000000000000000000000000000..4053bb4f9bab409b673f1f8675382c0fd1710f7b --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ans.md @@ -0,0 +1,21 @@ +# ANS通知子系统ChangeLog + +## cl.notificationManager.1 接口名变更 + +基于此前接口名定义不够规范,与其他功能类型的接口命名不一致,对此接口名进行变更。 + +**变更影响** + +底层仍支持原接口功能,不影响4.0.2.3版本调用该接口的应用。 + +**关键接口/组件变更** + +| 包名 | 旧接口 | 新接口 | +| --------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| ohos.notificationManager.d.ts | **function** supportDoNotDisturbMode(callback: AsyncCallback): **void**; | **function** isSupportDoNotDisturbMode(callback: AsyncCallback): **void**; | +| ohos.notificationManager.d.ts | **function** supportDoNotDisturbMode(): Promise; | **function** isSupportDoNotDisturbMode(): Promise; | + +**适配指导** + +按新的接口isSupportDoNotDisturbMode调用。 + 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.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-sensor.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-sensor.md new file mode 100644 index 0000000000000000000000000000000000000000..1b38e923b6c4aac5f7a560b1bcd86bd77e6dcb30 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-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/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..da9847a3b5714e651af224b91279012e863f6a24 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-web.md @@ -0,0 +1,467 @@ +# 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类型。 + +## cl.web.6 WebMessagePort类迁移 + +WebMessagePort类迁移至@ohos.web.webview.d.ts,并新增错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现该类下接口支持错误码处理,需注意错误码处理的使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + postMessageEvent(message: WebMessageEvent): void; + onMessageEvent(callback: (result: string) => void): void; + +- 变更前: + + ```ts + postMessageEvent(message: WebMessageEvent): void; + onMessageEvent(callback: (result: string) => void): void; + ``` + +- 变更后: + + ```ts + postMessageEvent(message: WebMessage): void; + onMessageEvent(callback: (result: WebMessage) => void): void; + ``` + +**适配指导** + +原WebMessagePort类不需要import,现WebMessagePort类使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.7 HitTestValue类迁移 + +HitTestValue类迁移至@ohos.web.webview.d.ts,HitTestValue类变更为接口,getType,getExtra变更为属性。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。 + +**关键的接口/组件变更** + +- 涉及接口 + + getType(): HitTestType; + getExtra(): string; + +- 变更前: + + ```ts + getType(): HitTestType; + getExtra(): string; + ``` + +- 变更后: + + ```ts + type: WebHitTestType; + extra: string; + ``` + +**适配指导** + +原HitTestValue类不需要import,现HitTestValue类使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.8 WebCookie类下api9接口迁移 + +WebCookie类下api9接口迁移,WebCookie类下api9接口迁移到web.webview.webview.WebCookieManager。 +并新增接口错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现该类下接口支持错误码处理,需注意错误码处理的使用。 +该类方法变为静态方法。 + +**关键的接口/组件变更** + +- 涉及接口 + + isCookieAllowed(): boolean; + isThirdPartyCookieAllowed(): boolean; + putAcceptCookieEnabled(accept: boolean): void; + putAcceptThirdPartyCookieEnabled(accept: boolean): void; + setCookie(url: string, value: string): boolean; + saveCookieSync(): boolean; + getCookie(url: string): string; + existCookie(): boolean; + deleteEntireCookie(): void; + deleteSessionCookie(): void; + +- 变更前: + + ```ts + isCookieAllowed(): boolean; + isThirdPartyCookieAllowed(): boolean; + putAcceptCookieEnabled(accept: boolean): void; + putAcceptThirdPartyCookieEnabled(accept: boolean): void; + setCookie(url: string, value: string): boolean; + saveCookieSync(): boolean; + getCookie(url: string): string; + existCookie(): boolean; + deleteEntireCookie(): void; + deleteSessionCookie(): void; + ``` + +- 变更后: + + ```ts + static isCookieAllowed(): boolean; + static isThirdPartyCookieAllowed(): boolean; + static putAcceptCookieEnabled(accept: boolean): void; + static putAcceptThirdPartyCookieEnabled(accept: boolean): void; + static setCookie(url: string, value: string): void; + static saveCookieAsync(): Promise; + static saveCookieAsync(callback: AsyncCallback): void; + static getCookie(url: string): string; + static existCookie(): boolean; + static deleteEntireCookie(): void; + static deleteSessionCookie(): void; + ``` + +**适配指导** + +原WebCookie类不需要import,现WebCookieManager使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.9 WebController类下api9接口迁移 + +WebController类下api9接口迁移至web.webview.webview.WebviewController,并新增接口错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现该类下接口支持错误码处理,需注意错误码处理的使用。 +getDefaultUserAgent接口更名为getUserAgent。 + +**关键的接口/组件变更** + +- 涉及接口 + + zoomIn(): boolean; + zoomOut(): boolean; + createWebMessagePorts(): Array; + postMessage(options: { message: WebMessageEvent, uri: string}): void; + getHitTestValue(): HitTestValue; + getWebId(): number; + getDefaultUserAgent(): string; + getTitle(): string; + getPageHeight(): number; + backOrForward(step: number): void; + searchAllAsync(searchString: string): void; + clearMatches(): void; + searchNext(forward: boolean): void; + clearSslCache(): void; + clearClientAuthenticationCache(): void; + getUrl(): string; + +- 变更前: + + ```ts + zoomIn(): boolean; + zoomOut(): boolean; + createWebMessagePorts(): Array; + postMessage(options: { message: WebMessageEvent, uri: string}): void; + getHitTestValue(): HitTestValue; + getWebId(): number; + getDefaultUserAgent(): string; + getTitle(): string; + getPageHeight(): number; + backOrForward(step: number): void; + searchAllAsync(searchString: string): void; + clearMatches(): void; + searchNext(forward: boolean): void; + clearSslCache(): void; + clearClientAuthenticationCache(): void; + getUrl(): string; + ``` + +- 变更后: + + ```ts + zoomIn(): void; + zoomOut(): void; + createWebMessagePorts(): Array; + postMessage(name: string, ports: Array, uri: string): void; + getHitTestValue(): HitTestValue; + getWebId(): number; + getUserAgent(): string; + getTitle(): string; + getPageHeight(): number; + backOrForward(step: number): void; + searchAllAsync(searchString: string): void; + clearMatches(): void; + searchNext(forward: boolean): void; + clearSslCache(): void; + clearClientAuthenticationCache(): void; + getUrl(): string; + ``` + +**适配指导** + +原WebController类不需要import,现WebviewController类使用的是@ohos.web.webview,以下方式import: + + ```ts + import web_webview from '@ohos.web.webview'; + ``` + +## cl.web.10 WebAsyncController类迁移 + +WebAsyncController类下接口迁移至web.webview.webview.WebviewController,并新增接口错误码抛出。 + +**变更影响** + +基于此前版本开发的应用,需注意错误码处理的使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + storeWebArchive(baseName: string, autoName: boolean): Promise; + storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback): void; + +- 变更前: + + ```ts + storeWebArchive(baseName: string, autoName: boolean): Promise; + storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback): void; + ``` + +- 变更后: + + ```ts + storeWebArchive(baseName: string, autoName: boolean): Promise; + storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback): void; + ``` + +**适配指导** + +使用示例: + + ```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('saveWebArchive') + .onClick(() => { + try { + this.controller.storeWebArchive("/data/storage/el2/base/", true, (error, filename) => { + if (error) { + console.info(`save web archive error: ` + JSON.stringify(error)) + return; + } + if (filename != null) { + console.info(`save web archive success: ${filename}`) + } + }); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } + } + ``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-power.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-power.md new file mode 100644 index 0000000000000000000000000000000000000000..adabd439b923924906b465a4122016e401d13e86 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-power.md @@ -0,0 +1,82 @@ +# 电源子系统ChangeLog + +## cl.powermgr.1 CommonEventBatteryChangedCode接口变更 + +[ @ohos.batteryInfo](../../../application-dev/reference/apis/js-apis-battery-info.md) (电量信息)中的CommonEventBatteryChangedCode枚举类进行如下变更: + +- 类名称变更为CommonEventBatteryChangedKey; +- 删除EXTRA_MAX_CURRENT、EXTRA_MAX_VOLTAGE和EXTRA_CHARGE_COUNTER; +- 枚举值类型从数值变更为字符串。 + +#### 变更影响 + +基于此前版本开发的应用,需适配接口的变更,否则会影响原有业务逻辑。 + +#### 关键的接口/组件变更 + +变更前: + +| 名称 | 值 | 说明 | +| -------------------- | ---- | -------------------------------------------------- | +| EXTRA_SOC | 0 | 表示剩余电池电量百分比的查询键。 | +| EXTRA_VOLTAGE | 1 | 表示当前设备电池电压的查询键。 | +| EXTRA_TEMPERATURE | 2 | 表示当前设备电池温度的查询键。 | +| EXTRA_HEALTH_STATE | 3 | 表示当前设备电池健康状态的查询键。 | +| EXTRA_PLUGGED_TYPE | 4 | 表示当前设备连接的充电器类型的查询键。 | +| EXTRA_MAX_CURRENT | 5 | 表示当前设备电池最大电流的查询键。 | +| EXTRA_MAX_VOLTAGE | 6 | 表示当前设备电池最大电压的查询键。 | +| EXTRA_CHARGE_STATE | 7 | 表示当前设备电池充电状态的查询键。 | +| EXTRA_CHARGE_COUNTER | 8 | 表示当前设备电池充电次数的查询键。 | +| EXTRA_PRESENT | 9 | 表示当前设备是否支持电池或者电池是否在位的查询键。 | +| EXTRA_TECHNOLOGY | 10 | 表示当前设备电池技术型号的查询键。 | +| EXTRA_CAPACITY_LEVEL | 11 | 表示当前设备电池电量等级的查询键。 | + +变更后: + +| 名称 | 值 | 说明 | +| -------------------- | --------------- | -------------------------------------------------- | +| EXTRA_SOC | "soc" | 表示剩余电池电量百分比的查询键。 | +| EXTRA_CHARGE_STATE | "chargeState" | 表示当前设备电池充电状态的查询键。 | +| EXTRA_HEALTH_STATE | "healthState" | 表示当前设备电池健康状态的查询键。 | +| EXTRA_PLUGGED_TYPE | "pluggedType" | 表示当前设备连接的充电器类型的查询键。 | +| EXTRA_VOLTAGE | "voltage" | 表示当前设备电池电压的查询键。 | +| EXTRA_TECHNOLOGY | "technology" | 表示当前设备电池技术型号的查询键。 | +| EXTRA_TEMPERATURE | "temperature" | 表示当前设备电池温度的查询键。 | +| EXTRA_PRESENT | "present" | 表示当前设备是否支持电池或者电池是否在位的查询键。 | +| EXTRA_CAPACITY_LEVEL | "capacityLevel" | 表示当前设备电池电量等级的查询键。 | + +#### 适配指导 + +请参考[@ohos.batteryInfo](../../../application-dev/reference/apis/js-apis-battery-info.md) (电量信息)接口的API参考。 +## cl.powermgr.2 estimatedRemainingChargeTime系统接口变更 + +[@ohos.batteryInfo](../../../application-dev/reference/apis/js-apis-battery-info.md) (电量信息)中的estimatedRemainingChargeTime属性变更为系统接口。 + +#### 变更影响 + +基于此前版本开发的应用,需适配新的系统权限,否则会影响原有业务逻辑。 + +#### 适配指导 + +请参考[@ohos.batteryInfo](../../../application-dev/reference/apis/js-apis-battery-info.md) (电量信息)接口的API参考。 + +## cl.powermgr.3 系统公共事件行为变更 + +电量信息通过[@ohos.commonEventManager (公共事件模块)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md)提供了如下几种系统公共事件: + +- COMMON_EVENT_BATTERY_LOW,表示电池电量低的的公共事件的动作,包含剩余电池电量百分比信息; +- COMMON_EVENT_BATTERY_OKAY,表示电池电量正常的公共事件的动作,包含剩余电池电量百分比信息; +- COMMON_EVENT_POWER_CONNECTED,表示设备连接到外部电源的公共事件的动作,包含设备连接的电源类型信息; +- COMMON_EVENT_POWER_DISCONNECTED,表示设备与外部电源断开的公共事件的动作,包含设备连接的电源类型信息; +- COMMON_EVENT_CHARGING,表示系统开始为电池充电的公共事件的动作,包含充电状态信息; +- COMMON_EVENT_DISCHARGING,表示系统停止为电池充电的公共事件的动作,包含充电状态信息。 + +这几种公共事件的数据的获取方式从CommonEventData.data变更为CommonEventData.code。 + +#### 变更影响 + +基于此前版本开发的应用,需适配新的数据获取方式,否则会影响原有业务逻辑。 + +#### 适配指导 + +请参考[ @ohos.commonEventManager (公共事件模块)](../../../application-dev/reference/apis/js-apis-commonEventManager.md)接口的API参考。 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-startup.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-startup.md new file mode 100755 index 0000000000000000000000000000000000000000..99fc2b75b359cd013dc8cbafebca697f5f28324f --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-startup.md @@ -0,0 +1,16 @@ +# 启动子系统JS API变更ChangeLog + +## cl.startup.1 包名变更 + +**变更影响** + +原有的@ohos.systemParameterV9包名将被删除无法再使用,需更换为新的@ohos.systemParameterEnhance包名。 + +**适配指导** + +原有的@ohos.systemParameterV9需要变更为@ohos.systemParameterEnhance,包内接口都不变,示例: + +```js +import @ohos.systemParameterEnhance +``` + diff --git a/zh-cn/website.md b/zh-cn/website.md index ea8c383c947a657daf5f95b8ef9db80f11bd173e..ddfbd0aa839833121d312cb883e7ce4ba491c68d 100644 --- a/zh-cn/website.md +++ b/zh-cn/website.md @@ -4,6 +4,8 @@ - [术语](glossary.md) - 版本说明 - OpenHarmony 3.x Releases + - [OpenHarmony v3.2 Beta5 (2023-01-31)](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) - [OpenHarmony v3.2 Beta1 (2022-05-31)](release-notes/OpenHarmony-v3.2-beta1.md) @@ -18,13 +20,13 @@ - [OpenHarmony v3.0.3 LTS (2022-04-08)](release-notes/OpenHarmony-v3.0.3-LTS.md) - [OpenHarmony v3.0.2 LTS (2022-03-18)](release-notes/OpenHarmony-v3.0.2-LTS.md) - [OpenHarmony v3.0.1 LTS (2022-01-12)](release-notes/OpenHarmony-v3.0.1-LTS.md) - + - OpenHarmony 2.x Releases - [OpenHarmony v2.2 beta2 (2021-08-04)](release-notes/OpenHarmony-v2.2-beta2.md) - [OpenHarmony 2.0 Canary (2021-06-01)](release-notes/OpenHarmony-2-0-Canary.md) - OpenHarmony 1.x Releases - + - [OpenHarmony 1.0 (2020-09-10)](release-notes/OpenHarmony-1-0.md) - [OpenHarmony v1.1.5 LTS (2022-08-24)](release-notes/OpenHarmony-v1.1.5-LTS.md) - [OpenHarmony v1.1.4 LTS (2022-02-11)](release-notes/OpenHarmony-v1-1-4-LTS.md) @@ -32,7 +34,7 @@ - [OpenHarmony v1.1.2 LTS (2021-08-04)](release-notes/OpenHarmony-v1.1.2-LTS.md) - [OpenHarmony v1.1.1 LTS (2021-06-22)](release-notes/OpenHarmony-1-1-1-LTS.md) - [OpenHarmony v1.1.0 LTS (2021-04-01)](release-notes/OpenHarmony-1-1-0-LTS.md) - + - API差异报告 - OpenHarmony 3.2 Beta3 - JS API差异报告 @@ -169,7 +171,7 @@ - OpenHarmony v2.2 Beta2 - [JS API差异报告](release-notes/api-diff/v2.2-beta2/js-apidiff-v2.2-beta2.md) - [Native API差异报告](release-notes/api-diff/v2.2-beta2/native-apidiff-v2.2-beta2.md) - + - OpenHarmony三方组件 - [OpenHarmony三方组件简介](third-party-components/third-party-components-introduction.md) - [OpenHarmony JS/TS三方组件使用指导](third-party-components/npm-third-party-guide.md)